Bug#966495: python-pyxs: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Jul 29 11:51:33 BST 2020


Source: python-pyxs
Version: 0.4.2~git20190115.97f14313-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the linkcode Sphinx extension and linkcode_resolve get
confused and try to link to the documentation to the @contextlib.contextmanager
decorator, and then uses relpath... All this results in links differing
depending on the number of directory components in the absolute build path:

  href="https://github.com/selectel/pyxs/tree/0.4.2-dev/pyxs/../../../../usr/lib/python3.8/contextlib.py#L25-L33

vs.

  href="https://github.com/selectel/pyxs/tree/0.4.2-dev/pyxs/../../../../../usr/lib/python3.8/contextlib.py#L25-L33"

As these links are broken anyway, I've attached a patch that will simply
hide them if we know they will be wrong. I think the right fix would be
to resolve the location of the exact function "underneath" the decorator.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-pyxs.diff.txt
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20200729/eee61ce7/attachment.txt>


More information about the Reproducible-bugs mailing list