From 9a2487e19ebfb47dcee06ec6842a68b2eb1dd50b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 30 Apr 2016 17:51:38 +0200 Subject: [PATCH] libexec/build.sh: set XBPS_ARCH while installing base-files to the masterdir. Fixes './xbps-src bootstrap' in musl hosts. --- common/xbps-src/libexec/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh index ab4ced3f1aa..a35f709dec3 100755 --- a/common/xbps-src/libexec/build.sh +++ b/common/xbps-src/libexec/build.sh @@ -103,7 +103,7 @@ if [ -z "$CHROOT_READY" -a "$PKGNAME" = "base-files" ]; then if [ -n "$XBPS_BUILD_FORCEMODE" ]; then _flags="-f" fi - $XBPS_INSTALL_CMD ${_flags} -y $PKGNAME >${_log} 2>&1 + XBPS_ARCH=$XBPS_MACHINE $XBPS_INSTALL_CMD ${_flags} -y $PKGNAME >${_log} 2>&1 if [ $? -ne 0 ]; then msg_red "Failed to install $PKGNAME into masterdir, see below for errors:\n" cat ${_log}