Bug#1007757: nbformat: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Mar 16 11:09:37 GMT 2022


Source: nbformat
Version: 5.2.0-1
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
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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list