From: fuzzyray Date: Mon, 1 Mar 2010 19:21:30 +0000 (-0000) Subject: Fix extended regular expression support in revdep-rebuild X-Git-Tag: gentoolkit-0.2.4.6.1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63e198890b14e8453e17a552e424b461b42e4dbb;p=gentoolkit.git Fix extended regular expression support in revdep-rebuild svn path=/branches/gentoolkit-0.2.4/; revision=747 --- diff --git a/src/revdep-rebuild/revdep-rebuild b/src/revdep-rebuild/revdep-rebuild index 1eb4393..8b0dec0 100755 --- a/src/revdep-rebuild/revdep-rebuild +++ b/src/revdep-rebuild/revdep-rebuild @@ -18,7 +18,7 @@ unset GREP_OPTIONS # Readonly variables: declare -r APP_NAME="${0##*/}" # The name of this application -declare -r VERSION="svn" +declare -r VERSION="genscripts-r230" declare -r OIFS="$IFS" # Save the IFS declare -r ENV_FILE=0_env.rr # Contains environment variables declare -r FILES_FILE=1_files.rr # Contains a list of files to search @@ -757,8 +757,8 @@ main_checks() { # FIXME: I hate duplicating code # Only rebuild for direct dependencies MISSING_LIBS=$( - expr="/$SONAME_SEARCH/s/^[[:space:]]*\([^[:space:]]*\).*$/\1/p" - sort -u <<< "$ldd_output" | sed -n "$expr" + expr="s/^[[:space:]]*\([^[:space:]]*\).*$/\1/p" + sort -u <<< "$ldd_output" | grep -E "$SONAME | sed -n "$expr" ) REQUIRED_LIBS=$( expr='s/^[[:space:]]*NEEDED[[:space:]]*\([^[:space:]]*\).*/\1/p';