Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-libs/libselinux/
Date: Tue, 14 Nov 2017 18:08:52
Message-Id: 1510682848.66ba44498f9fb3dae27844daba7164b7059a9531.lluixhi@gentoo
commit:     66ba44498f9fb3dae27844daba7164b7059a9531
Author:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Tue Nov 14 18:07:28 2017 +0000
Commit:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
CommitDate: Tue Nov 14 18:07:28 2017 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=66ba4449

sys-libs/libselinux: actually apply musl patch

Close #71
Thanks, @atlua

 sys-libs/libselinux/libselinux-2.7.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys-libs/libselinux/libselinux-2.7.ebuild b/sys-libs/libselinux/libselinux-2.7.ebuild
index 3c754d7..e85613f 100644
--- a/sys-libs/libselinux/libselinux-2.7.ebuild
+++ b/sys-libs/libselinux/libselinux-2.7.ebuild
@@ -44,6 +44,11 @@ DEPEND="${RDEPEND}
 	python? ( >=dev-lang/swig-2.0.9 )"
 
 src_prepare() {
+	if [[ ${PV} != 9999 ]] ; then
+		# If needed for live builds, place them in /etc/portage/patches
+		eapply "${FILESDIR}/libselinux-2.7-fts_ldlibs.patch"
+	fi
+
 	eapply_user
 
 	multilib_copy_sources