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.
This commit is contained in:
Juan RP 2014-09-10 11:59:13 +02:00
parent 289bc58776
commit 21a1d23fe5

View file

@ -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