From a11fd5dce81e47bf84811708fd7a651e8bf0acdc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 29 Mar 2014 12:13:12 +0100 Subject: [PATCH] hooks: improve even more shlib-provides detection: accept sonames with '-' chars. --- 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 f758da0557c..c96091a6a51 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}') - pattern="^lib[[:alnum:]]+\.(so)\.[0-9]*" + pattern="^lib[[:alnum:]]*([-[[:alnum:]]*)\.(so)\.[0-9]*" if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides fi