Bug#839633: alabaster: please make the output reproducible

Chris Lamb lamby at debian.org
Mon Oct 3 09:41:24 UTC 2016


Source: alabaster
Version: 0.7.8-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain randomness
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that alabaster could not be built reproducibly as it iterates
over a dict in non-determinstic ordering.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/alabaster/navigation.html b/alabaster/navigation.html
index 670cc7b..b6210a8 100644
--- a/alabaster/navigation.html
+++ b/alabaster/navigation.html
@@ -3,7 +3,7 @@
 {% if theme_extra_nav_links %}
 <hr />
 <ul>
-    {% for text, uri in theme_extra_nav_links.items() %}
+    {% for text, uri in theme_extra_nav_links.items()|sort %}
     <li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li>
     {% endfor %}
 </ul>


More information about the Reproducible-builds mailing list