Source: libcommon-sense-perl
Version: 3.73-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that libcommon-sense-perl could not be built reproducibly.

The attached patch removes randomness from the build system. Once
applied, libcommon-sense-perl can be built reproducibly in our
reproducible
toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad 
libcommon-sense-perl.orig/libcommon-sense-perl-3.73/debian/patches/reproducible_build
 
libcommon-sense-perl/libcommon-sense-perl-3.73/debian/patches/reproducible_build
--- 
libcommon-sense-perl.orig/libcommon-sense-perl-3.73/debian/patches/reproducible_build
       1970-01-01 01:00:00.000000000 +0100
+++ 
libcommon-sense-perl/libcommon-sense-perl-3.73/debian/patches/reproducible_build
    2015-02-22 03:16:36.028127136 +0000
@@ -0,0 +1,11 @@
+--- libcommon-sense-perl-3.73.orig/sense.pm.PL
++++ libcommon-sense-perl-3.73/sense.pm.PL
+@@ -44,7 +44,7 @@ while (<DATA>) {
+       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 -urNad 
libcommon-sense-perl.orig/libcommon-sense-perl-3.73/debian/patches/series 
libcommon-sense-perl/libcommon-sense-perl-3.73/debian/patches/series
--- libcommon-sense-perl.orig/libcommon-sense-perl-3.73/debian/patches/series   
2015-02-22 03:13:43.832326073 +0000
+++ libcommon-sense-perl/libcommon-sense-perl-3.73/debian/patches/series        
2015-02-22 03:16:32.927986698 +0000
@@ -1 +1,2 @@
 pod-encoding.patch
+reproducible_build
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to