Source: dictionaries-common
Version: 1.23.17
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that dictionaries-common generates debconf output with non-deterministic
output.

The attached patch ensures a sorted order rather than arbitrary dict
order.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/scripts/perl5/Devel/DictionariesCommon.pm.in 
b/scripts/perl5/Devel/DictionariesCommon.pm.in
index 847f1f4..2d625f6 100644
--- a/scripts/perl5/Devel/DictionariesCommon.pm.in
+++ b/scripts/perl5/Devel/DictionariesCommon.pm.in
@@ -138,7 +138,7 @@ rm -f \$tmp
   my @tmp_defaults   = ();
   my $has_elanguages;
 
-  foreach (keys %{$dicts}){
+  foreach (sort keys %{$dicts}){
     my $lang  = $dicts->{$_};
     unless ( defined $lang->{'debconf-display'} &&  
lc($lang->{'debconf-display'}) eq "no" ) {
       push (@tmp_languages,$_);
_______________________________________________
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