Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-22 11:17:58 +0100
committerErich Eckner <git@eckner.net>2019-01-22 11:17:58 +0100
commit350468476ee86bfcf7f717dd9a8496bee172c236 (patch)
tree8dcf23ceed5ed56c3bd5ada12a416f0e758ac2ed
parentd5a246926a733f1eff999724fe973e841f1193f7 (diff)
bin/build-packages: iteratively strip suffixes from provided libraries - we provide them all!
-rwxr-xr-xbin/build-packages10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 4fb9d88..066ef24 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -576,8 +576,14 @@ while [ "${count}" -ne 0 ] && \
pacman -Qqlp "${pkgfile}" | \
sed -n '
s,^.*/,,
- /\.so\(\..\+\)\?$/p
- ' > \
+ /\.so\(\..\+\)\?$/ {
+ :a
+ p
+ s/\(\.so\(\..\+\)\?\)\.[^.]\+$/\1/
+ t a
+ }
+ ' | \
+ sort -u > \
"${pkgfile}.so.provides"
done
>&2 printf 'searching for required and more provided libraries\n'