Source: fusesmb
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 various binaries such as /usr/bin/fusesmb
and /usr/bin/fusesmb.cache:

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

  /build/1st/fusesmb-0.8.7/fusesmb.c:1003
  vs.
  /build/2/fusesmb-0.8.7/2nd/fusesmb.c:1003

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

Alternately, updating to "dh" build system and updating debhelper compat
level might also fix the issue.


With these patches applied, fusesmb should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From f9d4e1a9e5af42a96d2db9a4ff893920c789f290 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 15 May 2022 19:49:58 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map in 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 a049f18..46de5fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -ffile-prefix-map=$(CURDIR)=.
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature

Reply via email to