common/hooks/pre-pkg/04-generate-runtime-deps: use 3rd shlibs field

to skip shlibs that should be different on different archs
for this to work, the specially-handled arch must be before the generic
one, for example:

    libc.so musl1.1-1.1.24_1 armv7l-musl
    libc.so musl-1.2.5_1
This commit is contained in:
classabbyamp 2025-05-15 09:06:45 -04:00 committed by classabbyamp
parent 2f2c7724cf
commit 3344a31c41

View file

@ -117,7 +117,7 @@ hook() {
_pkgname=${_pkgname%.nosoname}
_sdep="${_pkgname}-${version}_${revision}"
else
_rdep="$(awk -v sl="$f" '$1 == sl { print $2; exit; }' "$mapshlibs")"
_rdep="$(awk -v sl="$f" -v arch="$XBPS_TARGET_MACHINE" '$1 == sl && ($3 == "" || $3 == "ignore" || $3 == arch) { print $2; exit; }' "$mapshlibs")"
if [ -z "$_rdep" ]; then
msg_red_nochroot " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!\n"