On Sun, Feb 9, 2025 at 9:46 PM hongxu via lists.yoctoproject.org
<[email protected]> wrote:

> 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. Otherwise build
> libvirt
> failed at do_configure
>
> $ bitbake libvirt
>

Again, you have something different in your environment.

I can build the qemu driver just fine in my configuration.

% bitbake-getvar -r libvirt PACKAGECONFIG
PACKAGECONFIG="gnutls qemu openvz vmware vbox esx lxc test remote
         libvirtd netcf udev python fuse firewalld libpcap
                       libxl                                       "

% bitbake libvirt

.. works. Since qemu is in the default PACAKGECONFIG, you can be assured
that it was built before the updates were pushed. So we need to understand
what is different.

Bruce



> ...
> ../git/meson.build:1672:6: ERROR: Problem encountered: json-c is required
> to build QEMU driver
> ...
>
> [1]
> https://github.com/libvirt/libvirt/commit/28c987263980afc5b606a36a8d264b68cb01e9b9
>
> Signed-off-by: Hongxu Jia <[email protected]>
> ---
>  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 432b5da8..6a524977 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,,"
> --
> 2.34.1
>
>
> 
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9128): 
https://lists.yoctoproject.org/g/meta-virtualization/message/9128
Mute This Topic: https://lists.yoctoproject.org/mt/111096111/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to