xbps-src: fix repocache for binary-bootstrap

This commit is contained in:
Đoàn Trần Công Danh 2022-11-18 16:52:07 +07:00
parent 6f968ced14
commit 4e33085570
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,11 @@ check_native_arch() {
else
export XBPS_ARCH=$(xbps-uhelper arch)
fi
elif [ "$XBPS_TARGET" = 'binary-bootstrap' ] && [ "$XBPS_TARGET_PKG" ]; then
# ^ special case for binary-bootstrap for e.g:
# x86_64 -> x86_64-musl
# x86_64 -> i686
export XBPS_ARCH=$XBPS_TARGET_PKG
else
LDD=$(ldd --version 2>&1|head -1)
if [[ $LDD == *musl* ]]; then