Source: dbview Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path is embedded in /usr/bin/dbview: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/dbview.html /build/1st/dbview-1.0.4/dbview.c:62 vs. /build/2/dbview-1.0.4/2nd/dbview.c:62 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, dbview should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining dbview! live well, vagrant
From 01ccb621098567fd523af9a892cd77384f870fe0 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sat, 8 Oct 2022 21:16:04 +0000 Subject: [PATCH 3/3] 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 ffa401f..3b7a265 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ MANO=man MANG=man CC= gcc -CFLAGS= -g -O6 -fomit-frame-pointer -Wall -pipe +CFLAGS= -g -O6 -fomit-frame-pointer -Wall -pipe -ffile-prefix-map=$(CURDIR)=. # CFLAGS= -g -fomit-frame-pointer -Wall -pipe # Look where your install program is -- 2.37.2
signature.asc
Description: PGP signature