On 29.06.2025 08:18, Daniel Baumann wrote:
On 6/28/25 23:38, Michael Tokarev wrote:
You're complaining that some packages qemu build-depends on are not
available on all architectures.
I'm asking why binary-arch for a given architecture (!= binary-indep)
isn't buildable on that very architecture.
If it were the case, qemu wouldn't build on these architectures on
debian. While it does. These dependencies which bothers you are
listed in Build-Depends-Indep, not Build-Depends, for exactly this
purpose.
There are many arch-all packages which aren't buildable
on anything but x86
That's not the same thing and that is not a problem.
It is.
In pseudo-code, my expectation and understanding is:
for arch in $all_binary_architectures:
apt source $package
apt build-dep
dpkg-buildpackage -B
`apt build-dep` will install everything listed in Build-Depends,
Build-Depends-Arch, and Build-Depends-Indep. You have to specify
--arch-only to apt for it to omit installing Build-Depends-Arch.
the result should be _$arch.deb packages for every architecture the
package supports.
Yes, dpkg-buildpackage -B will only build arch-any pkgs. But
apt build-dep doesn't know that you intend to use -B.
for qemu, that's not the case:
* building it on arm64 fails because build-deps are not installable.
* building it on amd64 (or any other arch) doesn't produce arm64 debs.
No, this is wrong. It *builds* just fine. But it fails on `apt
build-dep` step.
so, how are arm64 debs of qemu build exactly?
Indeed. See above.
/mjt