Skip to content

Commit

Permalink
98-shlib-provides: handle special 32bit packages
Browse files Browse the repository at this point in the history
If the packages has -32bit suffix and there's another subpackages with
same name. It's definitely not a normal package.
  • Loading branch information
sgn committed Sep 8, 2023
1 parent 0e06199 commit 3879823
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion common/hooks/post-install/98-shlib-provides.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,23 @@ collect_sonames() {

hook() {
local _destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
local _mainpkg=yes
local _pkg

case "$pkgname" in
*-32bit)
_pkgname=${pkgname%-32bit}
for _pkg in $sourcepkg $subpackages; do
if [ "$_pkg" = "$_pkgname" ]; then
_mainpkg=
break
fi
done
;;
esac

# native pkg
collect_sonames ${PKGDESTDIR} yes
collect_sonames ${PKGDESTDIR} $_mainpkg
# 32bit pkg
collect_sonames ${_destdir32}
}

0 comments on commit 3879823

Please sign in to comment.