From 350468476ee86bfcf7f717dd9a8496bee172c236 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 22 Jan 2019 11:17:58 +0100 Subject: bin/build-packages: iteratively strip suffixes from provided libraries - we provide them all! --- bin/build-packages | 10 ++++++++-- 1 file 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' -- cgit v1.2.3-70-g09d2