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

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

  /build/1st/xcolmix-1.07/src/xcolmix.c:55
  vs.
  /build/2/xcolmix-1.07/2nd/src/xcolmix.c:55

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

Alternately, adapting this packge to use the default flags passed via
dpkg-buildflags should solve this issue as well.

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

Thanks for maintaining xcolmix!

live well,
  vagrant
From 45adf65a2e6d6c70b78a91064ca468748e8d3c00 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 25 Sep 2022 22:50:54 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map in STDCFLAGS to avoid
 embedding 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 6bfa94a..3bf23e2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ package=xcolmix
 build:
 	$(checkdir)
 
-	(cd src; make final STDLFLAGS="-L /usr/X11R6/lib" STDCFLAGS="-c -O2 -Wall $(XFINCDIR) -g")
+	(cd src; make final STDLFLAGS="-L /usr/X11R6/lib" STDCFLAGS="-c -O2 -Wall $(XFINCDIR) -g -ffile-prefix-map=$(CURDIR)=.")
 	touch build
 
 clean:
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to