diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-10 17:24:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-10 17:24:09 +0000 |
commit | a9a17c9a10a5d95e038ed744cd479c97120f2324 (patch) | |
tree | e7737e823018bb2c0ebac41411297b3845238bf4 | |
parent | 7ee8dbc044218c4364e0fe401328800b130e4ece (diff) | |
download | abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.gz abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.bz2 abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.xz abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.zip |
abuild: implement somask
-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 } |