diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2006-01-18 20:04:20 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2006-01-18 20:04:20 +0000 |
| commit | 90a218d691c6627ab07ddacd172dda93c579a313 (patch) | |
| tree | bcf7f3fdadf14dac75fbbca02553f3aac773104b /trunk/src | |
| parent | 529e6d423c17a3141acb26f3f3a399c0e838f819 (diff) | |
| download | gentoolkit-90a218d691c6627ab07ddacd172dda93c579a313.tar.gz | |
Add capability to check libtool .la files for non-existant references
svn path=/; revision=273
Diffstat (limited to 'trunk/src')
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index f08a654..d6bd69a 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -339,11 +339,11 @@ else exit 1 else # using -perm +u+x for find command - find $SEARCH_DIRS -type f \( -perm +u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null | sort | uniq >$LIST.0_files + find $SEARCH_DIRS -type f \( -perm +u+x -o -name '*.so' -o -name '*.so.*' -o -name '*.la' \) 2>/dev/null | sort | uniq >$LIST.0_files fi else # using -perm /u+x for find command - find $SEARCH_DIRS -type f \( -perm /u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null | sort | uniq >$LIST.0_files + find $SEARCH_DIRS -type f \( -perm /u+x -o -name '*.so' -o -name '*.so.*' -o -name '*.la' \) 2>/dev/null | sort | uniq >$LIST.0_files fi # Remove files that match SEARCH_DIR_MASK @@ -384,7 +384,7 @@ else set_trap "$LLIST.3_rebuild" LD_MASK="\\( $(echo "$LD_LIBRARY_MASK" | sed 's/\./\\./g;s/ / \\| /g') \\)" echo -n >$LLIST.3_rebuild - cat $LIST.1_files | while read FILE ; do + cat $LIST.1_files | egrep -v '*\.la$' | while read FILE ; do # 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 @@ -429,6 +429,17 @@ else fi fi done + if $SEARCH_BROKEN ; then + cat $LIST.1_files | egrep '*\.la$' | while read FILE ; do + for depend in $(grep '^dependency_libs' $FILE | awk -F'=' '{print $2}' | sed "s/'//g") ; do + [ ${depend:0:1} != '/' ] && continue + if [ ! -e $depend ] ; then + echo "$FILE" >>$LLIST.3_rebuild + echo_v " broken $FILE (requires ${depend})" + fi + done + done + fi echo -e " done.\n ($LLIST.3_rebuild)" fi |
