Source: liblingua-en-tagger-perl Version: 0.24-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: randomness X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that liblingua-en-tagger-perl doesn't build reproducibly. Two files that are generated during build are unsorted. The attached patch fixes this by telling nstore to produce sorted output. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/use-nstore-for-datafiles b/debian/patches/use-nstore-for-datafiles index b485837..46b108c 100644 --- a/debian/patches/use-nstore-for-datafiles +++ b/debian/patches/use-nstore-for-datafiles @@ -6,15 +6,17 @@ Last-Update: 2012-05-26 --- a/Makefile.PL +++ b/Makefile.PL -@@ -33,7 +33,7 @@ +@@ -33,8 +33,9 @@ sub install { - use Storable; + use Storable qw/nstore/; use File::Spec; ++ $Storable::canonical = 1; my $lex_dir = 'Tagger'; my $word_path = File::Spec->catfile( $lex_dir, 'pos_words.hash' ); + my $tag_path = File::Spec->catfile( $lex_dir, 'pos_tags.hash' ); @@ -44,8 +44,8 @@ _load_tags( File::Spec->catfile( $lex_dir, 'tags.yml' ) ); _load_words( File::Spec->catfile( $lex_dir, 'words.yml' ) );
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds