[libmodule-build-perl] 01/08: Add a patch to output data in stable order to make builds reproducible

dod at debian.org dod at debian.org
Wed May 20 12:42:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libmodule-build-perl.

commit 09507e6feed527e29941a3ecdbec69caa5340016
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Jan 8 15:51:29 2015 +0100

    Add a patch to output data in stable order to make builds reproducible
    
    Closes: #774869
---
 debian/patches/output-data-in-stable-order.patch | 16 ++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/output-data-in-stable-order.patch b/debian/patches/output-data-in-stable-order.patch
new file mode 100644
index 0000000..d23855d
--- /dev/null
+++ b/debian/patches/output-data-in-stable-order.patch
@@ -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>
+
+--- 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; }')
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4218d4a..56c0760 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 man-ext
 0001-Allow-loading-from-system-path-when-running-under-au.patch
+output-data-in-stable-order.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmodule-build-perl.git



More information about the Pkg-perl-cvs-commits mailing list