Source: yaku-ns 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/yaku-ns.html /usr/sbin/yaku-getzone /build/1st/yaku-ns-0.2/getzone.c:42 vs. /build/2/yaku-ns-0.2/2nd/getzone.c:42 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 yaku-ns should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining yaku-ns! live well, vagrant
From d771542268dfb09c19cb5da8ca19a28cc39022e4 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Tue, 27 Sep 2022 22:21: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 4b00ae3..c63e301 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ .SUFFIXES: .c .o SHELL= /bin/sh -CFLAGS= -W -Wall -O2 -g +CFLAGS= -W -Wall -O2 -g -ffile-prefix-map=$(CURDIR)=. AR=/usr/bin/ar INSTALL= /usr/bin/install -- 2.37.2
signature.asc
Description: PGP signature

