From: Fabian Groffen Date: Fri, 28 Mar 2008 21:18:04 +0000 (-0000) Subject: Fix cause of bug #215116. Properly read input from scanelf such that we don't interp... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9ea81ac037bdf681b2d826b40cd6f3f3352cc77d;p=portage.git Fix cause of bug #215116. Properly read input from scanelf such that we don't interpret rpath info as needed info svn path=/main/branches/prefix/; revision=9582 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index dc2d77573..38c64c59e 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -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