From 280a66570752c6ba3fcf9242d9a9bc6912cfcd23 Mon Sep 17 00:00:00 2001 From: Daniele Rondina Date: Fri, 23 Aug 2019 14:59:19 +0200 Subject: [PATCH] sabayon-brokenlinks: Add support for libs *.a --- sabayon-brokenlinks | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sabayon-brokenlinks b/sabayon-brokenlinks index 094820e..f09f1a6 100755 --- a/sabayon-brokenlinks +++ b/sabayon-brokenlinks @@ -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"