[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
311/311: build: cargo-build-system: Pack crates reproducibly.
From: |
guix-commits |
Subject: |
311/311: build: cargo-build-system: Pack crates reproducibly. |
Date: |
Sat, 28 Oct 2023 16:39:48 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit b497cbb5adfb8438cc53c502d84c947d9c8d8a98
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Oct 28 18:09:05 2023 +0300
build: cargo-build-system: Pack crates reproducibly.
This fixes reproducibility in rust crates from the package phase, again,
see <https://issues.guix.gnu.org/50015>.
Reported by: Christopher Baines (in person).
* guix/build/cargo-build-system.scm (package): When repacking the crate
tarball use standard reproducibility flags.
Change-Id: Ifb1440a023226bf0718e99ce9f95ef981e510cbc
---
guix/build/cargo-build-system.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 505c0b4b01..1694ab973c 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -264,7 +264,11 @@ directory = '" port)
(unless (eq? (stat:type s) 'symlink)
(utime file 0 0 0 0))))
(find-files dir #:directories? #t))
+
(apply invoke "tar" "czf" (string-append dir ".crate")
+ ;; avoid non-determinism in the archive
+ "--sort=name" "--mtime=@0"
+ "--owner=root:0" "--group=root:0"
(find-files dir #:directories? #t))
(delete-file-recursively dir)))
(find-files "." "\\.crate$")))))
- 299/311: gnu: rust-tectonic-io-base-0.3: Update to 0.3.1., (continued)
- 299/311: gnu: rust-tectonic-io-base-0.3: Update to 0.3.1., guix-commits, 2023/10/28
- 303/311: gnu: rust-tectonic-xetex-layout-0.2: Update to 0.2.3., guix-commits, 2023/10/28
- 307/311: gnu: Remove rust-tectonic-io-base-0.2., guix-commits, 2023/10/28
- 308/311: gnu: Remove rust-tectonic-status-base-0.1., guix-commits, 2023/10/28
- 309/311: gnu: rust-analyzer: Move to rust.scm., guix-commits, 2023/10/28
- 310/311: gnu: zoxide: Remove old rust version workaround., guix-commits, 2023/10/28
- 295/311: gnu: rust-tectonic-engine-xdvipdfmx-0.4: Update to 0.4.1., guix-commits, 2023/10/28
- 298/311: gnu: rust-tectonic-io-base-0.4: Update to 0.4.2., guix-commits, 2023/10/28
- 300/311: gnu: rust-tectonic-pdf-io-0.4: Update to 0.4.1., guix-commits, 2023/10/28
- 302/311: gnu: rust-tectonic-xdv-0.2: Update to 0.2.2., guix-commits, 2023/10/28
- 311/311: build: cargo-build-system: Pack crates reproducibly.,
guix-commits <=
- 90/311: gnu: Add rust-gix-sec-0.8., guix-commits, 2023/10/28
- 274/311: gnu: Remove rust-either-1.6.0., guix-commits, 2023/10/28
- 301/311: gnu: rust-tectonic-status-base-0.2: Update to 0.2.1., guix-commits, 2023/10/28
- 306/311: gnu: Remove rust-tectonic-errors-0.1., guix-commits, 2023/10/28
- 305/311: gnu: Remove rust-cbindgen-0.19., guix-commits, 2023/10/28