From: fuzzyray Date: Tue, 17 Jul 2007 17:34:04 +0000 (-0000) Subject: Fix issue with --library hanging X-Git-Tag: gentoolkit-0.2.4.3~94 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36b8339ea2cd7a03e608c57b6c0d0584dff8867d;p=gentoolkit.git Fix issue with --library hanging svn path=/; revision=419 --- 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