Source: kafs-client Severity: normal Tags: patch User: [email protected] Usertags: buildpath X-Debbugs-Cc: [email protected]
The build path is embedded in various binaries or triggers differences in buildid: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/kafs-client.html /usr/libexec/kafs-dns /build/1st/kafs-client-0.5/src/dns_main.c:221 vs. /build/2/kafs-client-0.5/2nd/src/dns_main.c:221 The attached patch to the upstream Makefile fixes this by adding -ffile-prefix-map to CFLAGS. According to my local tests, with this patch applied kafs-client should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining kafs-client! live well, vagrant
From eecef6a737037f42c241d4ffe3a814cdfe94ae08 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Tue, 27 Sep 2022 21:37:47 +0000 Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00fe618..2c28567 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -g -O2 -Wall -Wsign-compare +CFLAGS = -g -O2 -Wall -Wsign-compare -ffile-prefix-map=$(CURDIR)=. MKDIR = mkdir INSTALL = install DESTDIR = -- 2.37.2
signature.asc
Description: PGP signature

