svn commit: r383762 - in head/devel/p5-Module-Build: . files

Mathieu Arnold mat at FreeBSD.org
Fri Apr 10 20:53:47 UTC 2015


Author: mat
Date: Fri Apr 10 20:53:45 2015
New Revision: 383762
URL: https://svnweb.freebsd.org/changeset/ports/383762

Log:
  Add a patch to make Module::Build builds more reproducibles.
  
  Obtained from:	Jérémy Bobbio
  Sponsored by:	Absolight

Added:
  head/devel/p5-Module-Build/files/
  head/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm   (contents, props changed)
Modified:
  head/devel/p5-Module-Build/Makefile

Modified: head/devel/p5-Module-Build/Makefile
==============================================================================
--- head/devel/p5-Module-Build/Makefile	Fri Apr 10 20:33:49 2015	(r383761)
+++ head/devel/p5-Module-Build/Makefile	Fri Apr 10 20:53:45 2015	(r383762)
@@ -7,6 +7,7 @@
 
 PORTNAME=	Module-Build
 PORTVERSION=	0.4211
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-

Added: head/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Module-Build/files/patch-lib_Module_Build_Dumper.pm	Fri Apr 10 20:53:45 2015	(r383762)
@@ -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 at 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; }')
+ }
+ 


More information about the svn-ports-head mailing list