sabayon-brokenlinks: Add support for libs *.a

This commit is contained in:
Daniele Rondina
2019-08-23 14:59:19 +02:00
parent 631072d2a5
commit 280a665707
+5 -4
View File
@@ -127,10 +127,11 @@ examine_libs() {
broken_files=""
log 1 "Checking directory $lib..."
broken_files=$(find $lib -type l -and -xtype l -and -name *.so* -or -name *.a -and -type l -and -xtype l 2>/dev/null || true )
broken_files=$(find $lib -type l -xtype l -name *.so* 2>/dev/null)
[ -z "$DEBUG" ] || find $lib -type l -xtype l -name *.so*
[ -z "$DEBUG" ] || {
find $lib -type l -and -xtype l -and -name *.so* -or -name *.a -and -type l -and -xtype l || true
}
for file in ${broken_files} ; do
examine_file "${file}" "${lib}"
@@ -159,7 +160,7 @@ examine_file() {
log 1 "Broken link $f => $targetlink"
# Check if file is without revision (es. libudev.so)
res=$(perl -e "if ('$base' =~ /(.so$)/) { print '1' }")
res=$(perl -e "if ('$base' =~ /(.so|.a$)/) { print '1' }")
if [ -n "$res" ] ; then
#
#echo "BASE = $base"