Debian Bug report logs - #1020749
gigalomania: reproducible-builds: Embedded build path in /usr/games/gigalomania

Package: src:gigalomania; Maintainer for src:gigalomania is Debian Games Team <pkg-games-devel@lists.alioth.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 25 Sep 2022 23:03:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#1020749; Package src:gigalomania. (Sun, 25 Sep 2022 23:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Sun, 25 Sep 2022 23:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: gigalomania: reproducible-builds: Embedded build path in /usr/games/gigalomania
Date: Sun, 25 Sep 2022 15:58:35 -0700
[Message part 1 (text/plain, inline)]
Source: gigalomania
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path is embedded in /usr/games/gigalomania:

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

  /build/1st/gigalomania-1.0+ds1/game.cpp:448
  vs.
  /build/2/gigalomania-1.0+ds1/2nd/game.cpp:448

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

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

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

Thanks for maintaining gigalomania!

live well,
  vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-CCFLAGS-to-avoi.patch (text/x-diff, inline)]
From 55ed148b652bbb21d6e88c5123fb1892f7b020d8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 22:47:18 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CCFLAGS to avoid
 embedding the 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 c886a60..21c470b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
 override_dh_auto_build:
 	$(MAKE) DATADIR="/usr/share/gigalomania" \
-	CCFLAGS="-g -O2 -Wall $(CPPFLAGS)" \
+	CCFLAGS="-g -O2 -Wall $(CPPFLAGS) -ffile-prefix-map=$(CURDIR)=." \
 	LINKPATH="$(LDFLAGS) `sdl2-config --libs` -L/usr/X11R6/lib/ -L/usr/lib" \
 	LIBS="-lSDL2_image -lSDL2_mixer `pkg-config --libs tinyxml`" all
 
-- 
2.37.2

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:28:47 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.