From afea603940abd193195dd44a4fe9e44c4cf096af Mon Sep 17 00:00:00 2001 From: classabbyamp <void@placeviolette.net> Date: Thu, 16 May 2024 14:01:59 -0400 Subject: [PATCH] common/hooks/pre-pkg/04-generate-runtime-deps: support SONAME as path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit neovim looks for a SONAME that is a whole path find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time. Did you mean ‘-wholename’? SONAME: /usr/lib/lua/5.1/lpeg.so <-> lua51-lpeg>=1.1.0_2 --- common/hooks/pre-pkg/04-generate-runtime-deps.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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