efraim pushed a commit to branch rust-team in repository guix. commit 3841dfb804cb6fb32b01a8ecc94469edb019be1a Author: Herman Rimm <her...@rimm.ee> AuthorDate: Fri Jan 31 22:09:22 2025 +0100
gnu: rust-ring-0.14-sources: Patch for >=1.2 cc crate. * gnu/packages/crates-crypto.scm (rust-ring-0.14-sources): Remove cast and outdated attributes. Change-Id: Ibcbea7d442c87803bc10b2391dddd91e5bf33694 Signed-off-by: Efraim Flashner <efr...@flashner.co.il> --- gnu/packages/crates-crypto.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 8e2290ca99..7cb44340f6 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -16,7 +16,7 @@ ;;; Copyright © 2023 Steve George <st...@futurile.net> ;;; Copyright © 2023 VÖRÖSKŐI András <voros...@gmail.com> ;;; Copyright © 2024 Wilko Meyer <w...@wmeyer.eu> -;;; Copyright © 2024 Herman Rimm <her...@rimm.ee> +;;; Copyright © 2024, 2025 Herman Rimm <her...@rimm.ee> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4545,7 +4545,13 @@ Digital Signature Algorithm} (ECDSA).") #~(begin (use-modules (guix build utils)) ;; It turns out Guix's yasm works just fine here. (substitute* "build.rs" - (("yasm.exe") "yasm")) + (("yasm.exe") "yasm") + ;; cc >=1.2 does not accept the cast. + (("(\"-Wl,--gc-sections\").into\\(\\)" _ match) + match)) + (substitute* '("src/test.rs" "src/rsa/bigint.rs") + ;; Lint `box_pointers` has been removed. + (("#!?\\[allow\\(box_pointers\\)\\]") "")) ;; These files are pregenerated: (delete-file "third_party/fiat/curve25519_tables.h") (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl")