Debian Bug report logs - #1011036
mailfront: reproducible-builds: build path triggers differing buildid

version graph

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

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

Date: Sun, 15 May 2022 20:48:02 UTC

Severity: normal

Tags: patch

Fixed in version mailfront/2.12-2

Done: Vagrant Cascadian <vagrant@reproducible-builds.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, Debian QA Group <packages@qa.debian.org>:
Bug#1011036; Package src:mailfront. (Sun, 15 May 2022 20:48: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 QA Group <packages@qa.debian.org>. (Sun, 15 May 2022 20:48:05 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: mailfront: reproducible-builds: build path triggers differing buildid
Date: Sun, 15 May 2022 13:44:42 -0700
[Message part 1 (text/plain, inline)]
Source: mailfront
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 triggers different buildid in /usr/lib/mailfront/*.so:

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

  ./usr/lib/mailfront/backend-echo.so

  ...NT_GNU_BUILD_ID·(unique·build·ID·bitstring)»...Build·ID:·018da3a354a5af384c85c7ec0a93f96d596038bc
  vs.
  ...NT_GNU_BUILD_ID·(unique·build·ID·bitstring)»...Build·ID:·9e821d0b9661312dde9181fc7619275241606d73

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

Alternately, updating to "dh" build system and updating debhelper compat
level might also fix the issue.


There is another outstanding reproducibility issue(sort order of md5sum
files), but applying this patch should significantly reduce the
differences when tested on tests.reproducible-builds.org.


live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-to-avo.patch (text/x-diff, inline)]
From d54ca93264cde955a9b60646a0b796936c0813cb Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 15 May 2022 20:05:44 +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 0662d3f..b9257ab 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 CC =gcc
-CFLAGS =-W -Wall -Wshadow -O2 -g
+CFLAGS =-W -Wall -Wshadow -O2 -g -ffile-prefix-map=$(CURDIR)=.
 STRIP =strip
 
 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-- 
2.36.1

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

Reply sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility. (Sun, 15 May 2022 22:51:03 GMT) (full text, mbox, link).


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


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1011036-close@bugs.debian.org
Subject: Bug#1011036: fixed in mailfront 2.12-2
Date: Sun, 15 May 2022 22:49:21 +0000
Source: mailfront
Source-Version: 2.12-2
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

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

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated mailfront 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: Sun, 15 May 2022 15:26:58 -0700
Source: mailfront
Architecture: source
Version: 2.12-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 1011036
Changes:
 mailfront (2.12-2) unstable; urgency=medium
 .
   * QA upload.
   * Switch to "dh" and debhelper compat 13. (Closes: #1011036)
   * debian/control: Set Rules-Requires-Root to "no".
   * debian/control: Update to Standards-Version 4.6.1.
Checksums-Sha1:
 bcece43842a2501d7baccd5f5fc4278315303f9d 1536 mailfront_2.12-2.dsc
 a8464462456c152055a876edbc9c48b841431ed3 30168 mailfront_2.12-2.debian.tar.xz
Checksums-Sha256:
 dc052dcff2e9485c3a4e947005de639d93e3532e32c6242615094d1431e79404 1536 mailfront_2.12-2.dsc
 7d1f2ab86b613fc4b9f8f64625ccdbb1175036eebe0bd8820bc3d845adae7bcf 30168 mailfront_2.12-2.debian.tar.xz
Files:
 c1d85deb4cadf7a9031b8d88b8c6d740 1536 mail optional mailfront_2.12-2.dsc
 4f00f260563002af01cbdb9ca4bc1dd1 30168 mail optional mailfront_2.12-2.debian.tar.xz

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

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYoF//yAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqs1NAQCPERobhMJqu/HU
qcjVWg168xCO+MGtCYsAQEgyqcIETwD/Q4lo7wpm9qGEE3nxzKT5fmTcE/oLRU3t
eNeYsUn7iAw=
=IgrS
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 18 Jun 2022 07:25:29 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 12:39:07 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.