Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opencollada/
Date: Sat, 09 Jul 2016 01:58:45
Message-Id: 1468029460.04d723efb22e209a20a44395ae688edbcdd442ee.gokturk@gentoo
1 commit: 04d723efb22e209a20a44395ae688edbcdd442ee
2 Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 8 18:22:52 2016 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 9 01:57:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d723ef
7
8 media-libs/opencollada: Rev bump to fix insecure runpath vulnerability
9
10 Closes Gentoo Bug 439530
11 Also, remove live ebuild logic
12
13 ...-1.6.18.ebuild => opencollada-1.6.18-r1.ebuild} | 24 ++++++++++++----------
14 1 file changed, 13 insertions(+), 11 deletions(-)
15
16 diff --git a/media-libs/opencollada/opencollada-1.6.18.ebuild b/media-libs/opencollada/opencollada-1.6.18-r1.ebuild
17 similarity index 73%
18 rename from media-libs/opencollada/opencollada-1.6.18.ebuild
19 rename to media-libs/opencollada/opencollada-1.6.18-r1.ebuild
20 index 53164b4..028f631 100644
21 --- a/media-libs/opencollada/opencollada-1.6.18.ebuild
22 +++ b/media-libs/opencollada/opencollada-1.6.18-r1.ebuild
23 @@ -4,20 +4,16 @@
24
25 EAPI=6
26
27 -EGIT_REPO_URI="https://github.com/KhronosGroup/OpenCOLLADA.git"
28 -inherit multilib cmake-utils
29 -[[ ${PV} == "9999" ]] && inherit git-r3
30 +inherit eutils cmake-utils
31
32 DESCRIPTION="Stream based read/write library for COLLADA files"
33 HOMEPAGE="http://www.opencollada.org/"
34 -[[ ${PV} == "9999" ]] || \
35 - SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 +SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37
38 LICENSE="MIT"
39 SLOT="0"
40 -[[ ${PV} == "9999" ]] || \
41 - KEYWORDS="~amd64 ~ppc64 ~x86" \
42 - S="${WORKDIR}"/OpenCOLLADA-${PV}
43 +
44 +KEYWORDS="~amd64 ~ppc64 ~x86"
45
46 IUSE="expat static-libs"
47
48 @@ -30,8 +26,10 @@ RDEPEND="dev-libs/libpcre
49 sys-libs/zlib
50 expat? ( dev-libs/expat )
51 !expat? ( dev-libs/libxml2 )"
52 -DEPEND="${RDEPEND}"
53 +DEPEND="${RDEPEND}
54 + virtual/pkgconfig"
55
56 +S="${WORKDIR}"/OpenCOLLADA-${PV}
57 # This is needed or you get an error on install
58 BUILD_DIR="${S}"/build
59
60 @@ -53,6 +51,10 @@ src_prepare() {
61 # Remove unused build systems
62 rm Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die
63 find "${S}" -name SConscript -delete || die
64 +
65 + # Fix insecure RUNPATHS vulnerability
66 + sed '/link_directories/i SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)' \
67 + -i COLLADAValidator/CMakeLists.txt || die "sed failed"
68 }
69
70 src_configure() {
71 @@ -70,8 +72,8 @@ src_configure() {
72 src_install() {
73 cmake-utils_src_install
74
75 - echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN}; \
76 - doenvd "${T}"/99${PN}
77 + echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN} || die "echo failed"
78 + doenvd "${T}"/99${PN}
79
80 dobin build/bin/OpenCOLLADAValidator
81 }