Your message dated Fri, 01 May 2015 16:11:47 +0000
with message-id <[email protected]>
and subject line Bug#778575: fixed in libparse-recdescent-perl 1.967009+dfsg-2
has caused the Debian Bug report #778575,
regarding libparse-recdescent-perl: please enable reproducible builds
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
778575: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778575
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libparse-recdescent-perl
Version: 1.967009+dfsg-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain randomness
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=102160

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that libparse-recdescent-perl produces grammar files with
elements in random order, which results in other packages being
unreproducible.

The attached patch, which I have already forwarded upstream,
fixes this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible_grammar.patch b/debian/patches/reproducible_grammar.patch
new file mode 100644
index 0000000..3404321
--- /dev/null
+++ b/debian/patches/reproducible_grammar.patch
@@ -0,0 +1,25 @@
+Author: Reiner Herrmann <[email protected]>
+Description: produce reproducible grammar files
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=102160
+
+Index: libparse-recdescent-perl-1.967009+dfsg/lib/Parse/RecDescent.pm
+===================================================================
+--- libparse-recdescent-perl-1.967009+dfsg.orig/lib/Parse/RecDescent.pm
++++ libparse-recdescent-perl-1.967009+dfsg/lib/Parse/RecDescent.pm
+@@ -144,6 +144,7 @@ sub Precompile
+     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 @@ local \$SIG{__WARN__} = sub {0};
+     $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

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: libparse-recdescent-perl
Source-Version: 1.967009+dfsg-2

We believe that the bug you reported is fixed in the latest version of
libparse-recdescent-perl, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <[email protected]> (supplier of updated 
libparse-recdescent-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 01 May 2015 17:03:19 +0200
Source: libparse-recdescent-perl
Binary: libparse-recdescent-perl
Architecture: source all
Version: 1.967009+dfsg-2
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <[email protected]>
Changed-By: gregor herrmann <[email protected]>
Description:
 libparse-recdescent-perl - Perl module to create and use recursive-descent 
parsers
Closes: 778575
Changes:
 libparse-recdescent-perl (1.967009+dfsg-2) unstable; urgency=low
 .
   [ Salvatore Bonaccorso ]
   * Change Vcs-Git to canonical URI (git://anonscm.debian.org)
   * Change search.cpan.org based URIs to metacpan.org based URIs
 .
   [ gregor herrmann ]
   * Update debian/repack.stub.
 .
   [ Salvatore Bonaccorso ]
   * Update Vcs-Browser URL to cgit web frontend
 .
   [ gregor herrmann ]
   * Add patch to make builds reproducible. Thanks to Reiner Herrmann for
     the bug report and the patch. (Closes: #778575)
   * Update years of packaging copyright.
   * Declare compliance with Debian Policy 3.9.6.
   * Mark package as autopkgtest-able.
   * Explicitly build-depend on libmodule-build-perl.
Checksums-Sha1:
 4257f61577dd4e0d914631bdee236332106779a3 2484 
libparse-recdescent-perl_1.967009+dfsg-2.dsc
 430fe991001589270b841d5de5f589386ceecffb 8972 
libparse-recdescent-perl_1.967009+dfsg-2.debian.tar.xz
 601f3ba2c3bb3f2e037a5bd9c4c06c7e25267b5d 155926 
libparse-recdescent-perl_1.967009+dfsg-2_all.deb
Checksums-Sha256:
 d8cf522d8a6734933f408bcc350c9d7c1d45ca0aabcaf8481b302d823f2b8253 2484 
libparse-recdescent-perl_1.967009+dfsg-2.dsc
 77a67536d730eea4c26cc56605bcd82580dbfffa707498144818590ae124ff7d 8972 
libparse-recdescent-perl_1.967009+dfsg-2.debian.tar.xz
 9e28d4729d2b1bb598203bc8381cec6275c16ceeb08380620eedf3b2b12544cc 155926 
libparse-recdescent-perl_1.967009+dfsg-2_all.deb
Files:
 b030a9de65127552cc807c89d4eae361 2484 perl optional 
libparse-recdescent-perl_1.967009+dfsg-2.dsc
 2431d596ad66a869f70946f12b9a2226 8972 perl optional 
libparse-recdescent-perl_1.967009+dfsg-2.debian.tar.xz
 3f2c0222ade1879c1dd29dfac35754ee 155926 perl optional 
libparse-recdescent-perl_1.967009+dfsg-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJVQ5XOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREMUUxMzE2RTkzQTc2MEE4MTA0RDg1RkFC
QjNBNjgwMTg2NDlBQTA2AAoJELs6aAGGSaoGLFwQAKglRncFq+o4SX932R5ZVspE
QQsWDT60PPYs2ygEuVzDDkBFS6oAcjUNeXBdaw7Jd5X9HcUJe4JQRQfc0x5RUatf
3VH2/M2Mrr3vGdX7SUNDjzyvankung0aDHgq0N3riv3YsCdiAujekDY6NsqbWg7K
q8y1ELdKKSbdJrN5dZgkj9OROmk2os3oIesA8XqmeOlkV6c+b+jdvnKvPr3vZsl4
TIA/+R2ZTwX3wNf1IRQkRsiW0rYg3Xu/ANzc/+JHMaZKbLbzSl5DLqiJ0iKSN+8E
S/NQ7/p8SNIqOFpM6fxcC03iwNjvovdayzCoC+2HlnCfPaGytEjgVuDZBxwsoYth
KbWOBa64r6vWOrjPvTdTQtLVqIUk07Ee3uKQ20g4OcqFo2sYAbRe6qUn4Rr8jqlF
wilvSySiyTd7EvL8q14Vn42sI898Noe4Gvbwekr6rtr5ZfUGKjgGgO/fvapvbGtj
QW1a38mGwNCpX99ipsZ5Hdnipdqj1/dIRTj5wYtA6dP8i460cQoNgnxMPRbc3Fgl
sZd8CQAe3augS46T2fFTWPeeuVmuB1LYKoh+juZKxkQqvhbDN41Jc8v37MUpmxCJ
3Ml5M2hmDvie0v4Lqo8cdLmUS6at8iRvWhgw6DHEOkNMd/lNXjLtcD+bvljHQ8AG
SFm3sT4P4e7dR7tgqqvA
=VztD
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to