Hello community, here is the log from the commit of package opa-fm for openSUSE:Factory checked in at 2018-07-17 09:42:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opa-fm (Old) and /work/SRC/openSUSE:Factory/.opa-fm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "opa-fm" Tue Jul 17 09:42:01 2018 rev:11 rq:622967 version:10.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/opa-fm/opa-fm.changes 2018-06-20 15:26:22.256929175 +0200 +++ /work/SRC/openSUSE:Factory/.opa-fm.new/opa-fm.changes 2018-07-17 09:43:14.681103756 +0200 @@ -1,0 +2,5 @@ +Sat Jul 14 06:14:17 UTC 2018 - bwiedemann@suse.com + +- Add reproducible.patch to fix build date (boo#1047218) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opa-fm.spec ++++++ --- /var/tmp/diff_new_pack.T0Gjql/_old 2018-07-17 09:43:15.197101864 +0200 +++ /var/tmp/diff_new_pack.T0Gjql/_new 2018-07-17 09:43:15.197101864 +0200 @@ -32,6 +32,7 @@ Source1: %{name}-rpmlintrc Patch1: opa-fm-Fallback-to-custom-vendor-if-os_vendor-fails.patch Patch2: opa-fm-use-RPM_OPT_FLAGS.patch +Patch3: reproducible.patch BuildRequires: gcc-c++ BuildRequires: infiniband-diags-devel BuildRequires: libexpat-devel @@ -55,6 +56,7 @@ %setup -q -n %{name}-%{version}%{git_ver} %patch1 %patch2 +%patch3 -p1 %build export RPM_OPT_FLAGS ++++++ reproducible.patch ++++++ https://github.com/01org/opa-fm/pull/9 https://bugzilla.opensuse.org/show_bug.cgi?id=1047218 commit 8b1b100a34f6a03ab719fa0602f60b97be05ec9b Author: Bernhard M. Wiedemann <bwiedemann@suse.de> Date: Mon Jul 24 07:50:23 2017 +0200 Use SOURCE_DATE_EPOCH to override build date to make reproducible builds of opa-fm packages easier e.g. for openSUSE 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. diff --git a/MakeTools/prep.sh b/MakeTools/prep.sh index c0a4bd1..c4b7fec 100755 --- a/MakeTools/prep.sh +++ b/MakeTools/prep.sh @@ -81,7 +81,10 @@ then exit 1 fi -DATE=${DATE:-"`date +'%m/%d/%y %H:%M'`"} +DATE_FMT='%m/%d/%y %H:%M' +[ -z "$SOURCE_DATE_EPOCH" ] ||\ + DATE=${DATE:-"`date -u -d@$SOURCE_DATE_EPOCH "+$DATE_FMT"`"} +DATE=${DATE:-"`date "+$DATE_FMT"`"} if [ "$#" = 1 ] then
participants (1)
-
root