[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible
From: |
pelzflorian (Florian Pelz) |
Subject: |
[bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible man-pages. |
Date: |
Sun, 07 Apr 2024 15:54:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello Jan,
Janneke Nieuwenhuizen <janneke@gnu.org> writes:
> diff --git a/doc/local.mk b/doc/local.mk
> index 5f014b9c3d..017686137a 100644
> --- a/doc/local.mk
> +++ b/doc/local.mk
> @@ -224,6 +224,9 @@ gen_man = \
> $(HELP2MANFLAGS)
>
> HELP2MANFLAGS = --source=GNU --info-page=$(PACKAGE_TARNAME)
> +# help2man reproducibility
> +SOURCE_DATE_EPOCH = $(shell git show HEAD --format=%ct --no-patch
> 2>/dev/null || echo 0)
> +export SOURCE_DATE_EPOCH
>
> $(srcdir)/%D%/guix.1: scripts/guix.in $(sub_commands_mans)
> -$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1`
Do I interpret correctly that “echo 0” is a fallback timestamp?
Looking at the now gone instructions from “git show
83c60bb0622440afe98930820186ddfa1e6e8b2f”, at that time, a timestamp of
1 was used for the tarball; I do not remember why. In
guix/scripts/pack.scm, 1 is used for squashfs and docker images.
Is 1 a better timestamp than 0?
Regards,
Florian
- [bug#70169] [PATCH 6/7] maint: Use reproducible Git timestamp for POT-Creation-Date., (continued)
- [bug#70169] [PATCH v2 00/12] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 02/12] maint: Use reproducible timestamps and name for tarball., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 01/12] maint: Cater for running `make dist' from a worktree., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible man-pages., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible man-pages., Ludovic Courtès, 2024/04/08
- [bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible man-pages., Janneke Nieuwenhuizen, 2024/04/08
[bug#70169] [PATCH v2 06/12] maint: Generate 'doc/version-LANG.texi' reproducibly., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 10/12] maint: Avoid PNG and PDF generation to fail silently., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 03/12] maint: Generate 'doc/version.texi' reproducibly., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 08/12] maint: Use reproducible Git timestamp for POT-Creation-Date., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 05/12] maint: Generate AUTHORS and ChangeLog reproducibly., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 07/12] maint: Use xgettext.scm wrapper to create .PO files reproducibly., Janneke Nieuwenhuizen, 2024/04/06