[rb-general] pyfai package
Bernhard M. Wiedemann
bernhardout at lsmod.de
Mon Oct 7 13:23:07 UTC 2019
On 06/10/2019 19.54, Holger Levsen wrote:
> On Sun, Oct 06, 2019 at 10:53:24AM +0000, PICCA Frederic-Emmanuel wrote:
>> Now it seems that the problem is in the man pages of the program [2].
>> pyfai generates its man pages, with help2man.
>
> that's probably
> https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_manpages_generated_by_help2man_issue.html
>
>> so, I would ask your help in order to fix this :)
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787444 is a start I
> believe, but then that bug is also from a time when SOURCE_DATE_EPOCH
> wasnt a thing yet.
I also encountered issues when help2man used the mtime of a source file
that was patched during build.
There is an upstream help2man patch to make that deterministic,
but there are many projects embedding old help2man code in their
releases. The easiest is to kindly ask upstream to update their copy of
help2man.
The cheap alternative is to apply such a one-line patch:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27773
--- a/doc/help2man
+++ b/doc/help2man
-my $date = enc strftime _("%B %Y"), localtime;
+my $date = enc strftime _("%B %Y"), gmtime($ENV{SOURCE_DATE_EPOCH} ||
time());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.reproducible-builds.org/pipermail/rb-general/attachments/20191007/6b4324a9/attachment.sig>
More information about the rb-general
mailing list