[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#70169] [PATCH v2 04/12] maint: Help help2man generate reproducible man-pages. |
Date: |
Sun, 07 Apr 2024 16:06:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
pelzflorian (Florian Pelz) writes:
Hello Florian,
> Janneke Nieuwenhuizen <janneke@gnu.org> writes:
>> diff --git a/doc/local.mk b/doc/local.mk
>> +SOURCE_DATE_EPOCH = $(shell git show HEAD --format=%ct --no-patch
>> 2>/dev/null || echo 0)
>> +export SOURCE_DATE_EPOCH
>
> Do I interpret correctly that “echo 0” is a fallback timestamp?
Yes.
> 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.
That's probably because of build dependencies.
> Is 1 a better timestamp than 0?
For files, using 1 is preferrable if it's not a source file. We use 1
for .go files, and 0 for .scm files, iirc. SOURCE_DATE_EPOCH is (only)
used for the date in the document. Without git, 0 is as good a guess
for a reproducible date for use in a document as any, I think.
Greetings,
Janneke
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
- [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
[bug#70169] [PATCH v2 09/12] maint: Remove %%CreationDate from generated EPS files, Janneke Nieuwenhuizen, 2024/04/06