From c0fac810d979d9330e4b41c82f2b76796f303bd4 Mon Sep 17 00:00:00 2001 From: hongxu Date: Mon, 10 Feb 2025 15:46:59 +0800 Subject: [PATCH] libvirt: add json-c for driver_qemu After upstreamm applied commit [meson: switch checks to depend on json-c as well as yajl][1], json-c is required to build QEMU driver. Depending on your distro configuration, json-c may or may not be pulled in as a dependency via elfutils. To ensure we are distro configuration independent, we explicitly add json-c as a depdendency when the qemu_driver is used. [1] https://github.com/libvirt/libvirt/commit/28c987263980afc5b606a36a8d264b68cb01e9b9 Signed-off-by: Hongxu Jia Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb index b6539bfa..b6f46722 100644 --- a/recipes-extended/libvirt/libvirt_git.bb +++ b/recipes-extended/libvirt/libvirt_git.bb @@ -149,7 +149,7 @@ PACKAGECONFIG:remove:armeb = "numactl" # enable,disable,depends,rdepends # PACKAGECONFIG[gnutls] = ",,,gnutls-bin" -PACKAGECONFIG[qemu] = "-Ddriver_qemu=enabled -Dqemu_user=qemu -Dqemu_group=qemu,-Ddriver_qemu=disabled,qemu," +PACKAGECONFIG[qemu] = "-Ddriver_qemu=enabled -Dqemu_user=qemu -Dqemu_group=qemu,-Ddriver_qemu=disabled,qemu json-c," PACKAGECONFIG[libxl] = "-Ddriver_libxl=enabled,-Ddriver_libxl=disabled,xen," PACKAGECONFIG[openvz] = "-Ddriver_openvz=enabled,-Ddriver_openvz=disabled,," PACKAGECONFIG[vmware] = "-Ddriver_vmware=enabled,-Ddriver_vmware=disabled,,"