From d60be314505258df86c972241f2cb3692ac2af4e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Mar 2014 17:07:26 +0100 Subject: [PATCH] hooks/post-install/03-strip-and-debug-pkgs: only add versioned shlib to shlib-provides. This really avoids adding unwanted private shared objects or others that are only meaningful at runtime and not for linking. --- common/hooks/post-install/03-strip-and-debug-pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8f17d8c044..418248837a 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -106,7 +106,7 @@ hook() { fi echo " Stripped library: ${f#$PKGDESTDIR}" _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') - if [ -n "${_soname}" ]; then + if [[ "${_soname}" ]] && [[ ${_soname} =~ .so.[0-9] ]]; then echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides fi attach_debug "$f"