Debian Bug report logs -
#1020752
sjeng: reproducible-builds: differing buildid in in /usr/games/sjeng
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Jotam Jr. Trejo <jotamjr@debian.org.sv>:
Bug#1020752; Package src:sjeng.
(Sun, 25 Sep 2022 23:45: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, Jotam Jr. Trejo <jotamjr@debian.org.sv>.
(Sun, 25 Sep 2022 23:45:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: sjeng
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The buildid differs in /usr/games/sjeng when built with a different
build path:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/sjeng.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 sjeng should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining sjeng!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-to-avo.patch (text/x-diff, inline)]
From a81c558a587c48c3fed1dd8fd2fa6b74c54e7608 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 23:38:45 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS to avoid
embedding 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 0b4d87b..67dfb4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CC = gcc
-CFLAGS = -Wall -W -g
+CFLAGS = -Wall -W -g -ffile-prefix-map=$(CURDIR)=.
LDFLAGS =
# C++ is not used in this version, but configure looks for it
--
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:59 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.