Wednesday, 11 December 2024

Re: sbuild --chroot-mode=unshare -d $suite{,-security,-proposed} magic for Ubuntu

On Wed, 11 Dec 2024 14:18:50 +0100
Julian Andres Klode <julian.klode@canonical.com> wrote:

> Hey folks,
>
> (just in proposed but don't want to forget to announce it :D)
>
> sbuild recently gained the magic to automatically bootstrap
> tarballs for the unshare backend using mmdebstrap. No more
> schroots to manage, everything is magical!
>
> I have just uploaded a new sbuild that makes this feature
> work correctly for Ubuntu. If you set
>
> $chroot_mode = "unshare";
> $unshare_mmdebstrap_keep_tarball = 1;
>
> (the second one is optionally and makes sbuild cache the tarballs
> in ~/.cache/sbuild; refreshing them after 7 days)
>
> in your sbuild configuration (or pass them on the command-line), then
>
> * `sbuild -d noble` will build the package for noble, with updates
> enabled
> * `sbuild -d noble-proposed` builds with proposed enabled too
> * `sbuild -d noble-security` builds for the security pocket
> * `sbuild -d noble-backports` builds with backports enabled too (but
> I think it's still pinned down, I assume you want to use a different
> solver here to not pull in all backported packages?)

Wow, thank you SO MUCH for this! I'll be using this exclusively both
for convenience's sake and to help test, but it seems to be working
fantastic. (I just managed to kill my entire set of schroots earlier
tonight trying to fix an issue with code being cached improperly, so I
figured may as well switch now :P)

> We enable the `main` and `universe` components by default. Should
> we perhaps enable `restricted` and `multiverse` too? There's no
> easy way otherwise to override.
>
> I could not get the tests passing locally so far, but I saw no
> regression and the changes seem unlikely to cause any, so I uploaded
> in the hopes they infrastructure fairs better.
>
> I've now managed to run them and there is failure related to
> cross-bootstrap (yes sbuild --arch=armhf -d plucky also works);
> I'll dig deeper and hopefully fix that too.
>
> You'll need to install mmdebstrap for this. Once it has landed
> I'll try to make the case for the mmdebstrap MIR again.

--
Aaron Rainbolt
Lubuntu Developer
https://github.com/ArrayBolt3
https://launchpad.net/~arraybolt3
@arraybolt3:matrix.org on Matrix, arraybolt3 on irc.libera.chat