Debian Bug report logs - #983902
sendmail: reproducible builds: embeds build path in site.config.m4 documentation files

version graph

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

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

Date: Wed, 3 Mar 2021 02:45:01 UTC

Severity: normal

Tags: patch

Fixed in version sendmail/8.15.2-21

Done: Andreas Beckmann <anbe@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, Debian QA Group <packages@qa.debian.org>:
Bug#983902; Package src:sendmail. (Wed, 03 Mar 2021 02:45:03 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>. (Wed, 03 Mar 2021 02: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: sendmail: reproducible builds: embeds build path in site.config.m4 documentation files
Date: Tue, 02 Mar 2021 18:40:08 -0800
[Message part 1 (text/plain, inline)]
Source: sendmail
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 embedded in the site.config.m4 files shipped in the
documentation of sendmail-doc and sendmail-base packages:

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

  /usr/share/doc/sendmail-base/site.config.m4.gz

  define(`confOPTIMIZE',··`-g·-O2·-ffile-prefix-map=/build/1st/sendmail-8.15.2=.·-fstack-pro..
  vs.
  define(`confOPTIMIZE',··`-g·-O2·-ffile-prefix-map=/build/2/sendmail-8.15.2/2nd=.·-fstack-pro...


The attached patch fixes this by replacing the build path with
"BUILDPATH" in debian/rules before installing the documentation.

With this patch applied, sendmail should become reproducible.


Thanks for maintaining sendmail!


live well,
  vagrant
[0001-debian-rules-Avoid-embedding-the-build-path-in-site..patch (text/x-diff, inline)]
From 3d28d581a7b6de3be07e13b75b093f535bb71a41 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 3 Mar 2021 02:17:36 +0000
Subject: [PATCH] debian/rules: Avoid embedding the build path in
 site.config.m4.

The site.config.m4 file is shipped in sendmail-doc and sendmail-base,
but should have the build path removed in the shipped file.

https://tests.reproducible-builds.org/debian/issues/unstable/records_build_flags_issue.html
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 0c4fe82..f7b2405 100755
--- a/debian/rules
+++ b/debian/rules
@@ -203,6 +203,8 @@ override_dh_auto_install-arch:
 	#--------------------------------------------------------------------
 
 override_dh_installdocs-indep:
+	# Avoid recording the build path in the documentation
+	sed -i -e "s,prefix-map=$(CURDIR),prefix-map=BUILDPATH,g" debian/build/site.config.m4
 	dh_installdocs -p${DEB_SOURCE_PACKAGE}-doc --doc-main-package=${DEB_SOURCE_PACKAGE}-doc -A $(DEB_SRCDIR)/README
 	dh_installdocs -N${DEB_SOURCE_PACKAGE}-doc -A $(DEB_SRCDIR)/README
 
-- 
2.30.1

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

Reply sent to Andreas Beckmann <anbe@debian.org>:
You have taken responsibility. (Wed, 03 Mar 2021 11:51:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 03 Mar 2021 11:51:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 983902-close@bugs.debian.org
Subject: Bug#983902: fixed in sendmail 8.15.2-21
Date: Wed, 03 Mar 2021 11:50:13 +0000
Source: sendmail
Source-Version: 8.15.2-21
Done: Andreas Beckmann <anbe@debian.org>

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

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated sendmail 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: Wed, 03 Mar 2021 12:03:42 +0100
Source: sendmail
Architecture: source
Version: 8.15.2-21
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 983902
Changes:
 sendmail (8.15.2-21) unstable; urgency=medium
 .
   * QA upload.
   * Make the build reproducible, thanks to Vagrant Cascadian.
     (Closes: #983902)
   * Move amavis documentation to /usr/share/doc/sendmail.
   * Bump watch version to 4. No changes needed.
   * Update to Standards-Version: 4.5.1.
   * Fix more typos found by Lintian.
   * Update Lintian overrides.
Checksums-Sha1:
 463a6339e123201d8ed2b749a5a1ba39ab5444ba 2801 sendmail_8.15.2-21.dsc
 ef51db9653169646f3f7bde67ab30408b40f53a9 227392 sendmail_8.15.2-21.debian.tar.xz
 4fac3c3e020a71d11baa4a8acf00bdeb2c885f14 6127 sendmail_8.15.2-21_source.buildinfo
Checksums-Sha256:
 0298a6ca54ba8808e028c6523272c7d9543072d90ff827b266254265df40be12 2801 sendmail_8.15.2-21.dsc
 1456533eda0d396acb7df380d2b07260b0cabb8bcd912a28b467ca4353d9d4d0 227392 sendmail_8.15.2-21.debian.tar.xz
 3cdd77637ea89b430d4a0265fd608ab9d3c8b49a38f886974ba1c345ded437df 6127 sendmail_8.15.2-21_source.buildinfo
Files:
 21a665db50bef4a3946ec1edd7508dbc 2801 mail optional sendmail_8.15.2-21.dsc
 4f85d5e0e5e05b1d6208e994e9e08957 227392 mail optional sendmail_8.15.2-21.debian.tar.xz
 ad112fade058b3419eda57859bbf1ba8 6127 mail optional sendmail_8.15.2-21_source.buildinfo

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

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmA/c64QHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCFmLD/9c4xXl6lM3T6hjAcu2+Yh5klEOlLSTZ8Xn
RPNm4iVcuLbkkVFV/+qisB5GmDkD8yU9jAza5NVYaHdQFk/WpLlfRP2lCUtJlzqs
SuSjZuRZsaTHURqdkXwwQTuxpREvL0LJ2InYcVKeq4B7lhJLWarZQsUTCNhIXIEi
qKJgRTZFASvEWYzAVazq0B3Y+zbsuGut28BRVP7GSNYGqvVu4fYR+AMpDMgZp921
avc6GHi3b3tEaDFsmjFKRvwI0sKnzRmLNNeGlogskDILusQ4Ctp4q7T47Ynnt+Ev
X5fIhgwLqtdE8GxugLlT62R6DaHnFQs+WRJ22pCOg9CYMqL2qMMjN/pdlu1dK++w
4UNKnWwej5JiNhifYZn/fKoduS/3sYhqNGfZNz1F1B0hDO1ajhvDgJTZnRtTaSpE
cT2xGcyK//QHZdoQO94Fxv9MNfHOv8LJTw7YI3V50a/DHII0pCl+YXEqvYxcKP9B
hCRupgcr5O85j6aEHOfpbNNMTCwosKjQ2yO7hsB1ZwmH7giRNbYSOzdRXfeUXRqy
QbyneM5cyck5Shkq9V6cwv8Oyt/0P71phUBNIlEgaSfTsejmcc/xf7PzsCw3rXay
cysI4sU6iKmEkAx98ilDv/xbWeGo94hImXjInvhSwRELFwMUVavTNoY7av7dpNn5
5hQl6t/fHw==
=EGTg
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#983902; Package src:sendmail. (Wed, 03 Mar 2021 12:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <anbe@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian QA Group <packages@qa.debian.org>. (Wed, 03 Mar 2021 12:00:03 GMT) (full text, mbox, link).


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

From: Andreas Beckmann <anbe@debian.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 983902@bugs.debian.org
Subject: Re: Bug#983902: sendmail: reproducible builds: embeds build path in site.config.m4 documentation files
Date: Wed, 3 Mar 2021 12:57:20 +0100
Fix uploaded, please take care of an unblock if you think this should be 
in bullseye.

Andreas



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 01 Apr 2021 07:24:46 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:07:37 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.