I’m far from being able to claim qubes-builder mastery (I’m much more at ease with the equivalent in eg. Debian and Yocto) – and I suspect the number of devs able to claim that is in fact quite low. The largest problem is probably the amount of custom code, which is not fully documented. Being essentially Makefile snippets probably does not help either.
As custom code, it requires attention from core devs for maintenance and evolution, which is not a good thing in a project with not many devs already. One item in the Design next major version of qubes-builder ticket left me thinking core devs could be on the same line on this.
Looking for a tool up to the task, that would provide features I’m missing from the current builder (eg. build-dependency handling, easy building of the same package for several distros) left me thinking, and a question asked to the right people brought me to Isar, which seems to provide many of the features we would need, except for a noticeable one: it currently targets Debian only - but then, there does not seem to be an structural problem preventing implementation of Fedora support. I found this ELCE '18 presentation to provide a nice summary, including comparison with similar projects (and a glimpse into their future through their collaboration in the EID project).
The basic idea is to rely on the flexibility of the bitbake
build tool for build coordination. Bitbake is mostly known for its use in the Yocto embedded-distro framework, but is really a powerful standalone tool in itself, written in python, and allowing the use of python or shell code as is better suited. Isar (and ELBE, which has slightly less of the desirable features, as shown in the above slides) allow for exactly the kind of distro customisation we’re needing in Qubes. Note that the OpenEmbedded/Yocto recipes also show how various package formats (rpm, deb, ipk) can be produced from a single recipe; this could pave the way for people to get their preferred distro in dom0 and everywhere they would like.
I guess we could start to play with construction of Debian VM templates with this tool to get a feeling, and see from there if it seems worth to go on with Fedora support.
How does that sound ?
Update: there is also at least some interest in the Fedora world about those technologies, so the Qubes project would probably not end up maintaining just another single-usage builder.