Subject: bug#53962: closed (Re: [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 14 Feb 2022 09:56:01 +0000

Your bug report

#53962: [PATCH] gnu: rust-chacha20poly1305: Fix build.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
53962: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53962
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build.
From: Nicolas Goaziou <[email-masked]>
To: Aleksandr Vityazev <[email-masked]>
Cc: [email-masked]
Date: Mon, 14 Feb 2022 10:55:45 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Aleksandr Vityazev <[email-masked]> writes:

> * gnu/packages/crates-io: (rust-chacha20poly1305):
> [arguments]<#:phases>: Add a new 'relax-requirements' phase.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] gnu: rust-chacha20poly1305: Fix build.
From: Aleksandr Vityazev <[email-masked]>
To: [email-masked]
Date: Sat, 12 Feb 2022 19:24:36 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/crates-io: (rust-chacha20poly1305):
[arguments]<#:phases>: Add a new 'relax-requirements' phase.
---
 gnu/packages/crates-io.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fa9a7d9ab5..d21fb240a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10284,7 +10284,20 @@ (define-public rust-chacha20poly1305-0.9
         (base32 "0alawaaakczsll1b98qf4m6r6kfaw28506ljvsysjyjz3mnyv11v"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'configure 'relax-requirements
+           (lambda _
+             (substitute*
+                 "guix-vendor/rust-chacha20-0.8.1.tar.gz/Cargo.toml"
+               (("version = \">=1, <1.5\"") "version = \"^1\""))
+             (substitute*
+                 "guix-vendor/rust-chacha20poly1305-0.9.0.tar.gz/Cargo.toml"
+               (("version = \">=1, <1.5\"") "version = \"^1\""))
+             (substitute*
+                 "Cargo.toml"
+               (("version = \">=1, <1.5\"") "version = \"^1\"")))))
+       #:cargo-inputs
        (("rust-aead" ,rust-aead-0.4)
         ("rust-chacha20" ,rust-chacha20-0.8)
         ("rust-cipher" ,rust-cipher-0.3)
-- 
2.34.0

-- 

Aleksandr Vityazev