Source: gerstensaft Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The buildid for /usr/bin/beer varies when built from a different path: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/gerstensaft.html The attached patch to src/Makefile fixes this by adding -ffile-prefix-map to CFLAGS. According to my local tests, with this patch applied, gerstensaft should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining gerstensaft! live well, vagrant
From 9d2ed6cb070220ced710c6453dfae9563082e9ef Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 13 Nov 2022 07:46:46 +0000 Subject: [PATCH] src/Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding the build path. https://reproducible-builds.org/docs/build-path/ --- src/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile b/src/Makefile index d81003e..ce6cc41 100644 --- a/src/Makefile +++ b/src/Makefile @@ -23,6 +23,7 @@ CC = gcc CFLAGS=-g -Wall \ -DG_DISABLE_DEPRECATED \ + -ffile-prefix-map=$(CURDIR)=. GTK_CFLAGS=$(shell pkg-config gtk+-2.0 --cflags) -- 2.38.1
signature.asc
Description: PGP signature