guix-commits
[Top][All Lists]
Advanced

[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:39:01 -0400 (EDT)

janneke pushed a commit to branch wip-tarball
in repository guix.

commit 583a837caec3f67c375eda75f2e078322ee7051d
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]