Debian Bug report logs - #1004034
bagel: reproducible-builds: build path embedded in /usr/bin/BAGEL and debug symbols

version graph

Package: src:bagel; Maintainer for src:bagel is Debichem Team <debichem-devel@lists.alioth.debian.org>;

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

Date: Wed, 19 Jan 2022 16:15:02 UTC

Severity: normal

Tags: patch

Fixed in version bagel/1.2.2-4

Done: Michael Banck <mbanck@debian.org>

Bug is archived. No further changes may be made.

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, Debichem Team <debichem-devel@lists.alioth.debian.org>:
Bug#1004034; Package src:bagel. (Wed, 19 Jan 2022 16:15: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, Debichem Team <debichem-devel@lists.alioth.debian.org>. (Wed, 19 Jan 2022 16:15: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: bagel: reproducible-builds: build path embedded in /usr/bin/BAGEL and debug symbols
Date: Wed, 19 Jan 2022 08:14:17 -0800
[Message part 1 (text/plain, inline)]
Source: bagel
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Different build paths trigger reproducibility issues with binaries such
as /usr/bin/BAGEL and relevent debugging symbols.

The attached patch fixes this by passing -ffile-prefix-map to CXXFLAGS
to avoid embedding the build path into the binaries.

Another possibility would be to use dpkg-buildflags, which includes this
flag by default.


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


Thanks for maintaining bagel!


live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-in-CXXFLAGS.patch (text/x-diff, inline)]
From e7c8200cb457d886a634f383623d693a961b1a06 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 19 Jan 2022 16:04:53 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map in CXXFLAGS.

The -ffile-prefix-map argument is used to avoid embedding the build
path in binaries, which allows for reproducible builds regardless of
the build path in the build environment.
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 62d1d08..b6e0afa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 
 export LIBS=-lblas -llapack -lpthread
 
-export CXXFLAGS=-g1 -O2 -DNDEBUG -DZDOT_RETURN
+export CXXFLAGS=-g1 -O2 -DNDEBUG -DZDOT_RETURN -ffile-prefix-map=$(CURDIR)=.
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 B_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
-- 
2.34.1

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

Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1004034. (Thu, 20 Jan 2022 17:57:03 GMT) (full text, mbox, link).


Message #8 received at 1004034-submitter@bugs.debian.org (full text, mbox, reply):

From: Michael Banck <noreply@salsa.debian.org>
To: 1004034-submitter@bugs.debian.org
Subject: Bug#1004034 marked as pending in bagel
Date: Thu, 20 Jan 2022 17:54:00 +0000
Control: tag -1 pending

Hello,

Bug #1004034 in bagel reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debichem-team/bagel/-/commit/350a6feb772cb4ecb55d00f82322cecf0bd689b6

------------------------------------------------------------------------
* debian/rules: Pass -ffile-prefix-map in CXXFLAGS (Closes: #1004034).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1004034



Added tag(s) pending. Request was from Michael Banck <noreply@salsa.debian.org> to 1004034-submitter@bugs.debian.org. (Thu, 20 Jan 2022 17:57:03 GMT) (full text, mbox, link).


Reply sent to Michael Banck <mbanck@debian.org>:
You have taken responsibility. (Sun, 03 Apr 2022 12:51:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sun, 03 Apr 2022 12:51:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1004034-close@bugs.debian.org
Subject: Bug#1004034: fixed in bagel 1.2.2-4
Date: Sun, 03 Apr 2022 12:49:01 +0000
Source: bagel
Source-Version: 1.2.2-4
Done: Michael Banck <mbanck@debian.org>

We believe that the bug you reported is fixed in the latest version of
bagel, 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 1004034@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Banck <mbanck@debian.org> (supplier of updated bagel 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: SHA256

Format: 1.8
Date: Sun, 03 Apr 2022 14:28:30 +0200
Source: bagel
Architecture: source
Version: 1.2.2-4
Distribution: unstable
Urgency: medium
Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
Changed-By: Michael Banck <mbanck@debian.org>
Closes: 1004034
Changes:
 bagel (1.2.2-4) unstable; urgency=medium
 .
   [ Vagrant Cascadian ]
   * debian/rules: Pass -ffile-prefix-map in CXXFLAGS (Closes: #1004034).
 .
   [ Michael Banck ]
   * debian/tests/testsuite.sh: Dump last 50 lines of output for failed test
     cases.
Checksums-Sha1:
 b966689343e1e611607ff9238ae208e38962a5e1 2229 bagel_1.2.2-4.dsc
 e698b717c47f405689f42d65ba4b7fcb66157c5a 8236 bagel_1.2.2-4.debian.tar.xz
 2bf92fdc624d7e89e35d35489ad48a018166be26 6180 bagel_1.2.2-4_source.buildinfo
Checksums-Sha256:
 010f40f02c8022d55146c8b12508c3af6891f0e0364c67d9860b4256d0085f6c 2229 bagel_1.2.2-4.dsc
 b08d0ef0e64bb95377840b59fea5f2749c6cf2cac54dad0a53c4b1cbaa898804 8236 bagel_1.2.2-4.debian.tar.xz
 4e1735e5c89f8379f283d4ea22aacf4378082170d414ff2891389052dd454d46 6180 bagel_1.2.2-4_source.buildinfo
Files:
 0091a80ba66e8e549dbdf8bac61d1423 2229 science optional bagel_1.2.2-4.dsc
 bea0341778f1bbac5d1dd5ef94bae5ce 8236 science optional bagel_1.2.2-4.debian.tar.xz
 86d4c395ac601e72f07d3c1d3b78d08c 6180 science optional bagel_1.2.2-4_source.buildinfo

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

iQIzBAEBCAAdFiEEnKh3dJ+rLk+paGLs3GhqJ7Q0gbAFAmJJkvsACgkQ3GhqJ7Q0
gbAbDQ//VJGspr7m8k7CZGpJffETu0zptKxmkGCJEbNfl4vTnFitjKbDuCmjbCYz
P/e+KGJP/dQkP0okhojalTdzGgVoBTxc12hu398ZaLBpvuQjEgJizrilOkC+13LD
G09oTfFTqs6A5HyHVbB8TNnhYhfhUoqsIusSXRC5XywKF8j+Hn/PizmlvF6DXEuS
am6NWYSB1uGLN5FflDRqHOBYig6FIPk16xvebBE+x6ENGMsDdzVs+GnasvOuYpIE
oWOxGaGkqzzUGl3+s4BuNhLeu8oog/jniOMSvNrBzG8/elja2XiH8E7WNlJBYIcH
chunjIbH5kXtMCqL3dYt1kEZWL8bnEM52MRpAD512EjCo4l3ToLVNAlYA+28BeXQ
abjoOJ93qWS9cAw2xNEtfYu8gqMxNPEASNf3vxJp1LnUS0QjLbO4aUStwo2GPHm/
aPtE5nFihibJg5IiaHEqAaXUmLoFerIZTQYu3QNIquUJWw1mwyiXf6+TbxbC8Nyw
TF5lxv+33tgISoV+9ZGbLNhroqzfaj0oC+mJtZIyUQzhwSbxmWB2gt+gtwRrd5ah
ewf2eEyTfLxRtg3jTeQYZQ4frnmoKPMg4jqMLIYSCqjmhO20Ebfm+fjXUZEHa3Y/
OzWuPaeMLMO2fkkAYbVjIw8Vrb2ePp4ykLa6BfX/r7qQzouo2j4=
=WdQ4
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 05 May 2022 07:27:05 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: Wed May 17 11:02:40 2023; Machine Name: bembo

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.