98-shlib-provides: handle special 32bit packages

If the packages has -32bit suffix and there's another subpackages with
same name. It's definitely not a normal package.
This commit is contained in:
Đoàn Trần Công Danh 2023-09-08 11:54:04 +07:00
parent 0e06199f9a
commit 3879823578
1 changed files with 15 additions and 1 deletions

View File

@ -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}
}