Source: libalien-wxwidgets-perl
Version: 0.65+dfsg-4
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 libalien-wxwidgets-perl could not be built reproducibly.
The attached patch removes randomness from the build system. Once
applied, libalien-wxwidgets-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
libalien-wxwidgets-perl.orig/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/reproducible_build
libalien-wxwidgets-perl/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/reproducible_build
---
libalien-wxwidgets-perl.orig/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/reproducible_build
1970-01-01 01:00:00.000000000 +0100
+++
libalien-wxwidgets-perl/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/reproducible_build
2015-02-22 01:52:20.142581602 +0000
@@ -0,0 +1,12 @@
+--- libalien-wxwidgets-perl-0.65+dfsg.orig/inc/My/Build/Base.pm
++++ libalien-wxwidgets-perl-0.65+dfsg/inc/My/Build/Base.pm
+@@ -11,6 +11,9 @@ use Data::Dumper;
+ use File::Glob qw(bsd_glob);
+ use Carp;
+
++# Ensure deterministic output
++$Data::Dumper::Sortkeys = 1;
++
+ # use the system version of a module if present; in theory this could lead to
+ # compatibility problems (if the latest version of one of the dependencies,
+ # installed in @INC is incompatible with the bundled version of a module)
diff -urNad
libalien-wxwidgets-perl.orig/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/series
libalien-wxwidgets-perl/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/series
---
libalien-wxwidgets-perl.orig/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/series
2015-02-22 01:39:51.336517155 +0000
+++
libalien-wxwidgets-perl/libalien-wxwidgets-perl-0.65+dfsg/debian/patches/series
2015-02-22 01:52:17.614466697 +0000
@@ -1,2 +1,3 @@
fix-pod-spelling.patch
wx-config-version.patch
+reproducible_build