Bug#1130623: python-discovery: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Mar 13 17:45:24 GMT 2026


Source: python-discovery
Version: 1.1.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the documentation embeds the current time and date.
This is not usually an issue with Sphinx, but AIUI, Sphinx will not
do SOURCE_DATE_EPOCH timestamp magic when the format is .isoformat()

Patch attached that simply drops the "Last updated" line, which is
not so useful in a Debian binary package context.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/reproducible-build.patch	2026-03-13 10:42:43.706343061 -0700
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2026-03-13
+
+--- python-discovery-1.1.1.orig/docs/conf.py
++++ python-discovery-1.1.1/docs/conf.py
+@@ -36,7 +36,6 @@ project = name
+ 
+ html_theme = "furo"
+ html_title = project
+-html_last_updated_fmt = datetime.now(tz=timezone.utc).isoformat()
+ pygments_dark_style = "monokai"
+ html_show_sourcelink = False
+ html_static_path = ["_static"]
--- a/debian/patches/series	2026-03-13 10:30:10.995507374 -0700
--- b/debian/patches/series	2026-03-13 10:42:42.886128421 -0700
@@ -1 +1,2 @@
 docs-d3-path
+reproducible-build.patch


More information about the Reproducible-bugs mailing list