Source: tmpreaper 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/sbin/tmpreaper: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/tmpreaper.html /build/1st/tmpreaper-1.6.17/tmpreaper.c:752 vs. /build/2/tmpreaper-1.6.17/2nd/tmpreaper.c:752 The attached patch fixes this by passing the -ffile-prefix-map argument via CFLAGS in debian/rules. Another option that *might* fix this and other issues would be to fully switch to dh and a recent debhelper compat level. With this patch applied tmpreaper should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining tmpreaper! live well, vagrant
From 2595a8d2a0a4dfe496b44f5f45200d7131d06cf9 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sat, 24 Sep 2022 20:05:03 +0000 Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS to avoid embedding the build directory. 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 e106bb2..911e331 100755 --- a/debian/rules +++ b/debian/rules @@ -40,7 +40,7 @@ build: build-stamp build-stamp: dh_testdir ./configure --prefix=/usr --mandir=/usr/share/man - make CPPFLAGS="-DDEBIAN" tmpreaper + make CFLAGS="-ffile-prefix-map=$(CURDIR)=." CPPFLAGS="-DDEBIAN" tmpreaper ./tmpreaper -h 2>&1 | grep 'tmpreaper -- Version: '$(debian_version)-DEB || (echo "You forgot to fix the VERSION in configure.ac!"; exit 1) touch build-stamp -- 2.37.2
signature.asc
Description: PGP signature