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

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

  /build/1st/dradio-3.8/src/dradio.c:49
  vs.
  /build/2/dradio-3.8/2nd/src/dradio.c:49

The attached patch to debian/rules fixes this by adding a
dh_auto_configure override passing -ffile-prefix-map via CFLAGS.

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

Thanks for maintaining dradio!

live well,
  vagrant
From 9d7f10a02be23b49b8e423dc91d89a3e320c7aa8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 01:23:38 +0000
Subject: [PATCH] debian/rules: Add dh_auto_configure override to pass
 -ffile-prefix-map to avoid embedding build paths.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..fce6baf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- CFLAGS="$(CFLAGS) -ffile-prefix-map=$(CURDIR)=."
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to