Subject: [PATCH rust-team 1/2] gnu: rust-bzip2-0.3: Downgrade to 0.3.2.
From: Herman Rimm <[email-masked]>
To: [email-masked]
Date: Wed, 1 Jan 2025 12:33:07 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

rust-buffered-reader-0.9 and rust-sequoia-openpgp-0.9 require ^0.3.2.

* gnu/packages/crates-compression.scm (rust-bzip2-0.3): Downgrade.
[source]: Remove bzip2-sys path.
[arguments]: Build.  Remove rust-partial-io-0.2, use rust-quicheck-0.2
instead of 0.4.

Change-Id: Ifaa98cf43c4aa5c44358dd225a62b102f9e1218d
---
 gnu/packages/crates-compression.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm
index 78a92108f03..08ce7a8a6c2 100644
--- a/gnu/packages/crates-compression.scm
+++ b/gnu/packages/crates-compression.scm
@@ -285,7 +285,8 @@ (define-public rust-bzip2-0.3
   (package
     (inherit rust-bzip2-0.4)
     (name "rust-bzip2")
-    (version "0.3.3")
+    ;; XXX: Version 0.3.3 relies on a non-existant partial-io version.
+    (version "0.3.2")
     (source
      (origin
        (method url-fetch)
@@ -293,18 +294,19 @@ (define-public rust-bzip2-0.3
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0fvfwanp42j1zpig880jhb5mc0na50bijmwd6211p77sy35w7ds2"))))
+        (base32 "095yi13ajgnbcmza9s4c7fspzzlqa0bk3hdiwryq43afqi1grsn3"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "Cargo.toml"
+                    ((", path =.*}") "}")))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
+     `(#:cargo-inputs
        (("rust-bzip2-sys" ,rust-bzip2-sys-0.1)
         ("rust-futures" ,rust-futures-0.1)
         ("rust-libc" ,rust-libc-0.2)
         ("rust-tokio-io" ,rust-tokio-io-0.1))
        #:cargo-development-inputs
-       (("rust-partial-io" ,rust-partial-io-0.2)
-        ("rust-quickcheck" ,rust-quickcheck-0.4)
+       (("rust-quickcheck" ,rust-quickcheck-0.2)
         ("rust-rand" ,rust-rand-0.3)
         ("rust-tokio-core" ,rust-tokio-core-0.1))))))

base-commit: 5f92f009a19c1a5a8b7df5a7bcb1e1f283a953f8
-- 
2.45.2