xbps-src: support building bootstrap pkgs in chroot with -D.
The base_chroot var has been renamed to bootstrap, to avoid conflicts with the base-chroot pkg. So now you can rebuild any bootstrap package if the masterdir is ready (base-chroot already) installed and installation is only to destdir.
This commit is contained in:
parent
8156eeb03e
commit
5355f32aca
33 changed files with 60 additions and 39 deletions
|
@ -45,7 +45,7 @@ _umount()
|
|||
return $?
|
||||
}
|
||||
|
||||
[ -n "$base_chroot" ] && return 0
|
||||
[ -n "$bootstrap" ] && return 0
|
||||
|
||||
if [ "${chroot_cmd}" = "chroot" ]; then
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
|
@ -316,6 +316,8 @@ xbps_chroot_handler()
|
|||
else
|
||||
[ -n "$KEEP_WRKSRC" ] && arg="-C"
|
||||
[ -n "$KEEP_AUTODEPS" ] && arg="$arg -K"
|
||||
[ -n "$DESTDIR_ONLY_INSTALL" ] && arg="$arg -D"
|
||||
|
||||
action="$arg $action"
|
||||
env in_chroot=1 IN_CHROOT=1 LANG=C _ORIGINPKG="$pkg" \
|
||||
${chroot_cmd} $XBPS_MASTERDIR sh -c \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue