#1126092 argparse-manpage: please make the output reproducible

#1126092#5
Date:
2026-01-21 18:18:13 UTC
From:
To:
Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
argparse-manpage generates nondeterministic manpages.

This appears to be a regression from version 4.5 which correctly used
utcfromtimestamp to parse SOURCE_DATE_EPOCH to a Python datetime
object. However, 4.7 uses fromtimestamp (cf. "utcfromtimestamp"), so
the generated manual pages differ depending on the surrounding timezone.

This is affecting at least the src:psutils and src:virtme-ng packages,
but there are likely more.

Patch attached.

  [0] https://reproducible-builds.org/


Regards,

#1126092#10
Date:
2026-01-21 18:54:44 UTC
From:
To:
Chris Lamb wrote:

Non-empty patch now attached.


Regards,