[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/194: gnu: rust-rustix-0.37: Remove precompiled files.
From: |
guix-commits |
Subject: |
05/194: gnu: rust-rustix-0.37: Remove precompiled files. |
Date: |
Tue, 3 Oct 2023 14:57:06 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 7aeea6d41363c4c0cca3a1c8ece3f9a6f612a83f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Sep 30 23:47:43 2023 +0300
gnu: rust-rustix-0.37: Remove precompiled files.
* gnu/packages/crates-io.scm (rust-rustix-0.37)[source]: Add snippet to
remove precompiled files and to not require them while building the
package.
(rust-rustix-0.36, rust-rustix-0.35): Inherit changes from
rust-rustix-0.37.
---
gnu/packages/crates-io.scm | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1165f8b8a6..a03a3413c5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56807,7 +56807,24 @@ rustc compiler.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "0gb12rp992bh2h5msqcbpdsx6h1gslsb0zpp5hdnyxj2hnfp5y5c"))))
+ "0gb12rp992bh2h5msqcbpdsx6h1gslsb0zpp5hdnyxj2hnfp5y5c"))
+ (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")))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
@@ -56846,6 +56863,7 @@ rustc compiler.")
(name "rust-rustix")
(version "0.36.13")
(source (origin
+ (inherit (package-source rust-rustix-0.37))
(method url-fetch)
(uri (crate-uri "rustix" version))
(file-name (string-append name "-" version ".tar.gz"))
@@ -56883,6 +56901,7 @@ rustc compiler.")
(name "rust-rustix")
(version "0.35.13")
(source (origin
+ (inherit (package-source rust-rustix-0.36))
(method url-fetch)
(uri (crate-uri "rustix" version))
(file-name (string-append name "-" version ".tar.gz"))
- branch rust-team created (now dd72694a93), guix-commits, 2023/10/03
- 02/194: gnu: Add rust-1.70., guix-commits, 2023/10/03
- 01/194: gnu: Add rust-1.69., guix-commits, 2023/10/03
- 06/194: build: cargo-build-system: Check for pregenerated files., guix-commits, 2023/10/03
- 08/194: gnu: rust: Build more tools., guix-commits, 2023/10/03
- 05/194: gnu: rust-rustix-0.37: Remove precompiled files.,
guix-commits <=
- 04/194: gnu: rust: Update to 1.70.0., guix-commits, 2023/10/03
- 14/194: gnu: Add rust-pango-0.17., guix-commits, 2023/10/03
- 10/194: gnu: Add rust-cairo-sys-rs-0.17., guix-commits, 2023/10/03
- 17/194: gnu: Add rust-pangocairo-0.17., guix-commits, 2023/10/03
- 18/194: gnu: Add rust-cssparser-0.29., guix-commits, 2023/10/03
- 24/194: gnu: Add rust-data-url-0.2., guix-commits, 2023/10/03
- 26/194: gnu: Add rust-float-eq-derive-1., guix-commits, 2023/10/03
- 03/194: gnu: rust: Add make-ignore-test-list function., guix-commits, 2023/10/03
- 07/194: gnu: rust-fd-lock-3: Update to 3.0.12., guix-commits, 2023/10/03
- 09/194: gnu: Add rust-cairo-rs-0.17., guix-commits, 2023/10/03