Hello community, here is the log from the commit of package multus for openSUSE:Factory checked in at 2020-07-08 19:17:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/multus (Old) and /work/SRC/openSUSE:Factory/.multus.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "multus" Wed Jul 8 19:17:52 2020 rev:3 rq:819381 version:3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/multus/multus.changes 2019-10-27 13:41:33.157305957 +0100 +++ /work/SRC/openSUSE:Factory/.multus.new.3060/multus.changes 2020-07-08 19:18:18.584055569 +0200 @@ -1,0 +2,5 @@ +Wed Jul 8 03:41:05 UTC 2020 - Bernhard Wiedemann <[email protected]> + +- Add multus-override-build-date.patch to override build date (boo#1047218) + +------------------------------------------------------------------- New: ---- multus-override-build-date.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ multus.spec ++++++ --- /var/tmp/diff_new_pack.CJ1E9I/_old 2020-07-08 19:18:20.428055337 +0200 +++ /var/tmp/diff_new_pack.CJ1E9I/_new 2020-07-08 19:18:20.432055337 +0200 @@ -27,6 +27,7 @@ Url: https://github.com/intel/multus-cni Source: %{name}-%{version}.tar.xz Patch0: 0001-build-Allow-to-define-VERSION-and-COMMIT-without-git.patch +Patch1: multus-override-build-date.patch BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.8 ++++++ multus-override-build-date.patch ++++++ https://github.com/intel/multus-cni/pull/534 >From 29df24fa6c555cbfa39fe17c0070afa815dc2bbf Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Wed, 8 Jul 2020 05:05:52 +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 only works with GNU date. Also use UTC to be independent of timezone. --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 882a23e5..60b5d040 100755 --- a/build +++ b/build @@ -19,7 +19,7 @@ if [ -z "$VERSION" ]; then fi set -e fi -DATE=$(date --iso-8601=seconds) +DATE=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" --iso-8601=seconds) COMMIT=${COMMIT:-$(git rev-parse --verify HEAD)} LDFLAGS="-X main.version=${VERSION:-master} -X main.commit=${COMMIT} -X main.date=${DATE}" export CGO_ENABLED=0
