a2ps/reproducible.patch
Dr. Werner Fink 16ff102db5 Accepting request 623107 from home:bmwiedemann:branches:Publishing
Add reproducible.patch to fix build date (boo#1047218)
- Run build non-parallelized and with make -B because of
  poorly specified make build dependencies to make build reproducible

OBS-URL: https://build.opensuse.org/request/show/623107
OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=71
2018-07-16 10:34:50 +00:00

14 lines
492 B
Diff

Index: a2ps-4.14/man/help2man
===================================================================
--- a2ps-4.14.orig/man/help2man
+++ a2ps-4.14/man/help2man
@@ -164,7 +164,7 @@ my ($help_text, $version_text) = map {
or die "$this_program: can't get `--$_' info from $ARGV[0]\n"
} qw(help version);
-my $date = strftime "%B %Y", localtime;
+my $date = strftime "%B %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time);
(my $program = $ARGV[0]) =~ s!.*/!!;
my $package = $program;
my $version;