forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/vulkan-loader: Version bump to 1.0.54.0
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
media-libs/vulkan-loader/files/vulkan-loader-1.0.54.0-remove-executable-stack.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 3152f2a5056077d3e1061ac61e3ef7888ff96dc7 Mon Sep 17 00:00:00 2001 | ||
From: Lenny Komow <[email protected]> | ||
Date: Thu, 20 Jul 2017 16:07:14 -0600 | ||
Subject: [PATCH] loader: Remove executable stack from libvulkan.so | ||
|
||
Change-Id: Id77d5560479cbbc6f5453a6362c5a20dd721fdd0 | ||
--- | ||
loader/unknown_ext_chain_gas.asm | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/loader/unknown_ext_chain_gas.asm b/loader/unknown_ext_chain_gas.asm | ||
index e463f45be..798760bd8 100644 | ||
--- a/loader/unknown_ext_chain_gas.asm | ||
+++ b/loader/unknown_ext_chain_gas.asm | ||
@@ -108,6 +108,10 @@ vkdev_ext\num: | ||
|
||
.endif | ||
|
||
+#if defined(__ELF__) | ||
+.section .note.GNU-stack,"",%progbits | ||
+#endif | ||
+ | ||
.data | ||
|
||
termin_error_string: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
PYTHON_COMPAT=( python3_{4,5} ) | ||
|
||
if [[ "${PV}" == "9999" ]]; then | ||
EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git" | ||
inherit git-r3 | ||
else | ||
KEYWORDS="~amd64" | ||
SRC_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${PV}.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/Vulkan-LoaderAndValidationLayers-sdk-${PV}" | ||
fi | ||
|
||
inherit python-any-r1 cmake-multilib | ||
|
||
DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader" | ||
HOMEPAGE="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
IUSE="wayland X" | ||
|
||
RDEPEND="" | ||
DEPEND="${PYTHON_DEPS} | ||
wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] ) | ||
X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] )" | ||
|
||
src_prepare() { | ||
default | ||
eapply "${FILESDIR}"/${P}-remove-executable-stack.patch | ||
} | ||
|
||
multilib_src_configure() { | ||
local mycmakeargs=( | ||
-DCMAKE_SKIP_RPATH=True | ||
-DBUILD_TESTS=False | ||
-DBUILD_LAYERS=False | ||
-DBUILD_DEMOS=False | ||
-DBUILD_VKJSON=False | ||
-DBUILD_LOADER=True | ||
-DBUILD_WSI_MIR_SUPPORT=False | ||
-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) | ||
-DBUILD_WSI_XCB_SUPPORT=$(usex X) | ||
-DBUILD_WSI_XLIB_SUPPORT=$(usex X) | ||
) | ||
cmake-utils_src_configure | ||
} | ||
|
||
multilib_src_install() { | ||
keepdir /etc/vulkan/icd.d | ||
|
||
default | ||
} |