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] 28c9872639

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
hongxu 2025-02-10 15:46:59 +08:00 committed by Bruce Ashfield
parent d329e8245e
commit c0fac810d9

View File

@ -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,,"