On Fri, 14 Oct 2022 at 15:29:36 +0200, Emanuele Rocca wrote:
> For vmdb2, autopkgtest-build-qemu detects its absence
> and warns about the fact [...]
> Another required package is zerofree, which is not currently listed in
> Suggests
> though it should be.
This is now partially implemented. In autopkgtest git (queued for 5.39)
I've added more general dependency checking which checks for qemu-img,
vmdb2, zerofree, and (if not running as root) fakemachine.
> For example, when building an arm64 image on a
> amd64 host with --architecture=arm64, the following packages are needed too:
>
> - qemu-user-static
Yes, you need that at build-time.
> - binfmt-support
My understanding is that you shouldn't need this any more if init
is systemd, because the combination of qemu and systemd is now enough
to set up binfmt_misc. (sysvinit users will still need it.)
> - qemu-efi-aarch64
> - qemu-system-arm
These are not actually needed for build-qemu, but they *are* needed for
*virt*-qemu.
Ideally the various virt- backends would check for dependencies similar to
how the build- tools do, but this isn't yet implemented.
The build- tools should ideally also check for the corresponding virt-
tool's dependencies, but only issue warnings, not errors (because you
could conceivably intend to run the build- tool on one machine, then copy
the output to another machine where you will run the corresponding virt-
tool). In practice this is only likely to matter for qemu, because the
other virt- backends have basically the same requirements as their
corresponding build- tool.
smcv