This is an automated email from the git hooks/post-receive script. ntyni pushed a commit to branch master in repository libencode-hanextra-perl.
commit 4229f2d944e03240db1b701b5bc27fbe76def9af Author: Niko Tyni <nt...@debian.org> Date: Thu Jun 4 20:49:30 2015 +0300 Make the build reproducible by sorting hash keys in Makefile.PL. (Closes: #787754) --- ...ild-reproducible-by-sorting-hash-keys-in-.patch | 72 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 73 insertions(+) diff --git a/debian/patches/0001-Make-the-build-reproducible-by-sorting-hash-keys-in-.patch b/debian/patches/0001-Make-the-build-reproducible-by-sorting-hash-keys-in-.patch new file mode 100644 index 0000000..90da2be --- /dev/null +++ b/debian/patches/0001-Make-the-build-reproducible-by-sorting-hash-keys-in-.patch @@ -0,0 +1,72 @@ +From ffaee9c0e01aa0e66a8284948eb98efe4420549f Mon Sep 17 00:00:00 2001 +From: Niko Tyni <nt...@debian.org> +Date: Thu, 4 Jun 2015 20:35:36 +0300 +Subject: [PATCH] Make the build reproducible by sorting hash keys in + Makefile.PL + +Bug-Debian: https://bugs.debian.org/787754 +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=104964 + +--- + Makefile.PL | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 9e6cf51..28b8489 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -79,7 +79,7 @@ sub post_initialize { + my $x = $self->{'OBJ_EXT'}; + + # Add the table O_FILES +- foreach my $e (keys %tables) { ++ foreach my $e (sort keys %tables) { + $o{ $e . $x } = 1; + } + $o{"$name$x"} = 1; +@@ -93,7 +93,7 @@ sub post_initialize { + + # $self->{'H'} = [$self->catfile($self->updir,'encode.h')]; + my %xs; +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + push(@{ $self->{'C'} }, "$table.c"); + + # Do NOT add $table.h etc. to H_FILES unless we own up as to how they +@@ -112,7 +112,7 @@ sub post_initialize { + #define U8 U8 + #include "encode.h" + END +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + print XS qq[#include "${table}.h"\n]; + } + print XS <<"END"; +@@ -141,7 +141,7 @@ PROTOTYPES: DISABLE + BOOT: + { + END +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + print XS qq[#include "${table}.exh"\n]; + } + print XS "}\n"; +@@ -155,13 +155,13 @@ sub postamble { + my $str = + "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; + $str .= "$name.c : $name.xs "; +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + $str .= " $table.c"; + } + $str .= "\n\n"; + $str .= "$name\$(OBJ_EXT) : $name.c\n\n"; + +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + my $numlines = 1; + my $lengthsofar = length($str); + my $continuator = ''; +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series index 92bddfa..9e05efd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ fix-sparse-tw-docs.patch +0001-Make-the-build-reproducible-by-sorting-hash-keys-in-.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libencode-hanextra-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits