#1125792 please drop dependency on qemu-system-misc, but depend on whatever system emulators you actually use

#1125792#5
Date:
2026-01-17 20:25:03 UTC
From:
To:
In debian/tests, you run qemu-system-riscv64 and qemu-system-riscv32.
These binaries has been moved out of qemu-system-misc to a separate
qemu-system-riscv package.  This happened before trixie, but in trixie,
we had compatibility Depends within qemu-system-misc.  It is not there
anymore in sid.

When you use particular qemu-system-$arch binary, please depend on the
same qemu-system-$arch (be it in regular Depends or in tests).  This way,
you wont depend on the qemu packaging details, - qemu will use Provides:
qemu-system-$arch on whatever actual binary package provides that binary.
It's highly likely qemu packaging will be rearranged more in the future,
and by depending on actual binaries/architectures you run, you'll save
yourself from other issues like this one.

Thanks,

/mjt

#1125792#10
Date:
2026-02-25 09:04:00 UTC
From:
To:
Hi,

in the case of your tests you already have an explicit dependency for
-arm, this is the same but for riscv. So the change you'd need would
only be like:

diff --git a/debian/tests/control b/debian/tests/control
index 9ae95ea..f506ce8 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
 Test-Command: make SNEK_NATIVE=/usr/bin/snek
SNEK_ARM=/usr/share/snek/snek-arm
SNEK_RISCV=/usr/share/snek/snek-riscv -C test check
-Depends: @, qemu-system-arm, qemu-system-misc, gcc
+Depends: @, qemu-system-arm, qemu-system-riscv, gcc