Subject: | Sort output of find |
generate-mouse-tiny.pl should sort output from find
because we want reproducible output
even though filesystem order is undeterministic
See https://reproducible-builds.org/ for why this is good.
Subject: | reproducible.patch |
Sort output from find
because we want reproducible output
even though filesystem order is undeterministic
See https://reproducible-builds.org/ for why this is good.
Index: Mouse-v2.4.9/tool/generate-mouse-tiny.pl
===================================================================
--- Mouse-v2.4.9.orig/tool/generate-mouse-tiny.pl
+++ Mouse-v2.4.9/tool/generate-mouse-tiny.pl
@@ -39,6 +39,7 @@ find({
},
no_chdir => 1,
}, 'lib');
+@files = sort @files;
my $mouse_tiny = '';
@@ -48,7 +49,7 @@ for my $file (uniq
'lib/Mouse/Util.pm',
'lib/Mouse/Meta/TypeConstraint.pm',
'lib/Mouse/Util/TypeConstraints.pm',
- sort @files) {
+ @files) {
my $contents = slurp $file;