summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-10 17:24:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-10 17:24:09 +0000
commita9a17c9a10a5d95e038ed744cd479c97120f2324 (patch)
treee7737e823018bb2c0ebac41411297b3845238bf4
parent7ee8dbc044218c4364e0fe401328800b130e4ece (diff)
downloadabuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.gz
abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.bz2
abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.tar.xz
abuild-a9a17c9a10a5d95e038ed744cd479c97120f2324.zip
abuild: implement somask
-rwxr-xr-xabuild.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index e3e749b..cd38494 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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
}