Source: xgammon
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/games/xgammon:

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

  /build/1st/xgammon-0.99.1128/src/xgammon.c:286
  vs.
  /build/2/xgammon-0.99.1128/2nd/src/xgammon.c:286


The attached patch to debian/rules fixes this by passing CFLAGS to make.

Alternately, updating the packaging to use dh/debhelper at a recent
compat level would also likely fix this.


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


live well,
  vagrant
From 60b8556299e2e12bbebbe38e463757f2635a72b8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 10 May 2022 02:27:23 +0000
Subject: [PATCH] debian/rules: Pass CFLAGS to make.

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 3ea1ac6..f63f8c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ build: build-stamp
 build-stamp:
 	dh_testdir
 	cd src && imake -I/usr/lib/X11/config
-	cd src && $(MAKE) 
+	cd src && $(MAKE) CFLAGS="$(CFLAGS)"
 	touch build-stamp
 
 clean:
-- 
2.36.0

Attachment: signature.asc
Description: PGP signature

Reply via email to