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.
During build a file is generated with unsorted elements.

The attached patch fixes this by sorting the keys when generating the list.

Regards,
 Reiner

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

diff --git a/debian/patches/02-sort-so-dirs.patch b/debian/patches/02-sort-so-dirs.patch
new file mode 100644
index 0000000..73815d0
--- /dev/null
+++ b/debian/patches/02-sort-so-dirs.patch
@@ -0,0 +1,16 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Sort SO_DIRS to get reproducible results
+
+Index: libinline-java-perl-0.56/Java/Makefile.PL
+===================================================================
+--- libinline-java-perl-0.56.orig/Java/Makefile.PL
++++ libinline-java-perl-0.56/Java/Makefile.PL
+@@ -143,7 +143,7 @@ if ($build_jni){
+ 				"use the JNI configuration option or set the PERL_INLINE_JAVA_JNI environment\n" .
+ 				"variable to a true value. You will also need to add the following directories\n" .
+ 				"to your " . Inline::Java::Portable::portable('SO_LIB_PATH_VAR') . " environment variable:\n" ;
+-			@main::SO_DIRS = keys %so_dirs ;
++			@main::SO_DIRS = sort keys %so_dirs ;
+ 			map {print "  $_\n"; } @main::SO_DIRS ;
+ 			print "See README.JNI for more information.\n\n" ;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 13e6418..315ef39 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01-typos.patch
+02-sort-so-dirs.patch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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