Add a patch to make Module::Build builds more reproducibles.

Obtained from:	Jérémy Bobbio
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-04-10 20:53:45 +00:00
parent d94e7c7694
commit e566d17e80
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383762
2 changed files with 17 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= Module-Build
PORTVERSION= 0.4211
PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View file

@ -0,0 +1,16 @@
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>
--- lib/Module/Build/Dumper.pm
+++ 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; }')
}