unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build.
       [not found] <cover.1644693837.git.avityazev@posteo.org>
@ 2022-02-12 19:24 ` Aleksandr Vityazev
  2022-02-14  9:55   ` bug#53962: " Nicolas Goaziou
  2022-02-12 19:25 ` [bug#53963] [PATCH] gnu: alfis: " Aleksandr Vityazev
  1 sibling, 1 reply; 4+ messages in thread
From: Aleksandr Vityazev @ 2022-02-12 19:24 UTC (permalink / raw)
  To: 53962

* 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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#53963] [PATCH] gnu: alfis: Fix build.
       [not found] <cover.1644693837.git.avityazev@posteo.org>
  2022-02-12 19:24 ` [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build Aleksandr Vityazev
@ 2022-02-12 19:25 ` Aleksandr Vityazev
  2022-02-14  9:56   ` bug#53963: " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Aleksandr Vityazev @ 2022-02-12 19:25 UTC (permalink / raw)
  To: 53963

* gnu/packages/rust-apps: (alfis): [arguments]<#:phases>:
Relax the rust-zeroize requirements for rust-chacha20poly1305
and rust-chacha20 in the 'relax-requirements' phase.
---
 gnu/packages/rust-apps.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index a97fcc7968..725677b3d9 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -126,6 +126,12 @@ (define-public alfis
        (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*
                  "guix-vendor/rust-x25519-dalek-1.2.0.tar.gz/Cargo.toml"
                (("version = \"=1.3\"") "version = \"^1.3\"")))))
-- 
2.34.0



-- 

Aleksandr Vityazev




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#53962: [PATCH] gnu: rust-chacha20poly1305: Fix build.
  2022-02-12 19:24 ` [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build Aleksandr Vityazev
@ 2022-02-14  9:55   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-02-14  9:55 UTC (permalink / raw)
  To: Aleksandr Vityazev; +Cc: 53962-done

Hello,

Aleksandr Vityazev <avityazev@posteo.org> writes:

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

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53963: [PATCH] gnu: alfis: Fix build.
  2022-02-12 19:25 ` [bug#53963] [PATCH] gnu: alfis: " Aleksandr Vityazev
@ 2022-02-14  9:56   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-02-14  9:56 UTC (permalink / raw)
  To: Aleksandr Vityazev; +Cc: 53963-done

Hello,

Aleksandr Vityazev <avityazev@posteo.org> writes:

> * gnu/packages/rust-apps: (alfis): [arguments]<#:phases>:
> Relax the rust-zeroize requirements for rust-chacha20poly1305
> and rust-chacha20 in the 'relax-requirements' phase.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-14  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1644693837.git.avityazev@posteo.org>
2022-02-12 19:24 ` [bug#53962] [PATCH] gnu: rust-chacha20poly1305: Fix build Aleksandr Vityazev
2022-02-14  9:55   ` bug#53962: " Nicolas Goaziou
2022-02-12 19:25 ` [bug#53963] [PATCH] gnu: alfis: " Aleksandr Vityazev
2022-02-14  9:56   ` bug#53963: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).