Subject: | build results differ from timestamp |
While working on reproducible builds for openSUSE, I found that our perl-Term-Size-Perl package differed for every build.
This can be fixed with the below patch, but it might be even better to just drop that line.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
--- Term-Size-Perl-0.031.orig/inc/Probe.pm
+++ Term-Size-Perl-0.031/inc/Probe.pm
@@ -105,7 +105,7 @@ my $PARAMS_TEMPLATE = <<PARAMS;
package Term::Size::Perl::Params;
-# created @{[scalar localtime]}
+# created @{[scalar gmtime($ENV{SOURCE_DATE_EPOCH}||time)]}
use vars qw(\$VERSION);
\$VERSION = '@{[MM->parse_version('Perl.pm')]}';