aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-13 04:23:46 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-13 04:23:46 +0000
commit70d1dd76e235245b403642292cfd7e729870cba2 (patch)
tree38ccc95fafc136340c714f6069fdb9fee031e401 /bin
parentsomeone needs a wedgie. stick to tabs, not spaces for indentation (or conver... (diff)
downloadportage-cvs-70d1dd76e235245b403642292cfd7e729870cba2.tar.gz
portage-cvs-70d1dd76e235245b403642292cfd7e729870cba2.tar.bz2
portage-cvs-70d1dd76e235245b403642292cfd7e729870cba2.zip
use %p instead of %F for outputting stuff from scanelf
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild-default-functions.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/ebuild-default-functions.sh b/bin/ebuild-default-functions.sh
index 7b7721b..6455bfe 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.29 2005/05/31 22:44:32 vapier Exp $
+# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-default-functions.sh,v 1.30 2005/06/13 04:23:46 vapier Exp $
has_version() {
# if there is a predefined portageq call, use it.
@@ -432,26 +432,26 @@ dyn_install() {
if type -p scanelf > /dev/null ; then
# Make sure we disallow insecure RUNPATH/RPATH's
- f=$(scanelf -qyRF '%r %F' "${D}" | sed -e "s:${D}::" | grep "${BUILDDIR}")
+ f=$(scanelf -qyRF '%r %p' "${D}" | grep "${BUILDDIR}")
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files contain insecure RUNPATH's"
echo " Please file a bug about this at http://bugs.gentoo.org/"
echo " For more information on this issue, kindly review:"
echo " http://bugs.gentoo.org/81745"
- echo "${f//${D}\/}"
+ echo "${f}"
echo -ne '\a\n'
die "Insecure binaries detected"
fi
# Check for setid binaries but are not built with BIND_NOW
- f=$(scanelf -qyRF '%b %F' "${D}")
+ f=$(scanelf -qyRF '%b %p' "${D}")
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files are setXid, dyn linked, and using lazy bindings"
echo " This combination is generally discouraged. Try re-emerging the package:"
echo " LDFLAGS='-Wl,-z,now' emerge ${PN}"
- echo "${f//${D}\/}"
+ echo "${f}"
echo -ne '\a\n'
[[ ${FEATURES/stricter} != "${FEATURES}" ]] \
&& die "Aborting due to lazy bindings"
@@ -459,7 +459,7 @@ dyn_install() {
fi
# TEXTREL's are baaaaaaaad
- f=$(scanelf -qyRF '%t %F' "${D}")
+ f=$(scanelf -qyRF '%t %p' "${D}")
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files contain runtime text relocations"
@@ -468,7 +468,7 @@ dyn_install() {
echo " and might not function properly on other architectures hppa for example."
echo " If you are a programmer please take a closer look at this package and"
echo " consider writing a patch which addresses this problem."
- echo "${f//${D}\/}"
+ echo "${f}"
echo -ne '\a\n'
[[ ${FEATURES/stricter} != "${FEATURES}" ]] \
&& die "Aborting due to textrels"
@@ -476,14 +476,14 @@ dyn_install() {
fi
# Check for files with executable stacks
- f=$(scanelf -qyRF '%e %F' "${D}")
+ f=$(scanelf -qyRF '%e %p' "${D}")
if [[ -n ${f} ]] ; then
echo -ne '\a\n'
echo "QA Notice: the following files contain executable stacks"
echo " Files with executable stacks will not work properly (or at all!)"
echo " on some architectures/operating systems. A bug should be filed"
echo " at http://bugs.gentoo.org/ to make sure the file is fixed."
- echo "${f//${D}\/}"
+ echo "${f}"
echo -ne '\a\n'
[[ ${FEATURES/stricter} != "${FEATURES}" ]] \
&& die "Aborting due to +x stack"
@@ -491,7 +491,7 @@ dyn_install() {
fi
# Save NEEDED information
- scanelf -qyRF '%F %n' "${D}" | sed -e "s:${D}::g" > "${PORTAGE_BUILDDIR}"/build-info/NEEDED
+ scanelf -qyRF '%p %n' "${D}" | sed -e 's:^:/:' > "${PORTAGE_BUILDDIR}"/build-info/NEEDED
fi
if [[ ${UNSAFE} > 0 ]] ; then