summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2006-07-05 19:19:43 +0000
committerfuzzyray <fuzzyray@gentoo.org>2006-07-05 19:19:43 +0000
commit58dc4deb4011f1f9cc1858e68f2d57cffa1d167a (patch)
treeccc04e7d6cdef594cbf286fe261581d486904a83 /trunk/src
parente94c9130f87b0b85665572a7035834683f0032cf (diff)
downloadgentoolkit-58dc4deb4011f1f9cc1858e68f2d57cffa1d167a.tar.gz
Add --no-path option to revdep-rebuild
svn path=/; revision=302
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild10
-rw-r--r--trunk/src/revdep-rebuild/revdep-rebuild.13
2 files changed, 12 insertions, 1 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild
index 569e183..d42bd92 100755
--- a/trunk/src/revdep-rebuild/revdep-rebuild
+++ b/trunk/src/revdep-rebuild/revdep-rebuild
@@ -40,6 +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 " -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)"
@@ -166,6 +167,7 @@ SONAME_GREP=grep
SEARCH_BROKEN=true
EXTRA_VERBOSE=false
KEEP_TEMP=false
+FULL_PATH=true
EMERGE_OPTIONS=""
PRELIMINARY_CALLED_OPTIONS=""
@@ -197,6 +199,10 @@ while [ ! -z "$1" ] ; do
NOCOLOR=true
shift
;;
+ -np | --no-path )
+ FULL_PATH=false
+ shift
+ ;;
-i | --ignore )
rm -f ${LIST}*
shift
@@ -385,7 +391,9 @@ if $SEARCH_BROKEN ; then
(
echo /lib* /usr/lib* | sed 's/ /:/g'
sed '/^#/d;s/#.*$//' </etc/ld.so.conf
- sed 's:/[^/]*$::' <$LIST.1_files | sort -ru
+ if $FULL_PATH ; then
+ sed 's:/[^/]*$::' <$LIST.1_files | sort -ru
+ fi
) | tr '\n' : | tr -d '\r' | sed 's/:$//' >$LIST.2_ldpath
echo -e " done.\n ($LIST.2_ldpath)"
fi
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild.1 b/trunk/src/revdep-rebuild/revdep-rebuild.1
index e9d59a5..1be9c6c 100644
--- a/trunk/src/revdep-rebuild/revdep-rebuild.1
+++ b/trunk/src/revdep-rebuild/revdep-rebuild.1
@@ -14,6 +14,9 @@ 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.
+.TP
.B \-nc | \-\-no\-color
turn off colored output (This option is also passed to the emerge command)
.TP