aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-23 23:49:53 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-23 23:49:53 +0000
commitdc055555e832fb4f65c5d0fdb5c137c0ee074613 (patch)
tree2d56f29b0854b076e83d1eab0583a4fc8ad19b8d /bin
parentfix typo ... BUILDDIR -> PORTAGE_BUILDDIR (diff)
downloadportage-cvs-dc055555e832fb4f65c5d0fdb5c137c0ee074613.tar.gz
portage-cvs-dc055555e832fb4f65c5d0fdb5c137c0ee074613.tar.bz2
portage-cvs-dc055555e832fb4f65c5d0fdb5c137c0ee074613.zip
abort if binaries have null RPATHs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild-default-functions.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ebuild-default-functions.sh b/bin/ebuild-default-functions.sh
index 5ee7907..7598547 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.31 2005/06/19 21:12:11 vapier Exp $
+# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-default-functions.sh,v 1.32 2005/06/23 23:49:53 vapier Exp $
has_version() {
# if there is a predefined portageq call, use it.
@@ -432,7 +432,10 @@ dyn_install() {
if type -p scanelf > /dev/null ; then
# Make sure we disallow insecure RUNPATH/RPATH's
- f=$(scanelf -qyRF '%r %p' "${D}" | grep "${PORTAGE_BUILDDIR}")
+ # Don't want paths that point to the tree where the package was built
+ # (older, broken libtools would do this). Also check for null paths
+ # because the loader will search $PWD when it finds null paths.
+ f=$(scanelf -qyRF '%r %p' "${D}" | grep -E "(${PORTAGE_BUILDDIR}|: |::|^ )")
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files contain insecure RUNPATH's"