All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] build-sys: error when slirp is not found and not disabled
@ 2022-10-06  8:33 marcandre.lureau
  2022-10-06  8:52 ` Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: marcandre.lureau @ 2022-10-06  8:33 UTC (permalink / raw)
  To: qemu-devel
  Cc: jb-gnumlists, thuth, jasowang, qemu_oss, Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

This is an alternative configure-time solution to "[PATCH] net:
print a more actionable error when slirp is not found".

See also "If your networking is failing after updating to the latest git
version of QEMU..." ML thread.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 meson.build | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meson.build b/meson.build
index 4321b8f8da..b05080b051 100644
--- a/meson.build
+++ b/meson.build
@@ -690,6 +690,13 @@ if not get_option('slirp').auto() or have_system
   endif
 endif
 
+# Remove this error after QEMU 8.1 has been released.
+if not get_option('slirp').disabled() and not slirp.found()
+  error('libslirp is not explicitely disabled and was not found. ' +
+        'Since qemu 7.2, libslirp is no longer included as a submodule ' +
+        'fallback, you must install it on your system or --disable-slirp.')
+endif
+
 vde = not_found
 if not get_option('vde').auto() or have_system or have_tools
   vde = cc.find_library('vdeplug', has_headers: ['libvdeplug.h'],
-- 
2.37.3



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-06 11:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06  8:33 [PATCH v2] build-sys: error when slirp is not found and not disabled marcandre.lureau
2022-10-06  8:52 ` Thomas Huth
2022-10-06  9:31 ` Christian Schoenebeck
2022-10-06  9:39 ` Daniel P. Berrangé
2022-10-06 10:12   ` Christian Schoenebeck
2022-10-06 10:26     ` Daniel P. Berrangé
2022-10-06 11:08       ` Christian Schoenebeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.