From 2988902496d1d4f22a59ad0c99ef0d8741ac480c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 29 Mar 2014 11:47:59 +0100 Subject: [PATCH] hooks: improve shlib-provides detection as suggested by Gottox. --- common/hooks/post-install/03-strip-and-debug-pkgs.sh | 3 ++- 1 file changed, 2 insertions(+), 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 418248837a..f758da0557 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,8 @@ hook() { fi echo " Stripped library: ${f#$PKGDESTDIR}" _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') - if [[ "${_soname}" ]] && [[ ${_soname} =~ .so.[0-9] ]]; then + pattern="^lib[[:alnum:]]+\.(so)\.[0-9]*" + if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides fi attach_debug "$f"