Debian Bug report logs -
#1014426
cldump: reproducible-builds: embedded build paths in /usr/bin/cldump
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1014426; Package src:cldump.
(Tue, 05 Jul 2022 19:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>.
(Tue, 05 Jul 2022 19:57:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: cldump
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@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
[0001-debian-rules-Pass-CFLAGS-via-dh_auto_build-override.patch (text/x-diff, inline)]
From e65c0a4b1a6bb623feddd15e7ec0fda53dbd7422 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@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 (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 09:57:15 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.