Source: libterm-size-perl-perl
Version: 0.029-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that libterm-size-perl-perl could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, libterm-size-perl-perl can be built reproducibly in our current
reproducible
toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad 
libterm-size-perl-perl.orig/libterm-size-perl-perl-0.029/debian/patches/reproducible_build.patch
 
libterm-size-perl-perl/libterm-size-perl-perl-0.029/debian/patches/reproducible_build.patch
--- 
libterm-size-perl-perl.orig/libterm-size-perl-perl-0.029/debian/patches/reproducible_build.patch
    1970-01-01 01:00:00.000000000 +0100
+++ 
libterm-size-perl-perl/libterm-size-perl-perl-0.029/debian/patches/reproducible_build.patch
 2015-02-12 22:54:21.273756396 +0000
@@ -0,0 +1,11 @@
+--- libterm-size-perl-perl-0.029.orig/inc/Probe.pm
++++ libterm-size-perl-perl-0.029/inc/Probe.pm
+@@ -105,7 +105,7 @@ my $PARAMS_TEMPLATE = <<PARAMS;
+ 
+ package Term::Size::Perl::Params; 
+ 
+-# created @{[scalar localtime]}
++# created @{[`dpkg-parsechangelog --show-field Date`]}
+ 
+ use vars qw(\$VERSION);
+ \$VERSION = @{[MM->parse_version('Perl.pm')]};
diff -urNad 
libterm-size-perl-perl.orig/libterm-size-perl-perl-0.029/debian/patches/series 
libterm-size-perl-perl/libterm-size-perl-perl-0.029/debian/patches/series
--- 
libterm-size-perl-perl.orig/libterm-size-perl-perl-0.029/debian/patches/series  
    2015-02-12 22:28:55.667282334 +0000
+++ libterm-size-perl-perl/libterm-size-perl-perl-0.029/debian/patches/series   
2015-02-12 23:01:04.627351493 +0000
@@ -1,2 +1,3 @@
 fix_spelling.patch
 manpage_has_bad_whatis_entry.patch
+reproducible_build.patch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to