tazwok rev 128
check-depends: search into virtual packages too
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 11 14:31:02 2009 +0000 (2009-04-11) |
parents | 11d28a6fec9e |
children | cce242ec9f72 |
files | tazwok |
line diff
1.1 --- a/tazwok Fri Apr 10 07:29:23 2009 +0000 1.2 +++ b/tazwok Sat Apr 11 14:31:02 2009 +0000 1.3 @@ -710,7 +710,7 @@ 1.4 { 1.5 local i 1.6 ALL_DEPENDS="$ALL_DEPENDS$PACKAGE " 1.7 - for i in $DEPENDS ; do 1.8 + for i in $DEPENDS $SUGGESTED ; do 1.9 case " $ALL_DEPENDS " in 1.10 *\ $i\ *) continue;; 1.11 esac 1.12 @@ -718,6 +718,8 @@ 1.13 ALL_DEPENDS="$ALL_DEPENDS$i " 1.14 continue 1.15 } 1.16 + DEPENDS="" 1.17 + SUGGESTED="" 1.18 . $WOK/$i/receipt 1.19 scan_dep 1.20 done 1.21 @@ -754,14 +756,20 @@ 1.22 esac 1.23 ldd $file | while read lib rem; do 1.24 case "$lib" in 1.25 - linux-gate.so*|ld-*.so|*/ld-*.so) 1.26 + statically|linux-gate.so*|ld-*.so|*/ld-*.so) 1.27 continue;; 1.28 esac 1.29 for dep in $(grep $lib files.list | cut -d: -f1); do 1.30 case " $ALL_DEPENDS " in 1.31 *\ $dep\ *) continue 2;; 1.32 esac 1.33 + for vdep in $(grep $dep /var/lib/tazpkg/packages.equiv | cut -d= -f1); do 1.34 + case " $ALL_DEPENDS " in 1.35 + *\ $vdep\ *) continue 2;; 1.36 + esac 1.37 + done 1.38 done 1.39 + [ -n "$dep" ] || dep="UNKNOWN" 1.40 echo "$(basename $pkg): ${file#*fs} depends on package $dep for the shared library $lib" 1.41 done 1.42 done