- Update to v1.0.11 * Bugfixes and compiler compatibility updates. * LoongArch, MIPS support * aarch64 vector instruction support - removed patch stressapptest-cstdint.patch as included in upstream OBS-URL: https://build.opensuse.org/request/show/1128965 OBS-URL: https://build.opensuse.org/package/show/hardware/stressapptest?expand=0&rev=12
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
https://github.com/stressapptest/stressapptest/pull/65
|
|
|
|
From 39525214f68479a3844960477089d34f29a72596 Mon Sep 17 00:00:00 2001
|
|
From: "Bernhard M. Wiedemann" <bwiedemann@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(+)
|
|
|
|
Index: stressapptest-1.0.11/configure.ac
|
|
===================================================================
|
|
--- stressapptest-1.0.11.orig/configure.ac
|
|
+++ stressapptest-1.0.11/configure.ac
|
|
@@ -110,6 +110,13 @@ then
|
|
hostname=reproducible
|
|
fi
|
|
|
|
+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])
|