Source: pytools Version: 2021.2.8-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that pytools could not be built reproducibly. This is because it calculates the project name from the directory it is built from (in the patched doc/conf.py) so the documentation varies depending on the buildpath. A patch is attached that hardcodes the project name to 'pytools'. This is not ideal, but this patch is essentially a code copy of a larger problem so the special-casing is not as bad as it might initially appear. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-documentation.patch 2021-10-19 14:29:58.545257259 +0100 --- b/debian/patches/reproducible-documentation.patch 2021-10-19 14:30:24.053348504 +0100 @@ -3,8 +3,6 @@ Forwarded: not-needed Author: Tomasz Rybak <serp...@debian.org> Last-Update: 2021-10-16 -Index: pytools-2021.2.8/doc/conf.py -=================================================================== --- pytools-2021.2.8.orig/doc/conf.py +++ pytools-2021.2.8/doc/conf.py @@ -1,9 +1,86 @@ @@ -20,7 +18,7 @@ + +html_show_sourcelink = True + -+project = _basename(_dirname(_dirname(__file__))) ++project = "pytools" + +autoclass_content = "class" + --- a/doc/conf.py 2021-10-19 14:29:58.545257259 +0100 --- b/doc/conf.py 2021-10-19 14:31:11.949512864 +0100 @@ -6,7 +6,7 @@ html_show_sourcelink = True -project = _basename(_dirname(_dirname(__file__))) +project = "pytools" autoclass_content = "class"