From 80f9a1053d5d30d9450d01621e12f1ce54008c6da0ee31109b18eb2ba375b140 Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Mon, 1 Aug 2022 08:35:47 +0000 Subject: [PATCH] Accepting request 991956 from home:coolo:branches:devel:libraries:c_c++ - Fix reproducible build problems: - Do not use %release in binaries (but use SOURCE_DATE_EPOCH) - Fix date call messed up by spec-cleaner OBS-URL: https://build.opensuse.org/request/show/991956 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=154 --- libgcrypt.changes | 7 +++++++ libgcrypt.spec | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libgcrypt.changes b/libgcrypt.changes index a4b4595..c8c7d4c 100644 --- a/libgcrypt.changes +++ b/libgcrypt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 1 07:27:35 UTC 2022 - Stephan Kulow + +- Fix reproducible build problems: + - Do not use %release in binaries (but use SOURCE_DATE_EPOCH) + - Fix date call messed up by spec-cleaner + ------------------------------------------------------------------- Tue Feb 1 11:28:51 UTC 2022 - Pedro Monreal diff --git a/libgcrypt.spec b/libgcrypt.spec index 56f1f25..65b5a93 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -179,11 +179,11 @@ understanding of applied cryptography is required to use Libgcrypt. %build echo building with build_hmac256 set to %{build_hmac256} autoreconf -fi -date=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99}) +date=$(date -u '+%%Y-%%m-%%dT%%H:%%M+0000' -r %{SOURCE99}) sed -e "s,BUILD_TIMESTAMP=.*,BUILD_TIMESTAMP=$date," -i configure export CFLAGS="%{optflags} $(getconf LFS_CFLAGS)" %configure \ - --with-fips-module-version="Libgcrypt version %{version}-%{release}" \ + --with-fips-module-version="Libgcrypt version %{version}-$SOURCE_DATE_EPOCH" \ --enable-noexecstack \ --disable-static \ --enable-m-guard \