mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
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:
parent
0e06199f9a
commit
3879823578
1 changed files with 15 additions and 1 deletions
|
@ -66,9 +66,23 @@ collect_sonames() {
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
local _destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
|
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
|
# native pkg
|
||||||
collect_sonames ${PKGDESTDIR} yes
|
collect_sonames ${PKGDESTDIR} $_mainpkg
|
||||||
# 32bit pkg
|
# 32bit pkg
|
||||||
collect_sonames ${_destdir32}
|
collect_sonames ${_destdir32}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue