Commit a9a17c9a authored by Natanael Copa's avatar Natanael Copa

abuild: implement somask

parent 7ee8dbc0
...@@ -990,6 +990,7 @@ scan_shared_objects() { ...@@ -990,6 +990,7 @@ scan_shared_objects() {
esac esac
;; ;;
esac esac
list_has "$soname" $somask && continue
echo "$soname $sover" echo "$soname $sover"
done | sort -u > "$controldir"/.provides-so done | sort -u > "$controldir"/.provides-so
...@@ -997,10 +998,11 @@ scan_shared_objects() { ...@@ -997,10 +998,11 @@ scan_shared_objects() {
scanelf --nobanner --recursive --needed "$datadir" | tr ' ' ':' \ scanelf --nobanner --recursive --needed "$datadir" | tr ' ' ':' \
| awk -F ":" '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \ | awk -F ":" '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \
| sed 's:,:\n:g' | sort -u \ | sed 's:,:\n:g' | sort -u \
| while read i; do | while read soname; do
# only add files that are not self provided # only add files that are not self provided
grep -q -w "^$i" "$controldir"/.provides-so \ grep -q -w "^$soname" "$controldir"/.provides-so \
|| echo $i || list_has "$soname" $somask \
|| echo $soname
done > "$controldir"/.needs-so done > "$controldir"/.needs-so
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment