Source: libinline-java-perl
Version: 0.56-1
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 libinline-java-perl could not be built reproducibly.

The attached patch removes randomness from the build system. Once
applied, libinline-java-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 
libinline-java-perl.orig/libinline-java-perl-0.56/debian/patches/reproducible_build
 libinline-java-perl/libinline-java-perl-0.56/debian/patches/reproducible_build
--- 
libinline-java-perl.orig/libinline-java-perl-0.56/debian/patches/reproducible_build
 1970-01-01 01:00:00.000000000 +0100
+++ 
libinline-java-perl/libinline-java-perl-0.56/debian/patches/reproducible_build  
    2015-02-22 13:57:44.452908398 +0000
@@ -0,0 +1,11 @@
+--- libinline-java-perl-0.56.orig/Makefile.PL
++++ libinline-java-perl-0.56/Makefile.PL
+@@ -234,7 +234,7 @@ print J2SDK <<J2SDK_PL;
+ sub Inline::Java::get_default_j2sdk_so_dirs {
+       return (
+ J2SDK_PL
+-foreach my $d (@main::SO_DIRS){
++foreach my $d (sort @main::SO_DIRS){
+       $d =~ s/'/\'/g ;
+       print J2SDK "\t\t'$d',\n" ;
+ }
diff -urNad 
libinline-java-perl.orig/libinline-java-perl-0.56/debian/patches/series 
libinline-java-perl/libinline-java-perl-0.56/debian/patches/series
--- libinline-java-perl.orig/libinline-java-perl-0.56/debian/patches/series     
2015-02-22 13:11:59.401586422 +0000
+++ libinline-java-perl/libinline-java-perl-0.56/debian/patches/series  
2015-02-22 13:57:39.696694900 +0000
@@ -1 +1,2 @@
 01-typos.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