Source: xrprof
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/xrprof:

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

  /build/1st/xrprof-0.3.1/src/xrprof.c:71
  vs.
  /build/2/xrprof-0.3.1/2nd/src/xrprof.c:71

The attached patch to debian/rules fixes this by passing the default
CFLAGS to dh_auto_build, which includes the -ffile-prefix-map argument.

According to my local tests, with this patch applied xrprof should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining xrprof!

live well,
  vagrant
From dcf2ad058ef860eb7f9ac64a83149cbe267662e3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 18 Nov 2022 19:44:54 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS to dh_auto_build.

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 0da069d..c8bdedc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- prefix=/usr
+	dh_auto_build -- prefix=/usr CFLAGS="$(CFLAGS)"
 
 override_dh_auto_install:
 	dh_auto_install -- prefix=/usr
-- 
2.38.1

Attachment: signature.asc
Description: PGP signature

Reply via email to