Subject: | Reproducible build fix |
Hello,
As per <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785708> please find a patch from the Debian reproducible builds effort1[1] attached which enables this package to be rebuilt without changes.
[1] <https://wiki.debian.org/ReproducibleBuilds>
Thanks,
Dominci.
Subject: | output-data-in-stable-order.patch |
Description: output data in a stable order
In order to make builds reproducible, we sort keys when dumping
data.
Author: Jérémy Bobbio <lunar@debian.org>
--- libmodule-build-perl-0.421000.orig/lib/Module/Build/Dumper.pm
+++ libmodule-build-perl-0.421000/lib/Module/Build/Dumper.pm
@@ -12,7 +12,7 @@ use Data::Dumper;
sub _data_dump {
my ($self, $data) = @_;
return ("do{ my "
- . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Dump()
+ . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Sortkeys(1)->Dump()
. '$x; }')
}