From: fuzzyray Date: Fri, 7 Jul 2006 20:43:46 +0000 (-0000) Subject: Change --no-path to --no-ld-path X-Git-Tag: gentoolkit-0.2.4.3~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=41aa029ed8a6c0758b4a246a62cd7e53e4c5bbe4;p=gentoolkit.git Change --no-path to --no-ld-path svn path=/; revision=303 --- diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index d42bd92..df2ed35 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -40,7 +40,7 @@ then echo " --library NAME Emerge existing packages that use the library with NAME" echo " --library=NAME NAME can be a full path to the library or a basic" echo " regular expression (man grep)" - echo " -np, --no-path Do not include searched directories in LD_LIBRARY_PATH" + echo " -np, --no-ld-path Do not set LD_LIBRARY_PATH" echo " -nc, --no-color Turn off colored output" echo " -i, --ignore Ignore temporary files from previous runs" echo " -q, --quiet Be less verbose (also passed to emerge command)" @@ -167,7 +167,7 @@ SONAME_GREP=grep SEARCH_BROKEN=true EXTRA_VERBOSE=false KEEP_TEMP=false -FULL_PATH=true +FULL_LD_PATH=true EMERGE_OPTIONS="" PRELIMINARY_CALLED_OPTIONS="" @@ -199,8 +199,9 @@ while [ ! -z "$1" ] ; do NOCOLOR=true shift ;; - -np | --no-path ) - FULL_PATH=false + -np | --no-ld-path ) + FULL_LD_PATH=false + PRELIMINARY_CALLED_OPTIONS="${PRELIMINARY_CALLED_OPTIONS} --no-ld-path" shift ;; -i | --ignore ) @@ -380,7 +381,7 @@ else echo -e " done.\n ($LIST.1_files)" fi -if $SEARCH_BROKEN ; then +if $SEARCH_BROKEN && $FULL_LD_PATH ; then echo echo -n -e "${GR}Collecting complete LD_LIBRARY_PATH...${NO}" if [ -f $LIST.2_ldpath ] ; then @@ -391,13 +392,11 @@ if $SEARCH_BROKEN ; then ( echo /lib* /usr/lib* | sed 's/ /:/g' sed '/^#/d;s/#.*$//' $LIST.2_ldpath echo -e " done.\n ($LIST.2_ldpath)" fi - export COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)" + COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)" fi echo @@ -413,7 +412,7 @@ else # Note: double checking seems to be faster than single # with complete path (special add ons are rare). if ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" | $SONAME_GREP -q "$SONAME_SEARCH" ; then - if $SEARCH_BROKEN ; then + if $SEARCH_BROKEN && $FULL_LD_PATH ; then if LD_LIBRARY_PATH="$COMPLETE_LD_LIBRARY_PATH" ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" | $SONAME_GREP -q "$SONAME_SEARCH" ; then # FIX: I hate duplicating code # Only build missing direct dependencies @@ -449,7 +448,11 @@ else if [ "$MISSING_LIBS" != "" ] then echo "$FILE" >>$LLIST.3_rebuild - echo_v " found $FILE" + if $SEARCH_BROKEN ; then + echo_v " broken $FILE (requires ${MISSING_LIBS})" + else + echo_v " found $FILE" + fi fi fi fi diff --git a/trunk/src/revdep-rebuild/revdep-rebuild.1 b/trunk/src/revdep-rebuild/revdep-rebuild.1 index 1be9c6c..b1df74b 100644 --- a/trunk/src/revdep-rebuild/revdep-rebuild.1 +++ b/trunk/src/revdep-rebuild/revdep-rebuild.1 @@ -14,8 +14,8 @@ emerge the best packages available, not neccessarily the exact version of the in .B \-\-library=NAME emerge packages that use the named library. Name can be a full path to a library or basic regular expression. (See man grep for the definition of basic regular expressions) .TP -.B \-np | \-\-no\-path -Do not include searched directories in LD_LIBRARY_PATH. \fBNote:\fR Using this option will cause revdep-rebuild to report some false positives. +.B \-np | \-\-no\-ld\-path +Do not set LD_LIBRARY_PATH. \fBNote:\fR Using this option will cause revdep-rebuild to report some false positives. .TP .B \-nc | \-\-no\-color turn off colored output (This option is also passed to the emerge command)