[PATCH] libvirt: Set COMPATIBLE_HOST to 64bit arch

<[email protected]> Tue, 16 Jun 2026 02:36:13 -0700
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
From: Mingli Yu <[email protected]>

qemu sets COMPATIBLE_HOST to 64bit arch [1], so set the COMPATIBLE_HOST
accordingly to fix the build failure.
ERROR: Nothing PROVIDES 'qemu' (but /build/layers/meta-virtualization/recipes-extended/libvirt/libvirt_git.bb DEPENDS on or otherwise requires it)
qemu was skipped: incompatible with host arm-wrs-linux-gnueabi (not in COMPATIBLE_HOST)

[1] https://git.openembedded.org/openembedded-core/commit/?id=f74d4025

Signed-off-by: Mingli Yu <[email protected]>
---
 recipes-extended/libvirt/libvirt_git.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb
index fb7e5293..837f9660 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -139,6 +139,11 @@ PACKAGECONFIG:remove:mipsarchn32 = "qemu"
 PACKAGECONFIG:remove:mipsarchn64 = "qemu"
 PACKAGECONFIG:remove:powerpc = "qemu"
 PACKAGECONFIG:remove:riscv32 = "qemu"
+# QEMU 11.0.0+ requires 64-bit host architecture
+PACKAGECONFIG:remove:arm = "qemu"
+PACKAGECONFIG:remove:armeb = "qemu"
+PACKAGECONFIG:remove:mipsarch = "qemu"
+PACKAGECONFIG:remove:x86 = "qemu"
 
 # numactl is NOT compatible with arm
 PACKAGECONFIG:remove:arm = "numactl"
-- 
2.54.0