Subject: | current year in copyright |
When building distribution packages (e.g. for openSUSE Linux)
of software like Goo::Canvas that use Glib::GenPod,
it includes the current year in copyright lines
which makes it hard to (re)build identical packages at any time.
Apart from that, it will also generate lines like "Copyright 2019" for software that was not touched since today by any author, which is somewhat questionable from a legal perspective.
Subject: | reproducible.patch |
Allow to override current time in generated man-pages
to make it easy to build distribution packages of software like Goo::Canvas
in a reproducible way
See https://reproducible-builds.org/ for why this matters
and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable
Index: Glib-1.325/lib/Glib/GenPod.pm
===================================================================
--- Glib-1.325.orig/lib/Glib/GenPod.pm
+++ Glib-1.325/lib/Glib/GenPod.pm
@@ -40,7 +40,7 @@ our @EXPORT = qw(
our $COPYRIGHT = undef;
our $AUTHORS = 'Gtk2-Perl Team';
our $MAIN_MOD = undef;
-our $YEAR = strftime "%Y", gmtime;
+our $YEAR = strftime "%Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time);
our ($xspods, $data);