Bug#1082706: python-sphobjinv: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Sep 24 19:59:00 BST 2024
Source: python-sphobjinv
Version: 2.3.1.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
python-sphobjinv could not be built reproducibly.
This is because every documentation page embedded an arbitrary memory
reference:
│ │ │ ├── ./usr/share/doc/python-sphobjinv-doc/html/api/data.html
│ │ │ │ @@ -497,15 +497,15 @@
│ │ │ │ </div>
│ │ │ │
│ │ │ │ Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
│ │ │ │ <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
│ │ │ │ provided by <a href="https://readthedocs.org">Read the Docs</a>.
│ │ │ │
│ │ │ │
│ │ │ │ -<jinja2.runtime.BlockReference object at 0x7fe2c7ea2c60>
│ │ │ │ +<jinja2.runtime.BlockReference object at 0x7f37b2838e30>
│ │ │ │
│ │ │ │ <br /><br />
... which was in turn caused by a faulty call to super().
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/docs-Call-super-correctly.patch 1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/docs-Call-super-correctly.patch 2024-09-24 11:48:45.007670165 -0700
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2024-09-24
+
+--- python-sphobjinv-2.3.1.1.orig/doc/source/_templates/footer.html
++++ python-sphobjinv-2.3.1.1/doc/source/_templates/footer.html
+@@ -2,7 +2,7 @@
+
+ {%-block extrafooter %}
+
+-{{ super }}
++{{ super() }}
+
+ <br /><br />
+
--- a/debian/patches/series 2024-09-24 11:29:12.923722801 -0700
--- b/debian/patches/series 2024-09-24 11:48:43.971665640 -0700
@@ -2,3 +2,4 @@
tests-Replace-python-with-python3-in-test_cli.py.patch
docs-Use-packaged-intersphinx-resources.patch
docs-Use-a-local-referenced-PNG-file.patch
+docs-Call-super-correctly.patch
More information about the Reproducible-bugs
mailing list