[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
196/276: build: cargo-build-system: Strip enough prefix in package.
From: |
guix-commits |
Subject: |
196/276: build: cargo-build-system: Strip enough prefix in package. |
Date: |
Wed, 18 Oct 2023 04:50:03 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 163592c8431e25a807396576b0956f0c97640c41
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Oct 4 16:06:42 2023 +0300
build: cargo-build-system: Strip enough prefix in package.
* guix/build/cargo-build-system.scm (package): When using the source as
the packaged crate also strip the 'rust-' prefix.
---
guix/build/cargo-build-system.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 8bf6ba510b..e54882be34 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -231,10 +231,10 @@ directory = '" port)
(for-each
(lambda (file)
(make-file-writable file)
- ;; Strip the hash and replace '.tar.gz' with '.crate'.
+ ;; Strip the hash and rust prefix and replace '.tar.gz' with
'.crate'.
(rename-file file
(string-append (string-drop-right
- (string-drop file 35)
+ (string-drop file 40)
(string-length ".tar.gz"))
".crate")))
(find-files "." "\\.tar\\.gz$"))))
- 187/276: gnu: b3sum: Update to 1.5.0., (continued)
- 187/276: gnu: b3sum: Update to 1.5.0., guix-commits, 2023/10/18
- 192/276: gnu: python-orjson: Update to 3.9.7., guix-commits, 2023/10/18
- 189/276: gnu: rust-oorandom-11: Rename from rust-oorandom-11.1., guix-commits, 2023/10/18
- 193/276: gnu: python-pyopenssl: Update to 23.2.0., guix-commits, 2023/10/18
- 191/276: gnu: rust-smallvec-1: Update to 1.11.1., guix-commits, 2023/10/18
- 181/276: gnu: Add rust-memmap2-0.7., guix-commits, 2023/10/18
- 194/276: gnu: rust-simdutf8-0.1: Update to 0.1.4., guix-commits, 2023/10/18
- 197/276: gnu: rust-actix-web-codegen-0.2: Fix inputs., guix-commits, 2023/10/18
- 195/276: build: cargo-build-system: Reset timestamps in crates., guix-commits, 2023/10/18
- 200/276: gnu: rust-afl-0.12: Remove check-for-pregenerated-files phase., guix-commits, 2023/10/18
- 196/276: build: cargo-build-system: Strip enough prefix in package.,
guix-commits <=
- 203/276: gnu: rust-autocompress-0.2: Skip build., guix-commits, 2023/10/18
- 207/276: gnu: rust-ravif-0.6: Update to 0.6.6., guix-commits, 2023/10/18
- 210/276: gnu: rust-pcap-sys-0.1: Remove bundled libraries., guix-commits, 2023/10/18
- 214/276: gnu: rust-rustls-native-certs-0.4: Add missing input., guix-commits, 2023/10/18
- 218/276: build: cargo-build-system: Find more pregenerated files., guix-commits, 2023/10/18
- 219/276: gnu: rust-glutin-egl-sys-0.1: Update to 0.1.6., guix-commits, 2023/10/18
- 217/276: gnu: rust-fat-macho-0.4: Remove precompiled files., guix-commits, 2023/10/18
- 220/276: gnu: rust-mp4parse-0.12: Update to 0.12.1., guix-commits, 2023/10/18
- 223/276: gnu: rust-hyper-rustls-0.23: Add missing input., guix-commits, 2023/10/18
- 228/276: gnu: rust-napi-0.5: Skip build., guix-commits, 2023/10/18