This is an automated email from the git hooks/post-receive script. ntyni pushed a commit to branch master in repository libmarc-charset-perl.
commit 4fadd3184aea39d89fff13f02ce2c089613f989b Author: Niko Tyni <nt...@debian.org> Date: Fri Aug 28 11:39:48 2015 +0300 Store the generated character mapping database in a reproducible way The $Storable::canonical setting makes Storable sort hashes by their key when storing them. This makes the generated table reproducible between builds. --- ...enerated-character-mapping-database-in-a-.patch | 30 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 31 insertions(+) diff --git a/debian/patches/0001-Store-the-generated-character-mapping-database-in-a-.patch b/debian/patches/0001-Store-the-generated-character-mapping-database-in-a-.patch new file mode 100644 index 0000000..256158e --- /dev/null +++ b/debian/patches/0001-Store-the-generated-character-mapping-database-in-a-.patch @@ -0,0 +1,30 @@ +From d4abae7e6193bfda67526994c03a02679b2c364d Mon Sep 17 00:00:00 2001 +From: Niko Tyni <nt...@debian.org> +Date: Fri, 28 Aug 2015 11:39:48 +0300 +Subject: [PATCH] Store the generated character mapping database in a + reproducible way + +The $Storable::canonical setting makes Storable sort hashes by their +key when storing them. This makes the generated table reproducible +between builds. +--- + lib/MARC/Charset/Table.pm | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/MARC/Charset/Table.pm b/lib/MARC/Charset/Table.pm +index e23e70f..40e190e 100644 +--- a/lib/MARC/Charset/Table.pm ++++ b/lib/MARC/Charset/Table.pm +@@ -38,6 +38,9 @@ BEGIN { + @AnyDBM_File::ISA = qw(GDBM_File DB_File NDBM_File ODBM_File SDBM_File); + # SDBM_File is last on the list because it produces the largest database + # on disk. ++ ++ $Storable::canonical = 1; ++ # try to keep the generated database reproducible + } + use AnyDBM_File; + use MARC::Charset::Code; +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..04e573b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Store-the-generated-character-mapping-database-in-a-.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmarc-charset-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