From 21a1d23fe51aaed7c5c2aff2a8ba202a4d658446 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 10 Sep 2014 11:59:13 +0200 Subject: [PATCH] hooks/strip-and-debug-pkgs: make regexp a bit more generic to match more cases. ld-linux sonames from glibc, were not matched resulting in incomplete shlib-provides. The regexp now allows sonames without the "lib" prefix. --- 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 866ecb19da8..60cc0999250 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="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)*$" if [[ ${_soname} =~ $pattern ]]; then if [ ! -e ${PKGDESTDIR}/usr/lib/${fname} ]; then continue