Fix cause of bug #215116. Properly read input from scanelf such that we don't interp...
authorFabian Groffen <grobian@gentoo.org>
Fri, 28 Mar 2008 21:18:04 +0000 (21:18 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 28 Mar 2008 21:18:04 +0000 (21:18 -0000)
svn path=/main/branches/prefix/; revision=9582

bin/misc-functions.sh

index dc2d77573f5ba91cc8770404014d821cf295993c..38c64c59ea9c8c75849ce712ccc9cf1df3d71d85 100644 (file)
@@ -160,9 +160,9 @@ install_qa_check() {
                fi
 
                # Save NEEDED information after removing self-contained providers
-               scanelf -qyRF '%p:%r %n' "${D}" | sed -e 's:^:/:' | { while read l; do
+               scanelf -qyRF '%p:%r %n' "${D}" | sed -e 's:^:/:' | { while IFS= read l; do
                        obj=${l%%:*}
-                       rpath=${l##*:}; rpath=${rpath%% *}
+                       rpath=${l#*:}; rpath=${rpath% *}
                        needed=${l##* }
                        if [ -z "${rpath}" -o -n "${rpath//*ORIGIN*}" ]; then
                                # object doesn't contain $ORIGIN in its runpath attribute