diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-21 14:25:02 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-21 14:32:19 (EST) |
commit | a9724b1e228c9ed8211b030a2012f6d2249220db (patch) | |
tree | d912d3a1437d536db764947c0ed67054e82d440b /src/oh-shlibdeps.sh | |
parent | 2902641342e0869c827e9ac508de1068739afeb0 (diff) |
oh-shlibdeps: Arch-qualify just-built packages
Diffstat (limited to 'src/oh-shlibdeps.sh')
-rw-r--r-- | src/oh-shlibdeps.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. . '@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" |