diff options
-rwxr-xr-x | abuild.in | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -990,6 +990,7 @@ scan_shared_objects() { esac ;; esac + list_has "$soname" $somask && continue echo "$soname $sover" done | sort -u > "$controldir"/.provides-so @@ -997,10 +998,11 @@ scan_shared_objects() { scanelf --nobanner --recursive --needed "$datadir" | tr ' ' ':' \ | awk -F ":" '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \ | sed 's:,:\n:g' | sort -u \ - | while read i; do + | while read soname; do # only add files that are not self provided - grep -q -w "^$i" "$controldir"/.provides-so \ - || echo $i + grep -q -w "^$soname" "$controldir"/.provides-so \ + || list_has "$soname" $somask \ + || echo $soname done > "$controldir"/.needs-so } |