hooks: improve shlib-provides detection as suggested by Gottox.
This commit is contained in:
parent
95e36a806c
commit
2988902496
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ hook() {
|
||||||
fi
|
fi
|
||||||
echo " Stripped library: ${f#$PKGDESTDIR}"
|
echo " Stripped library: ${f#$PKGDESTDIR}"
|
||||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
_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
|
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
||||||
fi
|
fi
|
||||||
attach_debug "$f"
|
attach_debug "$f"
|
||||||
|
|
Loading…
Reference in a new issue