File: 0001-Sort-installed-configuration-file-for-reproducibilit.patch

package info (click to toggle)
libchado-perl 1.31-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,728 kB
  • sloc: sql: 282,721; xml: 192,553; perl: 25,524; sh: 102; python: 73; makefile: 57
file content (20 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Niko Tyni <ntyni@debian.org>
Last-Update: Sat, 17 Oct 2015 11:44:57 +0300
Subject: Sort installed configuration file for reproducibility

This makes the file stable between builds.
---
 install_util/conf_install.PLS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/install_util/conf_install.PLS
+++ b/install_util/conf_install.PLS
@@ -71,7 +71,7 @@ print GMODCONF "VERSION=$version\n";
 close GMODCONF;
 
 open DBCONF,  ">$dbconf" or die "unable to open $dbconf: $!";
-foreach my $key (keys %confitems) {
+foreach my $key (sort keys %confitems) {
     print DBCONF  "$key=$confitems{$key}\n";
 }
 print DBCONF  "SQLFILE=$gmod_root/src/chado/modules/complete.sql\n";