Hello community,

here is the log from the commit of package stressapptest for openSUSE:Factory 
checked in at 2020-06-19 17:26:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/stressapptest (Old)
 and      /work/SRC/openSUSE:Factory/.stressapptest.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "stressapptest"

Fri Jun 19 17:26:24 2020 rev:2 rq:815951 version:1.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/stressapptest/stressapptest.changes      
2018-09-03 10:35:18.924702371 +0200
+++ /work/SRC/openSUSE:Factory/.stressapptest.new.3606/stressapptest.changes    
2020-06-19 17:26:49.336494637 +0200
@@ -1,0 +2,6 @@
+Tue Jun  9 14:09:24 UTC 2020 - Bernhard Wiedemann <bwiedem...@suse.com>
+
+- Add reproducible.patch to override build date (boo#1047218)
+  and to drop build host name (boo#1084909)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ stressapptest.spec ++++++
--- /var/tmp/diff_new_pack.1DkvlU/_old  2020-06-19 17:26:50.472497996 +0200
+++ /var/tmp/diff_new_pack.1DkvlU/_new  2020-06-19 17:26:50.476498007 +0200
@@ -24,6 +24,7 @@
 Group:          System/Benchmark
 URL:            https://github.com/stressapptest/stressapptest
 Source:         
https://github.com/stressapptest/stressapptest/archive/v%{version}.tar.gz
+Patch0:         reproducible.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc-c++
@@ -36,6 +37,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 autoreconf -fvi

++++++ reproducible.patch ++++++
https://github.com/stressapptest/stressapptest/pull/65

>From 39525214f68479a3844960477089d34f29a72596 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedem...@suse.de>
Date: Sun, 9 Sep 2018 05:34:37 +0200
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.
This date call works with all variants of date (GNU,BSD,Solaris).

Also do not capture build user+host in this case
to allow to get the same build results anywhere and anytime.
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index ede7d26..0164878 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,13 @@ timestamp=$(date)
 AC_MSG_CHECKING([current timestamp])
 AC_MSG_RESULT([$timestamp])
 
+if test -n "$SOURCE_DATE_EPOCH"
+then
+  timestamp=$(date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null || date -u -r 
"$SOURCE_DATE_EPOCH" 2>/dev/null || date -u)
+  username=reproducible
+  hostname=reproducible
+fi
+
 AC_DEFINE_UNQUOTED([STRESSAPPTEST_TIMESTAMP],
                    "$username @ $hostname on $timestamp",
                    [Timestamp when ./configure was executed])

Reply via email to