Source: xppaut
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

When the build path differs it results in a different buildid in
/usr/bin/xppaut:

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

The attached patch to the upstream Makefile fixes this by adding
-ffile-prefix-map to CFLAGS.

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

Thanks for maintaining xppaut!

live well,
  vagrant
From 00280d449e9d93ce09a01060351b4e3110be2b38 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 19:24:12 +0000
Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding
 build paths.

https://reproducible-builds.org/docs/build-path/
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 63e4b4d..df45b09 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ AUTLIBS=  -lm
 #CFLAGS=   -g -O -m32 -DNON_UNIX_STDIO -DAUTO -DCVODE_YES  -DHAVEDLL -DMYSTR1=$(MAJORVER) -DMYSTR2=$(MINORVER)  -I/usr/X11R6/include
 #CFLAGS=   -g -O -m64 -DNOERRNO -DNON_UNIX_STDIO -DAUTO -DCVODE_YES  -DHAVEDLL -DMYSTR1=$(MAJORVER) -DMYSTR2=$(MINORVER)  -I/usr/include/X11
 
-CFLAGS = -g -pedantic -fcommon -O -DNOERRNO -DNON_UNIX_STDIO -DAUTO -DCVODE_YES  -DHAVEDLL -DMYSTR1=$(MAJORVER) -DMYSTR2=$(MINORVER)  -I/usr/include/X11
+CFLAGS = -g -pedantic -fcommon -O -DNOERRNO -DNON_UNIX_STDIO -DAUTO -DCVODE_YES  -DHAVEDLL -DMYSTR1=$(MAJORVER) -DMYSTR2=$(MINORVER)  -I/usr/include/X11 -ffile-prefix-map=$(CURDIR)=.
 #LDFLAGS=  -m64 -L/usr/lib -L/usr/lib64
 LDFLAGS=  -L/usr/lib 
 LIBS=  -lX11 -lm -ldl   
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to