Hello community, here is the log from the commit of package lifelines for openSUSE:Factory checked in at 2020-06-12 21:43:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lifelines (Old) and /work/SRC/openSUSE:Factory/.lifelines.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lifelines" Fri Jun 12 21:43:58 2020 rev:32 rq:814102 version:3.1.1+3ad4571 Changes: -------- --- /work/SRC/openSUSE:Factory/lifelines/lifelines.changes 2020-04-08 19:55:44.317081971 +0200 +++ /work/SRC/openSUSE:Factory/.lifelines.new.3606/lifelines.changes 2020-06-12 21:45:17.448473594 +0200 @@ -1,0 +2,5 @@ +Tue Jun 9 12:14:29 UTC 2020 - Bernhard Wiedemann <[email protected]> + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lifelines.spec ++++++ --- /var/tmp/diff_new_pack.BMJ3LR/_old 2020-06-12 21:45:19.776479058 +0200 +++ /var/tmp/diff_new_pack.BMJ3LR/_new 2020-06-12 21:45:19.780479067 +0200 @@ -31,6 +31,8 @@ Patch0: lifelines-%{commit}.dif # PATCH-FIX-SUSE avoid memory leak as well as no initialized array Patch1: lifelines-%{commit}-array.dif +# PATCH-FIX-UPSTREAM https://github.com/lifelines/lifelines/pull/389 +Patch2: reproducible.patch BuildRequires: automake BuildRequires: bison BuildRequires: dblatex @@ -73,6 +75,7 @@ tar -x --strip-components=1 -z -f %{SOURCE0} %patch0 -p0 -b .p0 %patch1 -p0 -b .p1 +%patch2 -p1 -b .p2 %build if test $(getconf LONG_BIT) -gt 32 ++++++ reproducible.patch ++++++ https://github.com/lifelines/lifelines/pull/389 >From 68666c90ba645c08ed3ee7a565ee3951ac43539c Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Fri, 6 Dec 2019 18:48:40 +0100 Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. 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. Also switch to UTC to be independent of timezone. Also use ISO 8601 date format to be easier to parse. This also avoids use of %b that can vary from locales. This PR was done while working on reproducible builds for openSUSE. --- reports/gen_index | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reports/gen_index b/reports/gen_index index 0343f87b..2ae4fe84 100644 --- a/reports/gen_index +++ b/reports/gen_index @@ -5,6 +5,7 @@ # January 2003 use strict; +use POSIX qw(strftime); my $debug = 0; #non-zero to enable debug output my $viewoutput = 0; #non-zero to enable printing output information @@ -93,7 +94,7 @@ have text identifying the person who generated the report. EOF } sub print_trailer { - my $today = `date "+%d %b %Y"`; + my $today = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || time)); print OUT <<EOF </DL> <center>
