On 22/09/2025 15:22, Peter Maydell wrote:
The passt network backend uses gio; declare this dependency in
meson.build, so we don't try to build it if configured with
--disable-gio or if gio is not present.

Cc: [email protected]
Fixes: 854ee02b222 ("net: Add passt network backend")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3121
Signed-off-by: Peter Maydell <[email protected]>
---
  meson.build | 1 +
  1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 6ade30f36ad..c5a56ba5deb 100644
--- a/meson.build
+++ b/meson.build
@@ -1279,6 +1279,7 @@ if not get_option('slirp').auto() or have_system
  endif
enable_passt = get_option('passt') \
+  .require(gio.found(), error_message: 'passt requires gio') \
    .require(host_os == 'linux', error_message: 'passt is supported only on 
Linux') \
    .allowed()

I sent the same patch two months ago:
https://lists.nongnu.org/archive/html/qemu-devel/2025-07/msg04907.html

Reviewed-by: Laurent Vivier <[email protected]>

Laurent


Reply via email to