]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
meson: update to version 1.8.1
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Apr 2025 08:43:16 +0000 (10:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Jun 2025 20:42:18 +0000 (22:42 +0200)
This adds several improvements to Rust support, including
native clippy and rustdoc targets, the "objects" keyword,
and running doctests.

Require it only when Rust support is requested, to avoid
putting a strict requirement on all build platforms for the
sake of an experimental feature.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
python/scripts/vendor.py
python/wheels/meson-1.5.0-py3-none-any.whl [deleted file]
python/wheels/meson-1.8.1-py3-none-any.whl [new file with mode: 0644]
pythondeps.toml
tests/lcitool/mappings.yml

index 2ce8d29fac22c60c6111c870adb0b18baf064b2a..74b3865e51e7c8f34bf58bebf36ae4d516d62ef4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1178,6 +1178,14 @@ fi
 ##########################################
 # detect rust triple
 
+meson_version=$($meson --version)
+if test "$rust" != disabled && ! version_ge "$meson_version" 1.8.1; then
+  if test "$rust" = enabled; then
+    error_exit "Rust support needs Meson 1.8.1 or newer"
+  fi
+  echo "Rust needs Meson 1.8.1, disabling" 2>&1
+  rust=disabled
+fi
 if test "$rust" != disabled && has "$rustc" && $rustc -vV > "${TMPDIR1}/${TMPB}.out"; then
   rust_host_triple=$(sed -n 's/^host: //p' "${TMPDIR1}/${TMPB}.out")
 else
index 0405e910b481ace39548827602ef7ad2f80b63b2..b47db00743a5b0e65d9fca55dc0ac486678f068b 100755 (executable)
@@ -41,8 +41,8 @@ def main() -> int:
     parser.parse_args()
 
     packages = {
-        "meson==1.5.0":
-        "52b34f4903b882df52ad0d533146d4b992c018ea77399f825579737672ae7b20",
+        "meson==1.8.1":
+        "374bbf71247e629475fc10b0bd2ef66fc418c2d8f4890572f74de0f97d0d42da",
     }
 
     vendor_dir = Path(__file__, "..", "..", "wheels").resolve()
diff --git a/python/wheels/meson-1.5.0-py3-none-any.whl b/python/wheels/meson-1.5.0-py3-none-any.whl
deleted file mode 100644 (file)
index c7edeb3..0000000
Binary files a/python/wheels/meson-1.5.0-py3-none-any.whl and /dev/null differ
diff --git a/python/wheels/meson-1.8.1-py3-none-any.whl b/python/wheels/meson-1.8.1-py3-none-any.whl
new file mode 100644 (file)
index 0000000..a885f0e
Binary files /dev/null and b/python/wheels/meson-1.8.1-py3-none-any.whl differ
index 7eaaa0fed10c72ab6e58ee3ea34b7994b03050cc..7884ab521d1063d8880f948b9edb8d6fcf827f89 100644 (file)
@@ -19,7 +19,7 @@
 
 [meson]
 # The install key should match the version in python/wheels/
-meson = { accepted = ">=1.5.0", installed = "1.5.0", canary = "meson" }
+meson = { accepted = ">=1.5.0", installed = "1.8.1", canary = "meson" }
 pycotap = { accepted = ">=1.1.0", installed = "1.3.1" }
 
 [docs]
index 673baf3936787b37c31243e4f86ed4b1ba09d25d..8f0e95e1c5619cb5a675652e7c199a4a730a329e 100644 (file)
@@ -8,6 +8,10 @@ mappings:
 
   meson:
     OpenSUSELeap15:
+    # Use Meson from PyPI wherever Rust is enabled
+    Debian:
+    Fedora:
+    Ubuntu:
 
   python3:
     OpenSUSELeap15: python311-base
@@ -72,7 +76,7 @@ mappings:
 pypi_mappings:
   # Request more recent version
   meson:
-    default: meson==1.5.0
+    default: meson==1.8.1
 
   # Drop packages that need devel headers
   python3-numpy: