Bug#1096188: terminaltables3: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Feb 17 11:08:45 GMT 2025


Source: terminaltables3
Version: 4.0.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timezone
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
terminaltables3 could not be built reproducibly.

This is because it embeds a timezone-varying date in the documentation:

   html_last_updated_fmt = f"%c {time.tzname[time.localtime().tm_isdst]}"

However, if we set TZ=UTC when generating the documentation, then the
package becomes reproducible. Patch attached.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-02-17 11:05:09.019548278 +0000
--- b/debian/rules	2025-02-17 11:07:37.603698256 +0000
@@ -19,7 +19,7 @@
 override_dh_sphinxdoc: export https_proxy=127.0.0.1:9
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-	PYTHONPATH=. /usr/share/sphinx/scripts/python3/sphinx-build -N -q -E -b html docs/ debian/python-terminaltables3-doc/usr/share/doc/python-terminaltables3-doc/html/
+	TZ=UTC PYTHONPATH=. /usr/share/sphinx/scripts/python3/sphinx-build -N -q -E -b html docs/ debian/python-terminaltables3-doc/usr/share/doc/python-terminaltables3-doc/html/
 	dh_sphinxdoc
 endif
 


More information about the Reproducible-bugs mailing list