[libparse-recdescent-perl] 01/07: Add patch to make builds reproducible.

gregor herrmann gregoa at debian.org
Fri May 1 15:04:21 UTC 2015


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

gregoa pushed a commit to branch master
in repository libparse-recdescent-perl.

commit fd4c3850019417bd12fc143a5bb97bd2aed5b6b3
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri May 1 16:58:02 2015 +0200

    Add patch to make builds reproducible.
    
    Thanks: Reiner Herrmann for the bug report and the patch.
    Closes: #778575
---
 debian/patches/reproducible_grammar.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/reproducible_grammar.patch b/debian/patches/reproducible_grammar.patch
new file mode 100644
index 0000000..c44276b
--- /dev/null
+++ b/debian/patches/reproducible_grammar.patch
@@ -0,0 +1,27 @@
+Description: produce reproducible grammar files
+Bug-Debian: https://bugs.debian.org/778575
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=102160
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=102160
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-05-01
+
+--- a/lib/Parse/RecDescent.pm
++++ b/lib/Parse/RecDescent.pm
+@@ -144,6 +144,7 @@
+     print OUT "my ";
+ 
+     require Data::Dumper;
++    $Data::Dumper::Sortkeys = 1;
+     $code = Data::Dumper->Dump([$self], [qw(self)]);
+     if ($opt{-standalone}) {
+         $code =~ s/Parse::RecDescent/$runtime_package/gs;
+@@ -3082,7 +3083,7 @@
+     $self->{"startcode"} = '';
+ 
+     my $rule;
+-    foreach $rule ( values %{$self->{"rules"}} )
++    foreach $rule ( sort { $a->{name} cmp $b->{name} } values %{$self->{"rules"}} )
+     {
+         if ($rule->{"changed"})
+         {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d2c4421
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible_grammar.patch

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



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