Source: centrifuge Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: hostname timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The time and hostname are embedded in /usr/lib/centrifuge/centrifuge-build-bin: https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/centrifuge.html ionos5-amd64 vs. i-capture-the-hostname Fri·Nov·10·04:07:04·-12·2023 vs. Sat·Oct··8·23:46:23·+14·2022 The attached patch to the upstream Makefile fixes this by setting a place holder value for BUILD_HOST and uses SOURCE_DATE_EPOCH for BUILD_TIME. According to my local tests, with this patch applied, centrifuge should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining centrifuge! live well, vagrant
From 02388806caa80233efa22e874ee1748da3f51109 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 9 Oct 2022 22:22:14 +0000 Subject: [PATCH] Makefile: Use consistent build time and build host. https://reproducible-builds.org/docs/source-date-epoch/ --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 66775a8..e24685e 100644 --- a/Makefile +++ b/Makefile @@ -248,8 +248,8 @@ both-debug: centrifuge-class-debug centrifuge-build-bin-debug DEFS=-fno-strict-aliasing \ -DCENTRIFUGE_VERSION="\"$(GIT_VERSION)\"" \ - -DBUILD_HOST="\"`hostname`\"" \ - -DBUILD_TIME="\"`date`\"" \ + -DBUILD_HOST="\"BUILDHOST\"" \ + -DBUILD_TIME="\"`date --utc --date=@$(SOURCE_DATE_EPOCH) +%F`\"" \ -DCOMPILER_VERSION="\"`$(CXX) -v 2>&1 | tail -1`\"" \ $(FILE_FLAGS) \ $(CFLAGS) \ -- 2.37.2
signature.asc
Description: PGP signature