Source: nbformat
Version: 5.2.0-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
nbformat could not be built reproducibly.

This is because the output varies on whether the build process can
access the internet. A patch is attached which attempts to ensure
Sphinx does not connect to the internet at all, regardless of whether
the internet is available.

Another solution would be to patch nbformat itself to use local
intersphinx mappings (ie. pointing to /usr instead of to somewhere
on the internet).

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2022-03-16 11:02:57.311625438 +0000
--- b/debian/rules      2022-03-16 11:05:07.918853269 +0000
@@ -16,6 +16,6 @@
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-       PYTHONPATH=. python3 -m sphinx -b html docs 
debian/python-nbformat-doc/usr/share/doc/python-nbformat-doc/html
+       PYTHONPATH=. http_proxy=http://127.0.0.1:9 
https_proxy=http://127.0.0.1:9 python3 -m sphinx -b html docs 
debian/python-nbformat-doc/usr/share/doc/python-nbformat-doc/html
        dh_sphinxdoc -O--buildsystem=pybuild
 endif

Reply via email to