Subject: [bug#66954] [PATCH 1/2] gnu: rust-cpufeatures-0.2: Update to 0.2.11.

From: VÖRÖSKŐI András <[email-masked]>
Date: Sun, 5 Nov 2023 17:25:33 +0100

* gnu/packages/crates-io.scm (rust-cpufeatures-0.2): Update to 0.2.11.
* use the already packaged rust-libc version

Change-Id: Id1da527ab89b28b1a8f71a28bedd97e33d42abbb
---
 gnu/packages/crates-io.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d42ff60a20..747561564d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16273,16 +16273,24 @@ (define-public rust-cpp-demangle-0.3
 (define-public rust-cpufeatures-0.2
   (package
     (name "rust-cpufeatures")
-    (version "0.2.1")
+    (version "0.2.11")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "cpufeatures" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0sgllzsvs8hinylaiigmd9c908gd8wclxnqz8dinpxbdyql981cm"))))
+        (base32 "1l0gzsyy576n017g9bf0vkv5hhg9cpz1h1libxyfdlzcgbh0yhnf"))))
     (build-system cargo-build-system)
-    (arguments `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (arguments `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))
+                 #:phases
+                 (modify-phases %standard-phases
+                   (add-after 'unpack 'fix-version-requirements
+                     (lambda _
+                       (substitute* "Cargo.toml"
+                         (("0.2.149")
+                          ,(package-version rust-libc-0.2)))
+                       #t)))))
     (home-page "https://github.com/RustCrypto/utils")
     (synopsis "Alternative to the @code{is_x86_feature_detected!} macro")
     (description

base-commit: 175532b749df65519d10699d49cc8b65b14a1f96
-- 
2.41.0