diff --git a/common/hooks/post-install/03-strip-and-debug-pkgs.sh b/common/hooks/post-install/03-strip-and-debug-pkgs.sh index 23ebf81122d..167f5c788d3 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -108,6 +108,9 @@ hook() { _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so\.[0-9]*|so)" if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then + if [ ! -f ${PKGDESTDIR}/usr/lib/${fname} ]; then + continue + fi echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides fi attach_debug "$f"