Your message dated Thu, 25 Jan 2018 07:49:57 +0400
with message-id <[email protected]>
and subject line nbsphinx: please make the build reproducible
has caused the Debian Bug report #881094,
regarding nbsphinx: please make the build reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
881094: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881094
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: nbsphinx
Version: 0.2.14+ds-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that nbsphinx could not be built reproducibly.
Patch attached that uses different Javascript to get the sibling
<div/> element instead of generating a (random) UUID and putting
that in the DOM.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-build.patch 2017-11-07 16:41:02.718541350
+0000
@@ -0,0 +1,22 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2017-11-07
+
+--- nbsphinx-0.2.14+ds.orig/nbsphinx.py
++++ nbsphinx-0.2.14+ds/nbsphinx.py
+@@ -150,13 +150,12 @@ RST_TEMPLATE = """
+
+ {{ output.data['text/html'] | indent | indent }}
+ {%- elif datatype == 'application/javascript' %}
+-{% set div_id = uuid4() %}
+
+ .. raw:: html
+
+- <div id="{{ div_id }}"></div>
++ <div></div>
+ <script type="text/javascript">
+- var element = document.getElementById('{{ div_id }}');
++ var element = document.currentScript.previousSibling.previousSibling;
+ {{ output.data['application/javascript'] | indent | indent }}
+ </script>
+ {%- elif datatype.startswith('application') and datatype.endswith('+json') %}
--- a/debian/patches/series 2017-11-07 16:08:32.862051001 +0000
--- b/debian/patches/series 2017-11-07 16:40:20.470183875 +0000
@@ -1 +1,2 @@
debianization-documentation.patch
+reproducible-build.patch
--- End Message ---
--- Begin Message ---
apparently fixed in the last package 0.3.1+ds-1
thanks
signature.asc
Description: OpenPGP digital signature
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team