Source: nwall 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/nwall: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/nwall.html /build/1st/nwall-1.32+debian/src/nwall.c:65 vs. /build/2/nwall-1.32+debian/2nd/src/nwall.c:65 The attached patch fixes this by adding -ffile-prefix-map to CFLAGS in debian/rules, which avoids embedding the absolute build path. Alternately, switching to use a newer debhelper compat level and the dh build system would likely also fix this, as it includes -ffile-prefix-map by default. With this patch applied, nwall should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From c5fa3d56c8c43cebc37ec635f05cf62a810c573f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 23 May 2022 23:00:09 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS. --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index c88d7b5..69e5a1d 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,9 @@ else CFLAGS += -O2 endif +# Avoid embedding the build path +CFLAGS += -ffile-prefix-map=$(CURDIR)=. + config.status: configure dh_testdir cp -f /usr/share/misc/config.sub config.sub -- 2.36.1
signature.asc
Description: PGP signature