Debian Bug report logs -
#1020674
ifstat: reproducible-builds: Embedded build path in /usr/bin/ifstat
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Goswin von Brederlow <goswin-v-b@web.de>:
Bug#1020674; Package src:ifstat.
(Sun, 25 Sep 2022 01:27: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, Goswin von Brederlow <goswin-v-b@web.de>.
(Sun, 25 Sep 2022 01:27: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: ifstat
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/ifstat:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ifstat.html
/build/1st/ifstat-1.1/ifstat.c:458
vs.
/build/2/ifstat-1.1/2nd/ifstat.c:458
The attached patch fixes this in debian/rules by passing
-ffile-prefix-map in CFLAGS to configure.
With this patch applied ifstat should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining ifstat!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-to-con.patch (text/x-diff, inline)]
From e545ae74d28a8760cf0aa6b61e4a68fbcb255a40 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 01:20:56 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS to configure.
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 6947715..e2d9181 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ configure-stamp:
touch Makefile.in
touch configure
# Add here commands to configure the package.
- CPPFLAGS="-D_REENTRANT" ./configure --prefix=/usr --mandir="\$${prefix}/share/man" --infodir="\$${prefix}/share/info" --enable-debug --enable-library --with-libcrypto
+ CFLAGS="-ffile-prefix-map=$(CURDIR)=." CPPFLAGS="-D_REENTRANT" ./configure --prefix=/usr --mandir="\$${prefix}/share/man" --infodir="\$${prefix}/share/info" --enable-debug --enable-library --with-libcrypto
touch configure-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:28:42 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.