summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}" \