From 4e33085570d49c37258a4a308da1d9f5af907a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 18 Nov 2022 16:52:07 +0700 Subject: [PATCH] xbps-src: fix repocache for binary-bootstrap --- xbps-src | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xbps-src b/xbps-src index 47681826196..0ee7af50740 100755 --- a/xbps-src +++ b/xbps-src @@ -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