Source: bplay 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/bplay: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/bplay.html /build/1st/bplay-0.991/bplay.c:111 vs. /build/2/bplay-0.991/2nd/bplay.c:111 The attached patch to debian/rules fixes this by adding -ffile-prefix-map to CFLAGS. According to my local tests, with this patch applied, bplay should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining bplay! live well, vagrant
From 7a2950b0734809ceab2ce3f578f775aa23699049 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 27 Sep 2022 22:28:11 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 6d0aca4..299e8c2 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,9 @@ CFLAGS = -Wall -g +# Avoid embedding the build path for reproducible builds +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 -- 2.37.2
signature.asc
Description: PGP signature