Debian Bug report logs -
#1020670
gwaei: reproducible-builds: Embedded build path in /usr/bin/gwaei
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Norbert Preining <norbert@preining.info>:
Bug#1020670; Package src:gwaei.
(Sun, 25 Sep 2022 00:57: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, Norbert Preining <norbert@preining.info>.
(Sun, 25 Sep 2022 00:57: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: gwaei
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/gwaei:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/gwaei.html
/build/1st/gwaei-3.6.2/src/gwaei/gwaei.c:47
vs.
/build/2/gwaei-3.6.2/2nd/src/gwaei/gwaei.c:47
The attached patch fixes this by adding the -ffile-prefix-map argument
to CFLAGS in debian/rules.
With this patch applied gwaei should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining gwaei!
live well,
vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-CFLAGS.patch (text/x-diff, inline)]
From e09f1ae0e62103063e6d127f2188abd884e9d8a7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 00:45:52 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS.
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 90edf19..7f54a88 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@
PACKAGE=gwaei
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -ffile-prefix-map=$(CURDIR)=.
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
--
2.37.2
[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 13:28:32 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.