On 2024-12-22 22:25:02, Johannes Schauer Marin Rodrigues wrote: > Hi, > > Quoting Antoine Beaupre (2024-12-04 16:00:51) >> I'm building an UNRELEASED package and then sbuild complains with this: >> >> E: Chroot for distribution UNRELEASED, architecture amd64 not found >> >> which, fair enough, there's no such tarball in my .cache/sbuild: >> >> $ find ~/.cache/sbuild/ >> /home/anarcat/.cache/sbuild/ >> /home/anarcat/.cache/sbuild/bookworm-amd64.tar.zst >> /home/anarcat/.cache/sbuild/unstable-amd64.tar.zst >> >> but then sbuild says this: >> >> I: Applied base distribution name mangle rule >> s/(?^:^(experimental|rc-buggy|UNRELEASED)$)/unstable/ turning "UNRELEASED" >> into "unstable" >> >> ... so i thought "cool, that's smart, it's going to use my unstable >> tarball! yaay!" >> >> ... but then it did this: >> >> I: Creating chroot on-demand by running: mmdebstrap --variant=buildd >> --arch=amd64 --skip=output/mknod --format=tar unstable - >> >> Hmm. So it did *not* use the unstable tarball. >> >> The build works, so it's not *that* bad, considering how fast >> mmdebstrap is, but it would sure be nice to skip that step entirely. >> >> And I know i can make symlinks to work around that, and that i can >> use `$unshare_mmdebstrap_keep_tarball=1;` to keep the generated >> tarball, but that all seems besides the point. This is a nice feature, it >> just needs one last push to be perfect, IMHO. :) > > I wasn't yet annoyed enough about this to add this "last push". > > In your mind, what should sbuild add to support this? > > I can only think of one logical implementation and that is to add yet another > mangling/mapping option which expresses equivalence relationships or aliases > of > distribution names and if one is requested and the other already exists, just > use that. The problem then is: which extra-args or distro-mangle options do > you > apply? Will those be mapped too? Which one will take precedence?
Why not just use the existing logic from? > I: Applied base distribution name mangle rule > s/(?^:^(experimental|rc-buggy|UNRELEASED)$)/unstable/ turning "UNRELEASED" > into "unstable" a. -- You can't conquer a free man; the most you can do is kill him. - Robert A. Heinlein