Source: ipsvd Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The buildid differs when built from a different path for various binaries in /usr/bin: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ipsvd.html The attached patch to debian/rules fixes this by adding -ffile-prefix-map to CFLAGS. Switching to dh and a recent debhelper compat level might also solve this problem. According to my local tests, with this patch applied, ipsvd should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining ipsvd! live well, vagrant
From 7310c68df7db93c4b837e18e70cebfde1a60f9ae Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Wed, 16 Nov 2022 23:30:03 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index f3d69a5..97ec522 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,7 @@ ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) STRIP =: nostrip endif -CFLAGS =-g -O2 -Wall +CFLAGS =-g -O2 -Wall -ffile-prefix-map=$(CURDIR)=. LDFLAGS =-Os CC =gcc ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS))) -- 2.38.1
signature.asc
Description: PGP signature