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

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

  /build/1st/gwaei-3.6.2/src/gwaei/gwaei.c:47
  vs.
  /build/2/gwaei-3.6.2/2nd/src/gwaei/gwaei.c:47

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

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

Thanks for maintaining gwaei!

live well,
  vagrant
From e09f1ae0e62103063e6d127f2188abd884e9d8a7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 25 Sep 2022 00:45:52 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS.

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 90edf19..7f54a88 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@
 
 PACKAGE=gwaei
 
-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