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

The buildid differs in /usr/games/xjump when built with a different
build path:

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

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

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

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

Thanks for maintaining xjump!

live well,
  vagrant
From 9b1cc60b2ea23c754bfc120c6b9272dda1587d8a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 25 Sep 2022 22:59:19 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map in 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 e5e8720..5826ff7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ build-indep: build
 
 build:
 	dh_testdir
-	make CFLAGS="-O2 -g -Wall"
+	make CFLAGS="-O2 -g -Wall -ffile-prefix-map=$(CURDIR)=."
 	touch build
 
 clean:
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to