diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index 488c8fc14ea..78c4be2e63d 100644 --- a/common/hooks/pre-pkg/04-generate-runtime-deps.sh +++ b/common/hooks/pre-pkg/04-generate-runtime-deps.sh @@ -98,7 +98,12 @@ hook() { for f in ${verify_deps}; do unset _rdep _pkgname _rdepver - if [ "$(find ${PKGDESTDIR} -name "$f")" ]; then + local _findargs="-name" + # if SONAME is a path, find should use -wholename + if [[ "$f" = */* ]]; then + _findargs="-wholename" + fi + if [ "$(find "${PKGDESTDIR}" $_findargs "$f")" ]; then # Ignore libs by current pkg echo " SONAME: $f <-> $pkgname (ignored)" continue