Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/vulkan-loader/, media-libs/vulkan-loader/files/
Date: Thu, 20 Jul 2017 23:03:20
Message-Id: 1500591787.45989621b436f179f3f433d32550930e60e43823.mattst88@gentoo
1 commit: 45989621b436f179f3f433d32550930e60e43823
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 20 21:26:37 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 20 23:03:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45989621
7
8 media-libs/vulkan-loader: Version bump to 1.0.54.0
9
10 media-libs/vulkan-loader/Manifest | 1 +
11 ...n-loader-1.0.54.0-remove-executable-stack.patch | 25 ++++++++++
12 .../vulkan-loader/vulkan-loader-1.0.54.0.ebuild | 55 ++++++++++++++++++++++
13 3 files changed, 81 insertions(+)
14
15 diff --git a/media-libs/vulkan-loader/Manifest b/media-libs/vulkan-loader/Manifest
16 index e64391b20e9..b07ac708606 100644
17 --- a/media-libs/vulkan-loader/Manifest
18 +++ b/media-libs/vulkan-loader/Manifest
19 @@ -2,3 +2,4 @@ DIST vulkan-loader-1.0.42.0.tar.gz 3699030 SHA256 305d3070f559a3f5ad332aff285a3e
20 DIST vulkan-loader-1.0.42.2.tar.gz 3701608 SHA256 bc09a5e667c4a34c0a2969c8169e55bbabf9f57a76166ce43fd6e50c8e249725 SHA512 6f591bcb69edde516cf170936e23a3f19f2f57a22b65d19683c10528ed6559501d3dae29ee1d3e820a81a5cd6e608f5710ba15f7c9bc050ea0eaceef2cf82d37 WHIRLPOOL ab5b1cc3a65414c389ab216aba9bb12018969ec6559cfc381881137aa865d8cc79c06221f903f9a3db001fed75dbaea789bc7b17dacbab545ce8fa78f3e968a7
21 DIST vulkan-loader-1.0.46.0.tar.gz 3732605 SHA256 439db567f03448f57d7899c4a78986669dc4d930af9699986a85bf2fc3d3acb8 SHA512 dc0728c00e017a2ed0b1e34a500a6335f6dee5dd77c7801d7d450c68c6e8c7cd5dec640be6dec1dea28941d927764a636b82a628e0260ca724163afa4152d8b6 WHIRLPOOL aa2424939b3a6c80909efd1f50d668c83aaf828ef490f13cd02391098e018e8ed33c6949ea47caaa4be0b258ba351447654c814c4bc2aa572e53ca582d7143a0
22 DIST vulkan-loader-1.0.51.0.tar.gz 3796337 SHA256 20c07764e3f69d0d2158070a24faa6b8c5242af0bf8088ac538281c42c2ca119 SHA512 5d198fc9537c8fa3cbde19fc74f8d47595fabcb52c8db1c626fa157f171ed74ad202e086f7c9e94827c1ab682d03bae58af690c510c6705ca92db0548ee575f6 WHIRLPOOL ab49cc588efa97cb994d4f151c6328be385d6aaf3200547197306788823c7c908d850bbee396a5b201b79960ab1df5d341921c014032649b9b7b03081d8c8149
23 +DIST vulkan-loader-1.0.54.0.tar.gz 3842785 SHA256 f2556963f27309485c4d6bd9acece58d51df6a1b13699cc3a2c8d2579e6a3831 SHA512 f5478e1a7f966a2d09b97a3b47a04b4c9ccd68b88126fefcd6f97bfd0347c5a5bebf52e1cdfccc4863d22dd3b875e04cddf406e3e546eb3dc50d2ef61d85a21f WHIRLPOOL 32591f1e9b0e5d91f82dfd48fc676e51e6d3311d680efbc4e8390a6eeb0ebce82905a01eed9ae764ea432f440c9aeeb888d295366074fd57cc0e15b91ecba4a2
24
25 diff --git a/media-libs/vulkan-loader/files/vulkan-loader-1.0.54.0-remove-executable-stack.patch b/media-libs/vulkan-loader/files/vulkan-loader-1.0.54.0-remove-executable-stack.patch
26 new file mode 100644
27 index 00000000000..36b50b91e73
28 --- /dev/null
29 +++ b/media-libs/vulkan-loader/files/vulkan-loader-1.0.54.0-remove-executable-stack.patch
30 @@ -0,0 +1,25 @@
31 +From 3152f2a5056077d3e1061ac61e3ef7888ff96dc7 Mon Sep 17 00:00:00 2001
32 +From: Lenny Komow <lenny@××××××.com>
33 +Date: Thu, 20 Jul 2017 16:07:14 -0600
34 +Subject: [PATCH] loader: Remove executable stack from libvulkan.so
35 +
36 +Change-Id: Id77d5560479cbbc6f5453a6362c5a20dd721fdd0
37 +---
38 + loader/unknown_ext_chain_gas.asm | 4 ++++
39 + 1 file changed, 4 insertions(+)
40 +
41 +diff --git a/loader/unknown_ext_chain_gas.asm b/loader/unknown_ext_chain_gas.asm
42 +index e463f45be..798760bd8 100644
43 +--- a/loader/unknown_ext_chain_gas.asm
44 ++++ b/loader/unknown_ext_chain_gas.asm
45 +@@ -108,6 +108,10 @@ vkdev_ext\num:
46 +
47 + .endif
48 +
49 ++#if defined(__ELF__)
50 ++.section .note.GNU-stack,"",%progbits
51 ++#endif
52 ++
53 + .data
54 +
55 + termin_error_string:
56
57 diff --git a/media-libs/vulkan-loader/vulkan-loader-1.0.54.0.ebuild b/media-libs/vulkan-loader/vulkan-loader-1.0.54.0.ebuild
58 new file mode 100644
59 index 00000000000..152f97552fc
60 --- /dev/null
61 +++ b/media-libs/vulkan-loader/vulkan-loader-1.0.54.0.ebuild
62 @@ -0,0 +1,55 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +PYTHON_COMPAT=( python3_{4,5} )
68 +
69 +if [[ "${PV}" == "9999" ]]; then
70 + EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git"
71 + inherit git-r3
72 +else
73 + KEYWORDS="~amd64"
74 + SRC_URI="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${PV}.tar.gz -> ${P}.tar.gz"
75 + S="${WORKDIR}/Vulkan-LoaderAndValidationLayers-sdk-${PV}"
76 +fi
77 +
78 +inherit python-any-r1 cmake-multilib
79 +
80 +DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader"
81 +HOMEPAGE="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers"
82 +
83 +LICENSE="Apache-2.0"
84 +SLOT="0"
85 +IUSE="wayland X"
86 +
87 +RDEPEND=""
88 +DEPEND="${PYTHON_DEPS}
89 + wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
90 + X? ( x11-libs/libX11:=[${MULTILIB_USEDEP}] )"
91 +
92 +src_prepare() {
93 + default
94 + eapply "${FILESDIR}"/${P}-remove-executable-stack.patch
95 +}
96 +
97 +multilib_src_configure() {
98 + local mycmakeargs=(
99 + -DCMAKE_SKIP_RPATH=True
100 + -DBUILD_TESTS=False
101 + -DBUILD_LAYERS=False
102 + -DBUILD_DEMOS=False
103 + -DBUILD_VKJSON=False
104 + -DBUILD_LOADER=True
105 + -DBUILD_WSI_MIR_SUPPORT=False
106 + -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
107 + -DBUILD_WSI_XCB_SUPPORT=$(usex X)
108 + -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
109 + )
110 + cmake-utils_src_configure
111 +}
112 +
113 +multilib_src_install() {
114 + keepdir /etc/vulkan/icd.d
115 +
116 + default
117 +}