Debian Bug report logs - #1020671
ipfm: reproducible-builds: Embedded build path in /usr/sbin/ipfm

Package: src:ipfm; Maintainer for src:ipfm is Sam Hocevar (Debian packages) <sam+deb@zoy.org>;

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

Date: Sun, 25 Sep 2022 00:57:05 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, Sam Hocevar (Debian packages) <sam+deb@zoy.org>:
Bug#1020671; Package src:ipfm. (Sun, 25 Sep 2022 00:57:07 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, Sam Hocevar (Debian packages) <sam+deb@zoy.org>. (Sun, 25 Sep 2022 00:57:07 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: ipfm: reproducible-builds: Embedded build path in /usr/sbin/ipfm
Date: Sat, 24 Sep 2022 17:55:45 -0700
[Message part 1 (text/plain, inline)]
Source: ipfm
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/sbin/ipfm:

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

  /build/1st/ipfm-0.11.5/source/ipfm.c:62
  vs.
  /build/2/ipfm-0.11.5/2nd/source/ipfm.c:62

The attached patch fixes this in debian/rules by passing CFLAGS to make
with the -ffile-prefix-map argument.

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

Thanks for maintaining ipfm!

live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-to-make-via-CFLAG.patch (text/x-diff, inline)]
From 83eff83f46314004cbf1f910f6fd9d1b3b7e0b4f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 00:43:53 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map to make via 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 11f6614..38ff759 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ build-stamp:
 	./configure --prefix=/usr --mandir=/usr/share/man \
 	            --sysconfdir=/etc --localstatedir=/var
 
-	$(MAKE) 
+	$(MAKE) CFLAGS="$(CFLAGS) -ffile-prefix-map=$(CURDIR)=."
 
 	touch build-stamp
 
-- 
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:29:02 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.