Source: xvier Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
When the build path differs it results in a different buildid in /usr/games/xvier*: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/xvier.html The attached patch to debian/rules fixes this by adding -ffile-prefix-map to CFLAGS. According to my local tests, with this patch applied xvier should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining xvier! live well, vagrant
From a0f90b9905671ca1dcf5aed9c41af76f99ee00cc Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 27 Sep 2022 19:45:45 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS to avoid embedding the build path. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 45388d2..c7e4544 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,9 @@ ifeq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" "" CFLAGS += -O2 endif +# Avoid embedding build path for reproducible builds +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + build: xvier debian/rules xvier: xvier.c xmkmf -- 2.37.2
signature.asc
Description: PGP signature