From af11e6c8914fcf7eeef5f0805a68c18a64e053c2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Apr 2016 17:03:24 +0200 Subject: [PATCH] xbps-src: set XBPS_CHROOT_CMD=uchroot with -t; improve desc for -a. --- xbps-src | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xbps-src b/xbps-src index 4839bcc104f..e91bc67a0f5 100755 --- a/xbps-src +++ b/xbps-src @@ -127,8 +127,8 @@ zap Options: --a - Cross compile packages for this profile. Supported targets: +-a + Cross compile packages for this target machine. Supported targets: $(print_cross_targets) @@ -182,6 +182,7 @@ $(print_cross_targets) -t Create a temporary masterdir to not pollute the current one. Note that the existing masterdir must be fully populated with binary-bootstrap first. Once the target has finished, this temporary masterdir will be removed. + This flag requires xbps-uchroot(1). _EOF } @@ -578,10 +579,7 @@ done # A temporary masterdir requires xbps-uchroot(8) and -O to use overlayfs # on tmpfs (available with xbps-0.45). if [ -z "$IN_CHROOT" -a -n "$XBPS_TEMP_MASTERDIR" ]; then - if [ "$XBPS_CHROOT_CMD" != "uchroot" ]; then - echo "ERROR: -t requires XBPS_CHROOT_CMD=uchroot, exiting..." - exit 1 - fi + export XBPS_CHROOT_CMD="uchroot" export XBPS_CHROOT_CMD_ARGS+=" -O" fi #