xbps-src: set XBPS_CHROOT_CMD=uchroot with -t; improve desc for -a.
This commit is contained in:
parent
5bfd84163b
commit
af11e6c891
1 changed files with 4 additions and 6 deletions
10
xbps-src
10
xbps-src
|
@ -127,8 +127,8 @@ zap
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
-a <profile>
|
-a <target>
|
||||||
Cross compile packages for this profile. Supported targets:
|
Cross compile packages for this target machine. Supported targets:
|
||||||
|
|
||||||
$(print_cross_targets)
|
$(print_cross_targets)
|
||||||
|
|
||||||
|
@ -182,6 +182,7 @@ $(print_cross_targets)
|
||||||
-t Create a temporary masterdir to not pollute the current one. Note that
|
-t Create a temporary masterdir to not pollute the current one. Note that
|
||||||
the existing masterdir must be fully populated with binary-bootstrap first.
|
the existing masterdir must be fully populated with binary-bootstrap first.
|
||||||
Once the target has finished, this temporary masterdir will be removed.
|
Once the target has finished, this temporary masterdir will be removed.
|
||||||
|
This flag requires xbps-uchroot(1).
|
||||||
|
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
|
@ -578,10 +579,7 @@ done
|
||||||
# A temporary masterdir requires xbps-uchroot(8) and -O to use overlayfs
|
# A temporary masterdir requires xbps-uchroot(8) and -O to use overlayfs
|
||||||
# on tmpfs (available with xbps-0.45).
|
# on tmpfs (available with xbps-0.45).
|
||||||
if [ -z "$IN_CHROOT" -a -n "$XBPS_TEMP_MASTERDIR" ]; then
|
if [ -z "$IN_CHROOT" -a -n "$XBPS_TEMP_MASTERDIR" ]; then
|
||||||
if [ "$XBPS_CHROOT_CMD" != "uchroot" ]; then
|
export XBPS_CHROOT_CMD="uchroot"
|
||||||
echo "ERROR: -t requires XBPS_CHROOT_CMD=uchroot, exiting..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
export XBPS_CHROOT_CMD_ARGS+=" -O"
|
export XBPS_CHROOT_CMD_ARGS+=" -O"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue