common/hooks/pre-pkg/04-generate-runtime-deps: support SONAME as path
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
This commit is contained in:
parent
b3219f5588
commit
afea603940
@ -98,7 +98,12 @@ hook() {
|
|||||||
for f in ${verify_deps}; do
|
for f in ${verify_deps}; do
|
||||||
unset _rdep _pkgname _rdepver
|
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
|
# Ignore libs by current pkg
|
||||||
echo " SONAME: $f <-> $pkgname (ignored)"
|
echo " SONAME: $f <-> $pkgname (ignored)"
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user