From a9724b1e228c9ed8211b030a2012f6d2249220db Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 21 Dec 2020 14:25:02 -0500 Subject: oh-shlibdeps: Arch-qualify just-built packages --- diff --git a/NEWS b/NEWS index 378f79c..893838c 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,8 @@ opkhelper version 3.1.3+dev Released: ????-??-?? * libopkbuild is now a required dependency. + * oh-shlibdeps now architecture-qualifies names of just-built packages + when appropriate (as determined by libopkbuild). * oh-shlibdeps no longer overwrites the contents of existing substvars files. diff --git a/src/oh-shlibdeps.sh b/src/oh-shlibdeps.sh index 92d3c5d..2edb275 100644 --- a/src/oh-shlibdeps.sh +++ b/src/oh-shlibdeps.sh @@ -20,6 +20,7 @@ # along with this program. If not, see . . '@pkgdatadir@/load.sm' +. '@LIBOPKBUILD@' READELF_NEEDED_SED='s/^ 0x[0-9a-f]* (NEEDED) *Shared library: \[\(.*\)\]$/\1/p' @@ -41,7 +42,9 @@ find_lib() for pkg in *.data/; do for dir in ${rtld_dirs}; do if [ -r "${pkg}/${dir}/${lib}" ]; then - printf '%s,\n' "${pkg%.data/}" + pkg="$(ob_qualify_package_name "${pkg%.data/}" \ + "${OPK_HOST_ARCH}")" + printf '%s,\n' "${pkg}" return 0 fi done @@ -104,6 +107,7 @@ main() local d= oh_init + ob_init_package '..' || return 1 for d in *.data/; do exec 3>>"${d%.data/}.substvars" -- cgit v0.9.1