Debian Bug report logs -
#1020757
rig: reproducible-builds: Embedded build path in /usr/bin/rig
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 Veber <nveber@debian.org>:
Bug#1020757; Package src:rig.
(Mon, 26 Sep 2022 01:00: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 Veber <nveber@debian.org>.
(Mon, 26 Sep 2022 01:00: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: rig
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/rig:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/rig.html
/build/1st/rig-1.11/rig.cc:303
vs.
/build/2/rig-1.11/2nd/rig.cc:303
The attached patch to the upstream Makefile fixes this by passing
-ffile-prefix-map argument to the CXX call.
With this patch applied rig should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining rig!
live well,
vagrant
[0001-Makefile-Pass-ffile-prefix-map-to-CXX-call-to-avoid-.patch (text/x-diff, inline)]
From 60d3e87df657bbb1ffa55ed7bea6fabde2a6ca88 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Sep 2022 00:52:09 +0000
Subject: [PATCH] Makefile: Pass -ffile-prefix-map to CXX call to avoid
embedding build paths.
https://reproducible-builds.org/docs/build-path/
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index f41c173..b4bb6f2 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ CXX=g++
all: rig rig.6
rig: rig.cc
- ${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
+ ${CXX} -O2 -g -ffile-prefix-map=$(CURDIR)=. rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
rig.6: rig.6.in
sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6
--
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:14 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.