diff options
author | 2015-03-16 21:34:05 +0000 | |
---|---|---|
committer | 2015-03-16 21:34:05 +0000 | |
commit | 5532dc9d41020b0a90e5215df770ae48ff553a1c (patch) | |
tree | d1dd961682856ea724effe6d78ad9bc1629d88fd /app-admin/setools | |
parent | Removed vulnerable version (diff) | |
download | gentoo-2-5532dc9d41020b0a90e5215df770ae48ff553a1c.tar.gz gentoo-2-5532dc9d41020b0a90e5215df770ae48ff553a1c.tar.bz2 gentoo-2-5532dc9d41020b0a90e5215df770ae48ff553a1c.zip |
Use new toolchain helpers for selecting the bfd linker #467136 by Amadeusz Sławiński. Clean up quoting/redundant die/semicolons too.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'app-admin/setools')
-rw-r--r-- | app-admin/setools/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/setools/setools-3.3.8-r5.ebuild | 26 | ||||
-rw-r--r-- | app-admin/setools/setools-3.3.8-r7.ebuild | 24 |
3 files changed, 27 insertions, 30 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index 5b942e059faa..4db6126b6f05 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/setools # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.98 2015/03/03 19:57:39 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.99 2015/03/16 21:34:05 vapier Exp $ + + 16 Mar 2015; Mike Frysinger <vapier@gentoo.org> setools-3.3.8-r5.ebuild, + setools-3.3.8-r7.ebuild: + Use new toolchain helpers for selecting the bfd linker #467136 by Amadeusz + Sławiński. Clean up quoting/redundant die/semicolons too. 03 Mar 2015; Sven Vermeulen <swift@gentoo.org> setools-3.3.8-r7.ebuild: Fix bug #542032 - SWIG version check does not work diff --git a/app-admin/setools/setools-3.3.8-r5.ebuild b/app-admin/setools/setools-3.3.8-r5.ebuild index 0bbe02b4b3e4..08a399e30c35 100644 --- a/app-admin/setools/setools-3.3.8-r5.ebuild +++ b/app-admin/setools/setools-3.3.8-r5.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.8-r5.ebuild,v 1.2 2014/07/30 12:04:04 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.8-r5.ebuild,v 1.3 2015/03/16 21:34:05 vapier Exp $ EAPI="5" PYTHON_COMPAT=( python2_7 ) -inherit autotools java-pkg-opt-2 python-r1 eutils +inherit autotools java-pkg-opt-2 python-r1 eutils toolchain-funcs DESCRIPTION="SELinux policy tools" HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" @@ -56,14 +56,9 @@ RESTRICT="test" PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" pkg_setup() { - local myld=$(tc-getLD) - if use java; then java-pkg-opt-2_pkg_setup fi - - ${myld} -v | grep -q "GNU gold" && \ - ewarn "Bug #467136 shows us that the gold linker doesn't work with setools for now." } src_prepare() { @@ -107,6 +102,7 @@ src_prepare() { } src_configure() { + tc-ld-disable-gold #467136 econf \ --with-java-prefix=${JAVA_HOME} \ --disable-selinux-check \ @@ -123,29 +119,29 @@ src_configure() { } src_compile() { - emake LD="$(tc-getLD).bfd" || die "Failed to build setools" + emake if use python; then building() { python_export PYTHON_INCLUDEDIR python_export PYTHON_SITEDIR python_export PYTHON_LIBS - emake LD="$(tc-getLD).bfd" \ + emake \ SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ PYTHON_LDFLAGS="${PYTHON_LIBS}" \ pyexecdir="${PYTHON_SITEDIR}" \ pythondir="${PYTHON_SITEDIR}" \ - -C ${1}; + -C "$1" } local dir for dir in ${PYTHON_DIRS}; do - python_foreach_impl building ${dir}; + python_foreach_impl building ${dir} done fi } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake DESTDIR="${D}" install if use python; then installation() { @@ -153,12 +149,12 @@ src_install() { emake DESTDIR="${D}" \ pyexecdir="${PYTHON_SITEDIR}" \ pythondir="${PYTHON_SITEDIR}" \ - -C ${1} install + -C "$1" install } local dir for dir in ${PYTHON_DIRS}; do - python_foreach_impl installation ${dir}; + python_foreach_impl installation "${dir}" done fi } diff --git a/app-admin/setools/setools-3.3.8-r7.ebuild b/app-admin/setools/setools-3.3.8-r7.ebuild index 930855176164..50b1f37f767f 100644 --- a/app-admin/setools/setools-3.3.8-r7.ebuild +++ b/app-admin/setools/setools-3.3.8-r7.ebuild @@ -1,11 +1,11 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.8-r7.ebuild,v 1.3 2015/03/03 19:57:39 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.8-r7.ebuild,v 1.4 2015/03/16 21:34:05 vapier Exp $ EAPI="5" PYTHON_COMPAT=( python2_7 python3_4 ) -inherit autotools java-pkg-opt-2 python-r1 eutils +inherit autotools java-pkg-opt-2 python-r1 eutils toolchain-funcs DESCRIPTION="SELinux policy tools" HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" @@ -56,14 +56,9 @@ RESTRICT="test" PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" pkg_setup() { - local myld=$(tc-getLD) - if use java; then java-pkg-opt-2_pkg_setup fi - - ${myld} -v | grep -q "GNU gold" && \ - ewarn "Bug #467136 shows us that the gold linker doesn't work with setools for now." } src_prepare() { @@ -95,6 +90,7 @@ src_prepare() { } src_configure() { + tc-ld-disable-gold #467136 econf \ --with-java-prefix=${JAVA_HOME} \ --disable-selinux-check \ @@ -111,29 +107,29 @@ src_configure() { } src_compile() { - emake LD="$(tc-getLD).bfd" || die "Failed to build setools" + emake if use python; then building() { python_export PYTHON_INCLUDEDIR python_export PYTHON_SITEDIR python_export PYTHON_LIBS - emake LD="$(tc-getLD).bfd" \ + emake \ SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ PYTHON_LDFLAGS="${PYTHON_LIBS}" \ pyexecdir="${PYTHON_SITEDIR}" \ pythondir="${PYTHON_SITEDIR}" \ - -C ${1}; + -C "$1" } local dir for dir in ${PYTHON_DIRS}; do - python_foreach_impl building ${dir}; + python_foreach_impl building ${dir} done fi } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake DESTDIR="${D}" install if use python; then installation() { @@ -141,12 +137,12 @@ src_install() { emake DESTDIR="${D}" \ pyexecdir="${PYTHON_SITEDIR}" \ pythondir="${PYTHON_SITEDIR}" \ - -C ${1} install + -C "$1" install } local dir for dir in ${PYTHON_DIRS}; do - python_foreach_impl installation ${dir}; + python_foreach_impl installation "${dir}" done fi } |