3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
6 filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1)
9 soname=$(objdump -p $f | awk '/SONAME/ {print $2}')
11 if [ "$soname" != "" ]; then
16 /Version definitions:/ { START=1; }
17 /^[0-9]/ && (START==1) { print $4; }
21 while read symbol ; do
22 echo "$soname($symbol)"