hooks: improve even more shlib-provides detection: accept sonames with '-' chars.
This commit is contained in:
parent
071c5edb84
commit
a11fd5dce8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue