From 08fac2d1082eb459e968c50dc8469c851611c0ec Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 7 Jun 2015 10:21:08 +0200 Subject: [PATCH] xbps-src: detect musl hosts correctly in 'binary-bootstrap'. --- xbps-src | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xbps-src b/xbps-src index 4957645d936..e59c52f7eb8 100755 --- a/xbps-src +++ b/xbps-src @@ -257,8 +257,10 @@ check_build_requirements() { install_bbootstrap() { [ -n "$CHROOT_READY" ] && return - if [ -n "$1" ]; then + if [ "$1" = "bootstrap" ]; then unset XBPS_TARGET_PKG XBPS_INSTALL_ARGS + else + XBPS_TARGET_PKG="$1" fi if [ -n "$XBPS_SKIP_REMOTEREPOS" ]; then unset XBPS_INSTALL_ARGS @@ -571,7 +573,7 @@ fi # case "$XBPS_TARGET" in binary-bootstrap) - install_bbootstrap + install_bbootstrap ${XBPS_TARGET_PKG:=$XBPS_MACHINE} ;; bootstrap) # bootstrap from sources