From 8f846037f5df73eda19529ad0e8ff2532c3c6269 Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 19 Nov 1996 20:35:51 +0000 Subject: follow symlinks and ignore 'file' errors CVS patchset: 1179 CVS date: 1996/11/19 20:35:51 --- autodeps/linux.prov | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autodeps') diff --git a/autodeps/linux.prov b/autodeps/linux.prov index 8e990c35b..d82091bf0 100644 --- a/autodeps/linux.prov +++ b/autodeps/linux.prov @@ -3,7 +3,7 @@ # This script reads filenames from STDIN and outputs any relevant provides # information that needs to be included in the package. -filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file | grep "ELF.*shared object" | cut -d: -f1) +filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1) for f in $filelist; do soname=$(objdump --raw $f --section=.dynstr 2> /dev/null | tr '\0' '\n' | tail -1) -- cgit v1.2.3