Add patch for FreeBSD from lavajoe (Bug #183657)
authorfuzzyray <fuzzyray@gentoo.org>
Tue, 7 Aug 2007 01:34:10 +0000 (01:34 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Tue, 7 Aug 2007 01:34:10 +0000 (01:34 -0000)
svn path=/; revision=430

trunk/src/revdep-rebuild/revdep-rebuild-rewrite

index 63de189ca2dae3b1f19e3eaece1da005461c7636..ac3feae48e51d6bf187cda855e365c9864d8ef5f 100755 (executable)
@@ -547,7 +547,7 @@ main_checks() {
                                                        )
                                                        REQUIRED_LIBS=$(
                                                                expr='s/^[[:space:]]*NEEDED[[:space:]]*\([^[:space:]]*\).*/\1/p';
-                                                               objdump -x "$target_file" | sed "$expr" | sort -u
+                                                               objdump -x "$target_file" | grep NEEDED | sed "$expr" | sort -u
                                                        )
                                                        MISSING_LIBS=$(grep -F "$REQUIRED_LIBS" <<< "$MISSING_LIBS")
                                                        if [[ $MISSING_LIBS ]]; then
@@ -564,7 +564,7 @@ main_checks() {
                                                )
                                                REQUIRED_LIBS=$(
                                                        expr='s/^[[:space:]]*NEEDED[[:space:]]*\([^[:space:]]*\).*/\1/p';
-                                                       objdump -x "$target_file" | sed "$expr" | sort -u
+                                                       objdump -x "$target_file" | grep NEEDED | sed "$expr" | sort -u
                                                )
                                                MISSING_LIBS=$(grep -F "$REQUIRED_LIBS" <<< "$MISSING_LIBS")
                                                if [[ $MISSING_LIBS ]]; then