Debian Bug report logs - #1020660
logtools: reproducible-builds: Embedded build paths in binaries

Package: src:logtools; Maintainer for src:logtools is Russell Coker <russell@coker.com.au>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sat, 24 Sep 2022 22:27:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Russell Coker <russell@coker.com.au>:
Bug#1020660; Package src:logtools. (Sat, 24 Sep 2022 22:27: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, Russell Coker <russell@coker.com.au>. (Sat, 24 Sep 2022 22:27:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: logtools: reproducible-builds: Embedded build paths in binaries
Date: Sat, 24 Sep 2022 15:23:58 -0700
[Message part 1 (text/plain, inline)]
Source: logtools
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 various binaries in /usr/bin:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/logtools.html

  /usr/bin/clfdomainsplit

  /build/1st/logtools-0.13e+nmu2/clfdomainsplit.cpp:174
  vs.
  /build/2/logtools-0.13e+nmu2/2nd/clfdomainsplit.cpp:174


The attached patch fixes this by adding the -ffile-prefix-map argument
to CFLAGS in the upstream Makefile.in.

With this patch applied logtools should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining logtools!

live well,
  vagrant
[0001-Makefile.in-Add-ffile-prefix-map-to-avoid-embedding-.patch (text/x-diff, inline)]
From bc4f3f4f02debf12465dc66ac218753e2494df39 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 22:19:35 +0000
Subject: [PATCH] Makefile.in: Add -ffile-prefix-map to avoid embedding build
 path.

https://reproducible-builds.org/docs/build-path/
---
 Makefile.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.in b/Makefile.in
index e641a9d..5e4b5f2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,6 +2,7 @@
 prefix=@prefix@
 WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Woverloaded-virtual -pedantic -ffor-scope
 CFLAGS=-O2 -g -DNDEBUG ${WFLAGS}
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
 CXX=@CXX@ ${CFLAGS}
 LFLAGS=-lstdc++ @extra_ldflags@
 
-- 
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:27:42 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.