Source: tevent 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 and resulting Build ID for various libraries is embedded: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/tevent.html /usr/lib/x86_64-linux-gnu/libtevent.so.0.11.0 /build/1st/tevent-0.11.0/bin/default/../../tevent.c:303 vs. /build/2/tevent-0.11.0/2nd/bin/default/../../tevent.c:303 The attached patch to debian/rules fixes this by passing -ffile-prefix-map via CFLAGS in the dh_auto_configure override. Alternately, updating to use the CFLAGS passed via dh/debhelper would also likely fix this. With this patch applied tevent should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From b07f0c48683e16712d21147feee2d5f85df67d9b Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 7 Mar 2022 00:37:54 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS. Without this, the full path used during the build environment gets embedded in various binaries. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index 856ec0e..a52d533 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,8 @@ else CFLAGS += -O2 endif +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + LDFLAGS += -Wl,--as-needed DESTDIR=$(CURDIR)/debian/tmp -- 2.35.1
signature.asc
Description: PGP signature