1020752">

Debian Bug report logs - #1020752
sjeng: reproducible-builds: differing buildid in in /usr/games/sjeng

version graph

Package: src:sjeng; Maintainer for src:sjeng is Debian QA Group <packages@qa.debian.org>;

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

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

Severity: normal

Tags: patch

Fixed in version sjeng/11.2-9

Done: Bastian Germann <bage@debian.org>

Bug is archived. No further changes may be made.

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, 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):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: sjeng: reproducible-builds: differing buildid in in /usr/games/sjeng
Date: Sun, 25 Sep 2022 16:41:16 -0700
[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)]

Reply sent to Bastian Germann <bage@debian.org>:
You have taken responsibility. (Wed, 09 Aug 2023 23:24:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 09 Aug 2023 23:24:03 GMT) (full text, mbox, link).


Message #10 received at 1020752-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020752-close@bugs.debian.org
Subject: Bug#1020752: fixed in sjeng 11.2-9
Date: Wed, 09 Aug 2023 23:20:14 +0000
Source: sjeng
Source-Version: 11.2-9
Done: Bastian Germann <bage@debian.org>

We believe that the bug you reported is fixed in the latest version of
sjeng, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1020752@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated sjeng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 10 Aug 2023 00:45:20 +0200
Source: sjeng
Architecture: source
Version: 11.2-9
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 880456 1020752
Changes:
 sjeng (11.2-9) unstable; urgency=medium
 .
   * QA upload.
   * Convert to source format 3.0.
   * d/watch: Drop non-functional file.
   * d/copyright: Convert to machine-readable format.
 .
   [ Vagrant Cascadian ]
   * Pass -ffile-prefix-map via CFLAGS to avoid embedding build path.
     (Closes: #1020752)
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: (Closes: #880456)
     + Use a triplet-prefixed CC.
     + Defer stripping to dh_strip.
Checksums-Sha1:
 96e0f776791e8a16af5477819a6e7a408e3fd9b7 1555 sjeng_11.2-9.dsc
 a4bd16ce47469dec6b1addf1a53ce528e5bd6629 13088 sjeng_11.2-9.debian.tar.xz
 aac8892b4e1df90fd2e619f3e27a0fd7c2950439 5418 sjeng_11.2-9_source.buildinfo
Checksums-Sha256:
 8352a5a2e89bb6b6a0d5d6a5340bd679e3d91b546e5951b0885ae3d803174de6 1555 sjeng_11.2-9.dsc
 be8abd9a758f43c4e5a1f432b72d3d25b513e5a2629b7ba647c4975934428fe0 13088 sjeng_11.2-9.debian.tar.xz
 3bc9a789497a6aa91fe7f37db4cb3f7eceaae9fe990ea471e7d7b31edb010ca6 5418 sjeng_11.2-9_source.buildinfo
Files:
 f1e67e8aa68ed47995fb711e43dc149b 1555 games optional sjeng_11.2-9.dsc
 4fe181ee89c43cf55def9e7306e67661 13088 games optional sjeng_11.2-9.debian.tar.xz
 1bfef46c8aef709de9021a5eecb80307 5418 games optional sjeng_11.2-9_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmTUHUgQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFGpSDAC/MehJN1Gf1mKtvqr+vJahM4Kl1dFXdQ3f
Y4JrZgmVSNCuSdmFMsmkaha0xl//X2s6l4pAFtWCr4lsS8nXCekeHoWDEZuEpNk3
7xAGG/HTbsV3kVudhA3WbXMJw5GQHlp5U4qFjsoh5rWIfdkUN++YBIMamJq/sjhE
h2sKFD/OzU0XLnHGMDXxk5ixaGhmKPIF8HOYMikNXT92h/T8hfcsZ6BycX8wQJuV
boUR16/smk0/SyC8xp0m74khHj+SyMMlQbQ6Vg9ymUiL2PiG5+YGtpP+9UukmX7k
iRxAVJgx8UVrYFk0rKN2VNVmu9iQ+bZYTaCVfKGmBfmjBERdi6Vqyv73GnB+CgAg
rjx5C/4iHvm/5Fwo4Tqt8RJ/Tb8UuqZVUy+Vo4s8G8xgNHUWU3wnDeYmTe4o9POU
A8GMvxRxElHZrkIkEqqAxdjhFh6g3JxyJ6zBQRG5QRxdKSAtaPVkY6L9ktghUf9Z
eP7NRk5RdVEbZEXL7vWA9hiRceIJkIU=
=3HyE
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 12 Sep 2023 07:26:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 31 06:37:37 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.