[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: maint: Ensure generated file reproducibility for dist.
From: |
guix-commits |
Subject: |
04/07: maint: Ensure generated file reproducibility for dist. |
Date: |
Wed, 3 Apr 2024 05:23:23 -0400 (EDT) |
janneke pushed a commit to branch wip-tarball
in repository guix.
commit b739b26f16b95d4b02cceddcb1eafa4e34134583
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri Sep 8 10:46:30 2023 +0200
maint: Ensure generated file reproducibility for dist.
* doc/local.mk (override $(srcdir)/doc/stamp-vti): New target override.
(doc-clean, man-clean): New targets.
(auto-clean): Depend on it in new target.
(DIST_CONFIGURE_FLAGS): New variable.
(dist-hook): Use them.
---
doc/local.mk | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/doc/local.mk b/doc/local.mk
index 936a561986..a81767057e 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -6,6 +6,7 @@
# Copyright © 2016, 2018 Mathieu Lirzin <mthl@gnu.org>
# Copyright © 2018, 2021 Julien Lepiller <julien@lepiller.eu>
# Copyright © 2019 Timothy Sample <samplet@ngyro.com>
+# Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
#
# This file is part of GNU Guix.
#
@@ -268,3 +269,23 @@ override $(srcdir)/doc/stamp-vti: $(srcdir)/doc/guix.texi
echo "@set VERSION $(VERSION)"; } > $@-t; \
mv $@-t $@
@cp $@ $(srcdir)/doc/version.texi
+
+DIST_CONFIGURE_FLAGS = \
+ --localstatedir=/var \
+ --sysconfdir=/etc
+
+dist: auto-clean
+auto-clean: maintainer-clean-vti doc-clean man-clean
+ rm -f ABOUT-NLS INSTALL
+ rm -f aclocal.m4 configure libtool Makefile.in
+ git clean -fdx -- build-aux
+ ./bootstrap
+ ./configure $(DIST_CONFIGURE_FLAGS)
+
+doc-clean:
+ rm -f $(DOT_FILES:%.dot=%.png)
+ rm -f $(filter-out %D%/guix.texi %D%/guix-cookbook.texi,
$(info_TEXINFOS))
+ rm -f $(srcdir)/po/doc/*.pot $(srcdir)/guix/*.pot
$(srcdir)/packages/*.pot
+
+man-clean:
+ rm -f $(srcdir)/doc/*.1
- branch wip-tarball created (now 513b9004da), guix-commits, 2024/04/03
- 01/07: maint: Cater for running `make dist' from a worktree., guix-commits, 2024/04/03
- 03/07: maint: Generate 'version.texi' reproducibly., guix-commits, 2024/04/03
- 04/07: maint: Ensure generated file reproducibility for dist.,
guix-commits <=
- 06/07: maint: Generate 'version-LANG.texi' reproducibly., guix-commits, 2024/04/03
- 02/07: maint: Use reproducible timestamps and name for tarball., guix-commits, 2024/04/03
- 07/07: maint: Use reproducible POT-Creation-Date., guix-commits, 2024/04/03
- 05/07: maint: Help help2man generate reproducible man-pages., guix-commits, 2024/04/03