summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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