diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-24 21:59:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-24 21:59:25 +0000 |
commit | 75ad8d7aeddcd66c40bae20f526cc1647eabc54a (patch) | |
tree | c6114754d59313ee4d1b525e4c5960641e593b4f /bin | |
parent | forward port fix for #69896 from stable (diff) | |
download | portage-cvs-75ad8d7aeddcd66c40bae20f526cc1647eabc54a.tar.gz portage-cvs-75ad8d7aeddcd66c40bae20f526cc1647eabc54a.tar.bz2 portage-cvs-75ad8d7aeddcd66c40bae20f526cc1647eabc54a.zip |
add some FEATURES for aborting with questionable binaries
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild-default-functions.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/ebuild-default-functions.sh b/bin/ebuild-default-functions.sh index ca6229f..10abdf1 100755 --- a/bin/ebuild-default-functions.sh +++ b/bin/ebuild-default-functions.sh @@ -2,7 +2,7 @@ # ebuild-default-functions.sh; default functions for ebuild env that aren't saved- specific to the portage instance. # Copyright 2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-default-functions.sh,v 1.24 2005/05/24 02:05:52 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-default-functions.sh,v 1.25 2005/05/24 21:59:25 vapier Exp $ has_version() { # if there is a predefined portageq call, use it. @@ -448,6 +448,8 @@ dyn_install() { echo " LDFLAGS='-Wl,-z,now' emerge ${PN}" echo "${f//${D}\/}" echo -ne '\a\n' + [[ ${FEATURES/elf-bind-now} != "${FEATURES}" ]] + && die "Aborting due to lazy bindings" sleep 1 fi @@ -463,6 +465,9 @@ dyn_install() { echo " consider writing a patch which addresses this problem." echo "${f//${D}\/}" echo -ne '\a\n' + [[ ${FEATURES/elf-textrel} != "${FEATURES}" ]] + && die "Aborting due to textrels" + sleep 1 fi # Check for files with executable stacks @@ -475,6 +480,9 @@ dyn_install() { echo " at http://bugs.gentoo.org/ to make sure the file is fixed." echo "${f//${D}\/}" echo -ne '\a\n' + [[ ${FEATURES/elf-xstack} != "${FEATURES}" ]] + && die "Aborting due to +x stack" + sleep 1 fi # Save NEEDED information |