Source: gramadoir
Version: 0.7-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that gramadoir could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, gramadoir can be built reproducibly in our reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad gramadoir.orig/gramadoir-0.7/debian/patches/reproducible_build
gramadoir/gramadoir-0.7/debian/patches/reproducible_build
--- gramadoir.orig/gramadoir-0.7/debian/patches/reproducible_build
1970-01-01 01:00:00.000000000 +0100
+++ gramadoir/gramadoir-0.7/debian/patches/reproducible_build 2015-02-21
23:13:17.101266682 +0000
@@ -0,0 +1,11 @@
+--- gramadoir-0.7.orig/Lingua-GA-Gramadoir-0.70/Makefile.PL
++++ gramadoir-0.7/Lingua-GA-Gramadoir-0.70/Makefile.PL
+@@ -37,6 +37,8 @@ sub build_hashes {
+ use Storable;
+ use File::Spec;
+
++ $Storable::canonical = 1;
++
+ my $dir = File::Spec->catfile( 'lib', 'Lingua', 'GA', 'Gramadoir' );
+ my $srcdir = File::Spec->catfile( 'share' );
+
diff -urNad gramadoir.orig/gramadoir-0.7/debian/patches/series
gramadoir/gramadoir-0.7/debian/patches/series
--- gramadoir.orig/gramadoir-0.7/debian/patches/series 1970-01-01
01:00:00.000000000 +0100
+++ gramadoir/gramadoir-0.7/debian/patches/series 2015-02-21
23:13:14.497150555 +0000
@@ -0,0 +1 @@
+reproducible_build