- have scanelf nuke insecure rpaths
authorNed Ludd <solar@gentoo.org>
Sun, 5 Mar 2006 15:01:06 +0000 (15:01 -0000)
committerNed Ludd <solar@gentoo.org>
Sun, 5 Mar 2006 15:01:06 +0000 (15:01 -0000)
svn path=/main/trunk/; revision=2813

bin/ebuild.sh

index 70df2ba6512b764526a46d5e39e058f10f571d12..41285edb262a3cc000015212a928a8e444084053 100755 (executable)
@@ -1103,11 +1103,16 @@ dyn_install() {
                        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 " with the maintaining herd of the package."
+                       echo " Summary: $CATEGORY/$PN: insecure RPATH ${f}"
                        echo "${f}"
                        echo -ne '\a\n'
-                       insecure_rpath=1
+                       if has stricter ${FEATURES}; then
+                               insecure_rpath=1
+                       else
+                               echo "Auto fixing rpaths for ${f}"
+                               TMPDIR=${PORTAGE_BUILDDIR} scanelf -BXr ${f} -o /dev/null
+                       fi
                fi
 
                # Check for setid binaries but are not built with BIND_NOW