From 1d13ed08100ccc3e1253ed89972a6acc6a2f6755 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 1 Apr 2014 15:14:43 +0200 Subject: [PATCH] hooks/post-install: strip: only accept shlibs in destdir/usr/lib for shlib-provides. This avoids lots of false positives and accepts unversioned shlibs as well. --- common/hooks/post-install/03-strip-and-debug-pkgs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/hooks/post-install/03-strip-and-debug-pkgs.sh b/common/hooks/post-install/03-strip-and-debug-pkgs.sh index 23ebf81122d..167f5c788d3 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -108,6 +108,9 @@ hook() { _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so\.[0-9]*|so)" if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then + if [ ! -f ${PKGDESTDIR}/usr/lib/${fname} ]; then + continue + fi echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides fi attach_debug "$f"