[libcommon-sense-perl] 02/04: Add patch to make build reproducible.

gregor herrmann gregoa at debian.org
Sat May 2 19:21:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libcommon-sense-perl.

commit f9c3b853f15a2663afd258f3016f0574f76470dc
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat May 2 21:17:53 2015 +0200

    Add patch to make build reproducible.
    
    Thanks: Chris Lamb for the bug report and patch.
    Closes: #778952
---
 debian/patches/reproducible_build.patch | 19 +++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..8d457d8
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,19 @@
+Description: make build reproducible by sorting hash keys
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/778952
+Forwarded: no
+Author: Chris Lamb <lamby at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-05-02
+
+--- a/sense.pm.PL
++++ b/sense.pm.PL
+@@ -44,7 +44,7 @@
+       print "   # use strict, use utf8; use feature;\n";
+       printf "   \$^H |= 0x%x;\n", $H;
+ 
+-      if (my @features = grep /^feature_/, keys %H) {
++      if (my @features = grep /^feature_/, sort keys %H) {
+          print "   \@^H{qw(@features)} = (1) x ", (scalar @features), ";\n";
+       }
+    } elsif (/^VERSION/) {
diff --git a/debian/patches/series b/debian/patches/series
index 5766d01..4ba55c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 pod-encoding.patch
+reproducible_build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcommon-sense-perl.git



More information about the Pkg-perl-cvs-commits mailing list