File: 0001-Sort-generated-build.conf-for-reproducibility.patch

package info (click to toggle)
libchado-perl 1.31-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 44,716 kB
  • sloc: sql: 282,721; xml: 192,553; perl: 25,524; sh: 101; python: 73; makefile: 56
file content (20 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (3)
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";
 }