hooks: improve shlib-provides: accept unversioned shlibs (i.e libfoo.so [nspr/nss]).
This commit is contained in:
parent
4a3e8249d7
commit
efde1e1fbf
|
@ -106,7 +106,7 @@ 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}')
|
||||||
pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so)\.[0-9]*"
|
pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so\.[0-9]*|so)"
|
||||||
if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then
|
if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then
|
||||||
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue