Source: ifstat
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@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
From e545ae74d28a8760cf0aa6b61e4a68fbcb255a40 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to