1020872">

Debian Bug report logs - #1020872
xvier: reproducible-builds: buildid differences in /usr/games/xvier*

version graph

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

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

Date: Tue, 27 Sep 2022 19:51:01 UTC

Severity: normal

Tags: patch

Fixed in version xvier/1.0-8

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, Josip Rodin <joy-packages@debian.org>:
Bug#1020872; Package src:xvier. (Tue, 27 Sep 2022 19:51: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, Josip Rodin <joy-packages@debian.org>. (Tue, 27 Sep 2022 19:51: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: xvier: reproducible-builds: buildid differences in /usr/games/xvier*
Date: Tue, 27 Sep 2022 12:49:07 -0700
[Message part 1 (text/plain, inline)]
Source: xvier
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

When the build path differs it results in a different buildid in
/usr/games/xvier*:

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

The attached patch to debian/rules fixes this by adding
-ffile-prefix-map to CFLAGS.

According to my local tests, with this patch applied xvier should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining xvier!

live well,
  vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-CFLAGS-to-avoid.patch (text/x-diff, inline)]
From a0f90b9905671ca1dcf5aed9c41af76f99ee00cc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 19:45:45 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS to avoid
 embedding the build path.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 45388d2..c7e4544 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@ ifeq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" ""
 CFLAGS += -O2
 endif
 
+# Avoid embedding build path for reproducible builds
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
+
 build: xvier debian/rules
 xvier: xvier.c
 	xmkmf
-- 
2.37.2

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

Reply sent to Bastian Germann <bage@debian.org>:
You have taken responsibility. (Wed, 16 Aug 2023 19:45:06 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 16 Aug 2023 19:45:06 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020872-close@bugs.debian.org
Subject: Bug#1020872: fixed in xvier 1.0-8
Date: Wed, 16 Aug 2023 19:40:21 +0000
Source: xvier
Source-Version: 1.0-8
Done: Bastian Germann <bage@debian.org>

We believe that the bug you reported is fixed in the latest version of
xvier, 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 1020872@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 xvier 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: Wed, 16 Aug 2023 16:32:51 +0000
Source: xvier
Architecture: source
Version: 1.0-8
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1020872
Changes:
 xvier (1.0-8) unstable; urgency=medium
 .
   * QA upload.
   * Convert to source format 3.0.
   * Drop old menu file
 .
   [ Vagrant Cascadian ]
   * Avoid build differences. (Closes: #1020872)
Checksums-Sha1:
 83967131286aa25f98d4da691fa9665a7a71416b 1494 xvier_1.0-8.dsc
 05563a4b3e8dbe595bb4a24f3fe9a3bd180419db 3472 xvier_1.0-8.debian.tar.xz
 378475a6abe19c3794761ee4b376964e7fc8b763 4983 xvier_1.0-8_source.buildinfo
Checksums-Sha256:
 4efd0ec8daecc8d2cf3227baae332563f1c970a708a3835492bbae766d91f2ad 1494 xvier_1.0-8.dsc
 38023119eaa8181a7b30886b48009e10e3f6ba468e93e56503526f25e31d6e90 3472 xvier_1.0-8.debian.tar.xz
 e175c5bfc899c2d2dae1fd20ccf86c6da1d82b2cb901fded504b04b6c1a13645 4983 xvier_1.0-8_source.buildinfo
Files:
 98a94e9b4ce6ecd26ffd18cd7a18c466 1494 games optional xvier_1.0-8.dsc
 f3de4ce01d6d59c166e887ce0e6f9361 3472 games optional xvier_1.0-8.debian.tar.xz
 7b9f25934f05bf519315a37313715a8f 4983 games optional xvier_1.0-8_source.buildinfo

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

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmTdHtAQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFNr/DADgekFVSMh3o8VWsYbwPt+L2MQ9jAS5dmn+
xB4xay6Qk8WzsITmlj5fb7XqkuzHknU3Tkh8oJX9/Dk6DyirgOr1hBm6M0NhHxRv
P0DWrBntpBgcD2TpFUj8OxKFhSLvuN3CVeTQbt6pJC44EsOEw5l0ocH730qVj02Y
RpXVdOtX94SXUSkeoWxk2Tw5IbN5DFh7GQdcxgdfE3/KPQpP2juhyGju9wrayvEf
I08hi/n7XQG+dnfpzMREAJ6EUXu80lzs4We0IUpljrA/dHwuXXjP5xOfubzWVaa5
lpN/rNq8LGzBFYRT0pcswSznvTPs5RkOghI1jHV6/eF82AKG4qx7uIRgsqyYdQ42
pxyLPH9VV4bbXz243Edj4J77XKYZr2J3lonVJEOAUUu9/rYDkRzCvHAMeRS3Fyov
4Qg09dVeWR5BB+vQbNlFmB1g3zwW4BrxAvDs8tN4Cq+Ug82c6Us4MWlCkfj7rq3X
TiLgxHz1r5rhKR1DlEMT3kvxAwB8mbU=
=wiqP
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 19 Sep 2023 07:37:23 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 01:35:40 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.