xbps-src: fix uchroot chroot-style to not overwrite XBPS_CHROOT_CMD_ARGS.

This commit is contained in:
Juan RP 2015-12-12 10:03:41 +01:00
parent 6da821d3dc
commit ba4bba2031
2 changed files with 4 additions and 10 deletions

View file

@ -2,10 +2,13 @@
#
# This chroot script uses xbps-uchroot(8).
#
if [ -n "$XBPS_TEMP_MASTERDIR" ]; then
ARGS="-O"
fi
readonly MASTERDIR="$1"
readonly DISTDIR="$2"
readonly HOSTDIR="$3"
readonly EXTRA_ARGS="$4"
readonly EXTRA_ARGS="$ARGS $4"
readonly CMD="$5"
shift 5

View file

@ -570,15 +570,6 @@ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
unset val
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_ARGS="-O"
fi
#
# Sanitize PATH.
#