Source: naturaldocs
Version: 1.51-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: toolchain randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that naturaldocs is not generating deterministic searchdata.js files.

The attached patch removes this randomness. Once applied, packages using
naturaldocs can be built in our reproducible toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/Modules/NaturalDocs/Builder/HTMLBase.pm 
b/Modules/NaturalDocs/Builder/HTMLBase.pm
index 9d7dab0..7ba193d 100644
--- a/Modules/NaturalDocs/Builder/HTMLBase.pm
+++ b/Modules/NaturalDocs/Builder/HTMLBase.pm
@@ -578,7 +578,7 @@ sub EndBuild #(hasChanged)
                }
 
 
-    my @indexes = keys %{NaturalDocs::Menu->Indexes()};
+    my @indexes = sort keys %{NaturalDocs::Menu->Indexes()};
 
     open(FH_INDEXINFOJS, '>' . NaturalDocs::File->JoinPaths( 
$self->JavaScriptDirectory(), 'searchdata.js'));
     binmode(FH_INDEXINFOJS, ':encoding(UTF-8)');
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to