Subject: bug#75210: closed (Re: [bug#75210] [PATCH rust-team] gnu: rust-rustix-0.38: Remove snippet.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 31 Dec 2024 19:52:02 +0000

Your bug report

#75210: [PATCH rust-team] gnu: rust-rustix-0.38: Remove snippet.

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].

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

Subject: Re: [bug#75210] [PATCH rust-team] gnu: rust-rustix-0.38: Remove snippet.
From: Efraim Flashner <[email-masked]>
To: Herman Rimm <[email-masked]>
Cc: [email-masked]
Date: Tue, 31 Dec 2024 21:50:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

This one I was unsure about, but it built just fine on riscv64 so it
looks good.

Pushed to the rust-team branch.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: [PATCH rust-team] gnu: rust-rustix-0.38: Remove snippet.
From: Herman Rimm <[email-masked]>
To: [email-masked]
Date: Mon, 30 Dec 2024 20:38:47 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/crates-io.scm (rust-rustix-0.38): Remove snippet.

Change-Id: I2c8e9c50dd297038e4bd084ebfa01b49fee022aa
---
 gnu/packages/crates-io.scm | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0b38709201d..bfcd77139f3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -69779,23 +69779,7 @@ (define-public rust-rustix-0.38
        (uri (crate-uri "rustix" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1h33ilqk4psn6kqfmd232df3x3lrwp4gjl2nisdmajyw3hzfmr4r"))
-       (snippet
-        #~(begin (use-modules (guix build utils))
-                 (for-each delete-file (find-files "." "\\.a$"))
-                 (delete-file "Cargo.toml")
-                 (substitute* "Cargo.toml.orig"
-                   ;; Depend unconditionally on the cc crate
-                   (("(cc = .*), optional = true.*" _ cc)
-                    (string-append cc " }\n"))
-                   ;; Disable using the linux_raw backend
-                   (("not\\(rustic_use_libc\\)") "miri"))
-                 (substitute* "build.rs"
-                   ;; Always use the 'feature = "cc"' path
-                   (("not\\(feature = \"cc\"\\)") "feature = \"foobar\"")
-                   (("#\\[cfg\\(feature = \"cc\"\\)\\]" all)
-                    (string-append "//" all)))
-                 (copy-file "Cargo.toml.orig" "Cargo.toml")))))
+        (base32 "1h33ilqk4psn6kqfmd232df3x3lrwp4gjl2nisdmajyw3hzfmr4r"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs

base-commit: 4d478f0b404a86a0849722536f11fde0b1857bb8
-- 
2.45.2