public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Göktürk Yüksek" <gokturk@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opencollada/
Date: Sat,  9 Jul 2016 01:58:37 +0000 (UTC)	[thread overview]
Message-ID: <1468029460.04d723efb22e209a20a44395ae688edbcdd442ee.gokturk@gentoo> (raw)

commit:     04d723efb22e209a20a44395ae688edbcdd442ee
Author:     Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
AuthorDate: Fri Jul  8 18:22:52 2016 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Sat Jul  9 01:57:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d723ef

media-libs/opencollada: Rev bump to fix insecure runpath vulnerability

Closes Gentoo Bug 439530
Also, remove live ebuild logic

 ...-1.6.18.ebuild => opencollada-1.6.18-r1.ebuild} | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/media-libs/opencollada/opencollada-1.6.18.ebuild b/media-libs/opencollada/opencollada-1.6.18-r1.ebuild
similarity index 73%
rename from media-libs/opencollada/opencollada-1.6.18.ebuild
rename to media-libs/opencollada/opencollada-1.6.18-r1.ebuild
index 53164b4..028f631 100644
--- a/media-libs/opencollada/opencollada-1.6.18.ebuild
+++ b/media-libs/opencollada/opencollada-1.6.18-r1.ebuild
@@ -4,20 +4,16 @@
 
 EAPI=6
 
-EGIT_REPO_URI="https://github.com/KhronosGroup/OpenCOLLADA.git"
-inherit multilib cmake-utils
-[[ ${PV} == "9999" ]] && inherit git-r3
+inherit eutils cmake-utils
 
 DESCRIPTION="Stream based read/write library for COLLADA files"
 HOMEPAGE="http://www.opencollada.org/"
-[[ ${PV} == "9999" ]] || \
-	SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
-[[ ${PV} == "9999" ]] || \
-	KEYWORDS="~amd64 ~ppc64 ~x86" \
-	S="${WORKDIR}"/OpenCOLLADA-${PV}
+
+KEYWORDS="~amd64 ~ppc64 ~x86"
 
 IUSE="expat static-libs"
 
@@ -30,8 +26,10 @@ RDEPEND="dev-libs/libpcre
 	sys-libs/zlib
 	expat? ( dev-libs/expat )
 	!expat? ( dev-libs/libxml2 )"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
 
+S="${WORKDIR}"/OpenCOLLADA-${PV}
 # This is needed or you get an error on install
 BUILD_DIR="${S}"/build
 
@@ -53,6 +51,10 @@ src_prepare() {
 	# Remove unused build systems
 	rm Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die
 	find "${S}" -name SConscript -delete || die
+
+	# Fix insecure RUNPATHS vulnerability
+	sed '/link_directories/i SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)' \
+		-i COLLADAValidator/CMakeLists.txt || die "sed failed"
 }
 
 src_configure() {
@@ -70,8 +72,8 @@ src_configure() {
 src_install() {
 	cmake-utils_src_install
 
-	echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN}; \
-		doenvd "${T}"/99${PN}
+	echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN} || die "echo failed"
+	doenvd "${T}"/99${PN}
 
 	dobin build/bin/OpenCOLLADAValidator
 }


             reply	other threads:[~2016-07-09  1:58 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-09  1:58 Göktürk Yüksek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-09  9:02 [gentoo-commits] repo/gentoo:master commit in: media-libs/opencollada/ Arthur Zamarin
2024-11-06 13:35 Sam James
2024-11-06 13:35 Sam James
2021-03-05 18:39 Sam James
2021-02-28 15:39 Sam James
2021-02-22  7:12 Sam James
2020-11-08 10:29 Sam James
2020-02-16 20:24 David Seifert
2020-02-13 14:19 Lars Wendler
2020-02-13 14:19 Lars Wendler
2019-10-02 20:48 James Le Cuirot
2019-06-12 10:37 Andreas Sturmlechner
2018-08-07 12:03 Jonathan Scruggs
2018-06-10  9:19 Andreas Sturmlechner
2018-02-19 19:42 David Seifert
2018-01-27 17:19 Jonathan Scruggs
2017-12-09 10:33 Pacho Ramos
2017-12-08 20:39 Thomas Deutschmann
2017-08-27 15:34 Michael Palimaka
2017-02-03  8:00 David Seifert
2017-01-15 11:14 David Seifert
2016-12-04  0:07 Andreas Hüttel
2016-09-05 21:29 Patrice Clement
2016-07-16  7:56 Patrice Clement
2016-07-09  1:58 Göktürk Yüksek
2016-07-09  1:58 Göktürk Yüksek
2016-07-09  1:58 Göktürk Yüksek
2016-06-13  5:59 Amy Winston
2016-06-12 18:16 Amy Winston
2016-06-12 18:16 Amy Winston
2016-06-05 12:16 Sebastian Pipping
2015-08-31 20:49 Andreas Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468029460.04d723efb22e209a20a44395ae688edbcdd442ee.gokturk@gentoo \
    --to=gokturk@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox