Source: xmlrpc-epi
Severity: normal
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

The build path is embedded in
/usr/lib/debug/usr/lib/x86_64-linux-gnu/libxmlrpc-epi.so.0.0.3:

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

  0»      (line_strp)» (offset:·0x0):·/build/1st/xmlrpc-epi-0.54.2/src
  vs.
  0»      (line_strp)» (offset:·0x0):·/build/2/xmlrpc-epi-0.54.2/2nd/src  

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

Another option that *might* fix this and other issues would be to switch
to dh and a recent debhelper compat level.


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


Thanks for maintaining xmlrpc-epi!


live well,
  vagrant
From 27274f7aa845adc0a9624bebd8bd06a855b3becb Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Sat, 24 Sep 2022 20:22:29 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS to avoid
 embedding the build path.

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 c268dfb..1747e7c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -ffile-prefix-map=$(CURDIR)=.
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to