Source: libxml-sax-expatxs-perl
Version: 1.33-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that libxml-sax-expatxs-perl could not be built reproducibly.
The attached patch removes randomness from the build system. Once
applied, libxml-sax-expatxs-perl can be built reproducibly in our
reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad
libxml-sax-expatxs-perl.orig/libxml-sax-expatxs-perl-1.33/debian/patches/reproducible_build
libxml-sax-expatxs-perl/libxml-sax-expatxs-perl-1.33/debian/patches/reproducible_build
---
libxml-sax-expatxs-perl.orig/libxml-sax-expatxs-perl-1.33/debian/patches/reproducible_build
1970-01-01 01:00:00.000000000 +0100
+++
libxml-sax-expatxs-perl/libxml-sax-expatxs-perl-1.33/debian/patches/reproducible_build
2015-02-22 13:21:45.671955927 +0000
@@ -0,0 +1,11 @@
+--- libxml-sax-expatxs-perl-1.33.orig/Makefile.PL
++++ libxml-sax-expatxs-perl-1.33/Makefile.PL
+@@ -152,7 +152,7 @@ EOHEADER
+ comment => [qw(DocumentHandler LexicalHandler
Handler)],
+ );
+
+- for my $ev (keys %EVENT_SPEC) {
++ for my $ev (sort keys %EVENT_SPEC) {
+ $code .= <<" EOTOPCODE";
+ sub get_$ev {
+ my \$self = shift;
diff -urNad
libxml-sax-expatxs-perl.orig/libxml-sax-expatxs-perl-1.33/debian/patches/series
libxml-sax-expatxs-perl/libxml-sax-expatxs-perl-1.33/debian/patches/series
---
libxml-sax-expatxs-perl.orig/libxml-sax-expatxs-perl-1.33/debian/patches/series
2015-02-22 13:17:20.556039779 +0000
+++ libxml-sax-expatxs-perl/libxml-sax-expatxs-perl-1.33/debian/patches/series
2015-02-22 13:21:42.571816639 +0000
@@ -1,2 +1,3 @@
dont-install-sax
remove-generated-file-in-realclean
+reproducible_build