hooks/post-install/03-strip-and-debug-pkgs: only add versioned shlib to shlib-provides.

This really avoids adding unwanted private shared objects or others that are
only meaningful at runtime and not for linking.
This commit is contained in:
Juan RP 2014-03-24 17:07:26 +01:00
parent 708d23ee81
commit d60be31450

View file

@ -106,7 +106,7 @@ hook() {
fi
echo " Stripped library: ${f#$PKGDESTDIR}"
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
if [ -n "${_soname}" ]; then
if [[ "${_soname}" ]] && [[ ${_soname} =~ .so.[0-9] ]]; then
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
fi
attach_debug "$f"