Debian Bug report logs -
#1011490
gdigi: reproducible-builds: embedded build paths in /usr/bin/gdigi
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#1011490; Package src:gdigi.
(Mon, 23 May 2022 22:12:04 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>.
(Mon, 23 May 2022 22:12:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: gdigi
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/gdigi:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/gdigi.html
/build/1st/gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:43
vs.
/build/2/gdigi-0.4.0+git20200615+1c2c89f/2nd/gdigi.c:43
The attached patch fixes this by passing CFLAGS via EXTRA_CFLAGS in a
dh_auto_build override in debian/rules. This allows passing the default
build flags including -ffile-prefix-map, which avoids embedding the
absolute path in compiled files.
With this patch applied, gdigi should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
[0001-debian-rules-Pass-CFLAGS-as-EXTRA_CFLAGS-in-dh_auto_.patch (text/x-diff, inline)]
From 41aa07e65328c9f522183e0e036c9143317cba34 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 22:05:11 +0000
Subject: [PATCH] debian/rules: Pass CFLAGS as EXTRA_CFLAGS in dh_auto_build
override.
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index cbe925d..ae7a96f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,6 @@
#!/usr/bin/make -f
%:
dh $@
+
+override_dh_auto_build:
+ dh_auto_build -- EXTRA_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 12:38:38 2023;
Machine Name:
bembo
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.