diff --git a/devel/p5-Module-Build/Makefile b/devel/p5-Module-Build/Makefile index 1fd669c176a7..dcd96febcee3 100644 --- a/devel/p5-Module-Build/Makefile +++ b/devel/p5-Module-Build/Makefile @@ -7,6 +7,7 @@ PORTNAME= Module-Build PORTVERSION= 0.4211 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm b/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm new file mode 100644 index 000000000000..83ca9b004575 --- /dev/null +++ b/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm @@ -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 + +--- 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; }') + } +