]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configure: bump Meson to 1.9.0 for use with Rust
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Sep 2025 10:49:34 +0000 (12:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Sep 2025 17:00:56 +0000 (19:00 +0200)
Meson 1.9.0 provides mixed linking of Rust and C objects.  As a side effect,
this also allows adding dependencies with "sources: ..." files to Rust crates
that use structured_sources().

It can also clean up up the meson.build files for Rust noticeably, but due
to an issue with doctests (see https://github.com/mesonbuild/meson/pull/14973)
that will have to wait for 1.9.1.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250908105005.2119297-3-pbonzini@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
python/scripts/vendor.py
python/wheels/meson-1.8.1-py3-none-any.whl [deleted file]
python/wheels/meson-1.9.0-py3-none-any.whl [new file with mode: 0644]
pythondeps.toml

index 274a7787642e2505c4aced869c3b59c21dd21a0e..3053c23fbe178c04d4617fcfc4d96117c3e1e2c0 100755 (executable)
--- a/configure
+++ b/configure
@@ -1184,12 +1184,12 @@ fi
 # detect rust triple
 
 meson_version=$($meson --version)
-if test "$rust" != disabled && ! version_ge "$meson_version" 1.8.1; then
+if test "$rust" != disabled && ! version_ge "$meson_version" 1.9.0; then
   if test "$rust" = enabled; then
     $mkvenv ensuregroup --dir "${source_path}/python/wheels" \
          ${source_path}/pythondeps.toml meson-rust || exit 1
   else
-    echo "Rust needs Meson 1.8.1, disabling" 2>&1
+    echo "Rust needs Meson 1.9.0, disabling" 2>&1
     rust=disabled
   fi
 fi
index b47db00743a5b0e65d9fca55dc0ac486678f068b..33ac7a45de0fd80db58ff0daed5f74609ce1b217 100755 (executable)
@@ -41,8 +41,8 @@ def main() -> int:
     parser.parse_args()
 
     packages = {
-        "meson==1.8.1":
-        "374bbf71247e629475fc10b0bd2ef66fc418c2d8f4890572f74de0f97d0d42da",
+        "meson==1.9.0":
+        "45e51ddc41e37d961582d06e78c48e0f9039011587f3495c4d6b0781dad92357",
     }
 
     vendor_dir = Path(__file__, "..", "..", "wheels").resolve()
diff --git a/python/wheels/meson-1.8.1-py3-none-any.whl b/python/wheels/meson-1.8.1-py3-none-any.whl
deleted file mode 100644 (file)
index a885f0e..0000000
Binary files a/python/wheels/meson-1.8.1-py3-none-any.whl and /dev/null differ
diff --git a/python/wheels/meson-1.9.0-py3-none-any.whl b/python/wheels/meson-1.9.0-py3-none-any.whl
new file mode 100644 (file)
index 0000000..57cc75c
Binary files /dev/null and b/python/wheels/meson-1.9.0-py3-none-any.whl differ
index d0f52b14f7928299ef91e65c4f2c24911e425846..16fb2a989cf34654da55b460c149a4b0af1ca431 100644 (file)
 
 [meson]
 # The install key should match the version in python/wheels/
-meson = { accepted = ">=1.5.0", installed = "1.8.1", canary = "meson" }
+meson = { accepted = ">=1.5.0", installed = "1.9.0", canary = "meson" }
 pycotap = { accepted = ">=1.1.0", installed = "1.3.1" }
 
 [meson-rust]
 # The install key should match the version in python/wheels/
-meson = { accepted = ">=1.8.1", installed = "1.8.1", canary = "meson" }
+meson = { accepted = ">=1.9.0", installed = "1.9.0", canary = "meson" }
 
 [docs]
 # Please keep the installed versions in sync with docs/requirements.txt