diff mbox series

[PULL,02/25] build-sys: prevent meson from downloading wrapped subprojects

Message ID 20230421093316.17941-3-pbonzini@redhat.com
State New
Headers show
Series [PULL,01/25] mtest2make.py: teach suite name that are just "PROJECT" | expand

Commit Message

Paolo Bonzini April 21, 2023, 9:32 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

The following patches are going to introduce meson wrap dependencies,
which is a solution to download and build missing dependencies.

The QEMU build-system would do network access with no way to avoid the
fallback. As a start, hardcode "--wrap-mode=nodownload" in configure, so
that wraps would be used only after a conscious decision of the user to
use "meson subprojects download" (before running configure).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230302131848.1527460-3-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index 800b5850f402..6ed66ec6abda 100755
--- a/configure
+++ b/configure
@@ -2615,6 +2615,10 @@  if test "$skip_meson" = no; then
 
   rm -rf meson-private meson-info meson-logs
 
+  # Prevent meson from automatically downloading wrapped subprojects when missing.
+  # You can use 'meson subprojects download' before running configure.
+  meson_option_add "--wrap-mode=nodownload"
+
   # Built-in options
   test "$bindir" != "bin" && meson_option_add "-Dbindir=$bindir"
   test "$default_feature" = no && meson_option_add -Dauto_features=disabled