Source: cldump 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/cldump: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/cldump.html /build/1st/cldump-0.11~dfsg/src/cldump.c:180 vs. /build/2/cldump-0.11~dfsg/2nd/src/cldump.c:180 The attached patch fixes this by explicitly passing CFLAGS to dh_auto_build in debian/rules, which includes flags to avoid embedding the build path. With this patch applied, cldump should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From e65c0a4b1a6bb623feddd15e7ec0fda53dbd7422 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 5 Jul 2022 19:46:11 +0000 Subject: [PATCH] debian/rules: Pass CFLAGS via dh_auto_build override. src/Makefile sets CFLAGS explicitly, ignoring CFLAGS from the environment. This means various default flags are otherwise ignored, e.g. -ffile-prefix-map which is used to avoid embedding build paths for reproducible builds. --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 5b70f17..f12e8a3 100755 --- a/debian/rules +++ b/debian/rules @@ -6,3 +6,6 @@ %: dh $@ --sourcedirectory=src --buildsystem=makefile + +override_dh_auto_build: + dh_auto_build --sourcedirectory=src --buildsystem=makefile -- CFLAGS="$(CFLAGS)" -- 2.36.1
signature.asc
Description: PGP signature