Bug#1141412: python-sphinx-chango: patch to make the build reproducible
Jochen Sprickerhof
jspricke at debian.org
Sat Jul 4 08:35:02 BST 2026
Source: python-sphinx-chango
Version: 0.6.1-1
Severity: normal
Tags: patch
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
Hi,
python-sphinx-chango is currently not reproducible.
https://reproduce.debian.net/all/forky.html#python-sphinx-chango
The problem is that python-typer uses the default_factor parameter to
print the default value of the parameter. But in this case it is the
memory address of the today function which is not reproducible. The help
text already states the default so this is not needed. The attached
patch fixes this.
Cheers Jochen
-------------- next part --------------
diff -Nru python-sphinx-chango-0.6.1/debian/patches/fix-reproducible.patch python-sphinx-chango-0.6.1/debian/patches/fix-reproducible.patch
--- python-sphinx-chango-0.6.1/debian/patches/fix-reproducible.patch 1970-01-01 01:00:00.000000000 +0100
+++ python-sphinx-chango-0.6.1/debian/patches/fix-reproducible.patch 2026-04-04 19:41:43.000000000 +0200
@@ -0,0 +1,11 @@
+Description: Do not show memory address of _today() in help
+--- python-sphinx-chango-0.6.1.orig/src/chango/_cli/release.py
++++ python-sphinx-chango-0.6.1/src/chango/_cli/release.py
+@@ -29,6 +29,7 @@ def release(
+ help="The date of the version release. Defaults to today.",
+ parser=date_callback,
+ default_factory=_today,
++ show_default=False,
+ ),
+ ],
+ ) -> None:
diff -Nru python-sphinx-chango-0.6.1/debian/patches/series python-sphinx-chango-0.6.1/debian/patches/series
--- python-sphinx-chango-0.6.1/debian/patches/series 2025-08-14 17:35:09.000000000 +0200
+++ python-sphinx-chango-0.6.1/debian/patches/series 2026-04-04 19:41:43.000000000 +0200
@@ -1 +1,2 @@
0001_fix_privacy-breach-generic.patch
+fix-reproducible.patch
More information about the Reproducible-bugs
mailing list