aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-24 21:59:25 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-24 21:59:25 +0000
commit75ad8d7aeddcd66c40bae20f526cc1647eabc54a (patch)
treec6114754d59313ee4d1b525e4c5960641e593b4f /bin
parentforward port fix for #69896 from stable (diff)
downloadportage-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-xbin/ebuild-default-functions.sh10
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