lib/Sbuild/ChrootUnshare.pm: create a chroot on-demand using mmdebstrap if an...
lib/Sbuild/ChrootUnshare.pm: create a chroot on-demand using mmdebstrap if an existing tarball cannot be found
Test this by running:
rm ~/.cache/sbuild/*
Then run sbuild in unshare mode. It should automatically create a chroot and build the package in it. The temporary chroot directory is cleaned-up afterwards.
New configuration options:
-
UNSHARE_MMDEBSTRAP_AUTO_CREATE
-- automatically create the chroot if none was found, enabled by default -
UNSHARE_MMDEBSTRAP_EXTRA_ARGS
-- additional arguments to mmdebstrap if desired. This is important for ubuntu, for example to add universe and multiverse on top of main -
UNSHARE_MMDEBSTRAP_KEEP_TARBALL
-- whether to write the created tarball into~/.cache/sbuild/
or not. -
UNSHARE_MMDEBSTRAP_MAX_AGE
-- how old an existing tarball is allowed to be before it gets regenerated, default is 1 week
Edited by Johannes Schauer Marin Rodrigues