[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: maint: Use reproducible timestamps and name for tarball.
From: |
guix-commits |
Subject: |
02/08: maint: Use reproducible timestamps and name for tarball. |
Date: |
Wed, 3 Apr 2024 02:44:07 -0400 (EDT) |
janneke pushed a commit to branch wip-tarball
in repository guix.
commit f05e153d8d16c75eaa95a935a43a76286e927c72
Author: Jan Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Feb 27 18:38:29 2020 +0100
maint: Use reproducible timestamps and name for tarball.
* Makefile.am (gen-tarball-version): Add reproducible timestamp to tarball.
(am__tar): New variable, use it instead of EPOCH. Add mode.
(GZIP_ENV): New variable.
Change-Id: Iea5c2f80eaf24b2f2d80e651c73c348231de8d63
---
Makefile.am | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 2b5e145095..c33d69ed9f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@
# Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
# Copyright © 2017 Leo Famulari <leo@famulari.name>
# Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
-# Copyright © 2017, 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
+# Copyright © 2017, 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
# Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
# Copyright © 2018 Nikita <nikita@n0.is>
# Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
@@ -970,6 +970,7 @@ $(top_srcdir)/.version: config.status
gen-tarball-version:
echo $(VERSION) > "$(distdir)/.tarball-version"
+ git show HEAD --format=%ct --no-patch > $(distdir)/.tarball-timestamp
gen-ChangeLog:
$(AM_V_GEN)if test -e .git; then \
@@ -1002,6 +1003,17 @@ dist-with-updated-version:
# Release management.
#
+# Reproducible tarball
+GZIP_ENV = --no-name
+# Be friendly to Debian; avoid using EPOCH
+am__tar = $${TAR-tar} \
+ --sort=name \
+ --mode=go=rX,u+rw,a-s \
+ --mtime=@$$(cat "$$tardir"/.tarball-timestamp) \
+ --owner=0 --group=0 --numeric-owner \
+ -cf - \
+ "$$tardir"
+
releasedir = release-$(PACKAGE_VERSION)
PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
- branch wip-tarball created (now 91d5da26fa), guix-commits, 2024/04/03
- 02/08: maint: Use reproducible timestamps and name for tarball.,
guix-commits <=
- 05/08: maint: Help help2man generate reproducible man-pages., guix-commits, 2024/04/03
- 06/08: maint: Generate 'version-LANG.texi' reproducibly., guix-commits, 2024/04/03
- 01/08: maint: Cater for running `make dist' from a worktree., guix-commits, 2024/04/03
- 04/08: maint: Ensure generated file reproducibility for dist., guix-commits, 2024/04/03
- 03/08: maint: Generate 'version.texi' reproducibly., guix-commits, 2024/04/03
- 07/08: maint: Use reproducible POT-Creation-Date., guix-commits, 2024/04/03
- 08/08: maint: Update PO upon "make dist"., guix-commits, 2024/04/03