summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2007-07-17 17:34:04 +0000
committerfuzzyray <fuzzyray@gentoo.org>2007-07-17 17:34:04 +0000
commit36b8339ea2cd7a03e608c57b6c0d0584dff8867d (patch)
tree9beafe8f712b136957ce91f81f028152a42e2a6f /trunk
parent3553c304a3b7bf1abb3eb65d900f534ab05507fd (diff)
downloadgentoolkit-36b8339ea2cd7a03e608c57b6c0d0584dff8867d.tar.gz
Fix issue with --library hanging
svn path=/; revision=419
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild-rewrite4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
index a76dce3..d6a3079 100755
--- a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
+++ b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
@@ -496,14 +496,14 @@ main_checks() {
# FIXME: I hate duplicating code
# Only rebuild for direct dependencies
MISSING_LIBS=$(
- expr="/$SONAME_SEARCH/s/^\([^[:space:]]*\).*$/\1/p"
+ expr="/$SONAME_SEARCH/s/^[[:space:]]*\([^[:space:]]*\).*$/\1/p"
sort -u <<< "$ldd_output" | sed -n "$expr"
)
REQUIRED_LIBS=$(
expr='s/^[[:space:]]*NEEDED[[:space:]]*\([^[:space:]]*\).*/\1/p';
objdump -x "$FILE" | sed "$expr" | sort -u
)
- MISSING_LIBS=$(grep -F "$REQUIRED_LIBS")
+ MISSING_LIBS=$(grep -F "$REQUIRED_LIBS" <<< "$MISSING_LIBS")
if [[ $MISSING_LIBS ]]; then
echo "obj $FILE" >> "$LIST.3_rebuild"
if [[ $SEARCH_BROKEN ]]; then