Debian Bug report logs -
#1020659
lookup: reproducible-builds: Embedded build path in /usr/bin/lookup
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Ludovic Drolez <ldrolez@debian.org>:
Bug#1020659; Package src:lookup.
(Sat, 24 Sep 2022 22:21: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, Ludovic Drolez <ldrolez@debian.org>.
(Sat, 24 Sep 2022 22:21: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: lookup
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/lookup:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/lookup.html
/build/1st/lookup-1.08b/lookup.c:34
vs.
/build/2/lookup-1.08b/2nd/lookup.c:34
The attached patch fixes this by adding the -ffile-prefix-map argument
to CFLAGS in the upstream Makefile, and should be added to
debian/patches.
With this patch applied lookup should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining lookup!
live well,
vagrant
[0001-Makefile-Pass-ffile-prefix-map-in-CFLAGS-to-avoid-em.patch (text/x-diff, inline)]
From 885cd0118a719cb1d73904557063d56318ced514 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 22:14:17 +0000
Subject: [PATCH] Makefile: Pass -ffile-prefix-map in CFLAGS to avoid embedding
build paths.
https://reproducible-builds.org/docs/build-path/
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 7bfce46..57aac3f 100644
--- a/Makefile
+++ b/Makefile
@@ -96,6 +96,7 @@ LOCAL_LIB=jefflib.a
LIBS= $(LOCAL_LIB) $(OTHERLIBS)
CFLAGS= $(OPTIONS) $(EXTRA) $(CFLAGS_EXTRA)
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
objs=lookup.o commands.o apply_regex.o eval.o
--
2.30.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:29:00 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.