1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Author: Niko Tyni <ntyni@debian.org>
Last-Update: Sat, 17 Oct 2015 11:44:57 +0300
Description: Sort generated build.conf for reproducibility
This makes the resulting configuration file stable between builds.
---
Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -424,7 +424,7 @@ if ( open CONF, ">$build_config" ) {
$conf{'VERSION'} = $VERSION;
$conf{'SCHEMA'} = $SCHEMA;
- print CONF map { "$_=$conf{ $_ }\n" } keys %conf;
+ print CONF map { "$_=$conf{ $_ }\n" } sort keys %conf;
close CONF or die "Can't write file '$build_config': $!\n";
}
|