summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-05 08:51:44 +0200
committerErich Eckner <git@eckner.net>2020-06-05 08:51:44 +0200
commita644d6f3faf6ea5a54500079b929ec880471800c (patch)
tree3583820765596540ed0d4b121212cb3e4adec258
parentb4750689fdf9cf35ef1371ca8874c886ac8c3f23 (diff)
downloadarchlinuxewe-a644d6f3faf6ea5a54500079b929ec880471800c.tar.xz
pin-dependencies.PKGBUILDpatch: only consider libraries which are available on the system
-rw-r--r--pin-dependencies.PKGBUILDpatch9
1 files changed, 9 insertions, 0 deletions
diff --git a/pin-dependencies.PKGBUILDpatch b/pin-dependencies.PKGBUILDpatch
index 05472ee0d..9926eea1b 100644
--- a/pin-dependencies.PKGBUILDpatch
+++ b/pin-dependencies.PKGBUILDpatch
@@ -8,6 +8,14 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
t
d
' \
+ | sort -u \
+ | while read -r _lib; do
+ for _libdir in {${pkgdir},}/usr/lib*; do
+ [ -d "${_libdir}" ] || continue
+ [ -e "${_libdir}/${_lib}" ] \
+ && printf '%s\n' "${_lib}"
+ done
+ done \
| sort -u
for _libdir in "${pkgdir}/usr"/lib*; do
[ -d "${_libdir}" ] || continue
@@ -21,6 +29,7 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
pacman -Qqo "/usr/lib/${_lib}" 2>/dev/null
); then
>&2 printf 'WARNING: noone owns "%s"\n' "${_lib}"
+ printf '%s\n' "${_lib}"
continue
fi
if pacman -Qi "${_pkg}" \