Debian Bug report logs -
#1011405
autoclass: reproducible-builds: build path triggers differing buildid
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 22 May 2022 01:39:01 UTC
Severity: normal
Tags: patch
Fixed in version autoclass/3.3.6.dfsg.1-3
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1011405; Package src:autoclass.
(Sun, 22 May 2022 01:39: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>.
(Sun, 22 May 2022 01:39:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: autoclass
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/bin/autoclass:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/autoclass.html
... Build·ID:·f5e1b2ff65fbb0f313e8226b27292971816a02ad
vs.
... Build·ID:·22e32d5a1dcc2e0b76bf97d7607bc09be61dbbd1
The attached patch fixes this by passing -ffile-prefix-map to CFLAGS in
debian/rules, and passing CFLAGS to make.
Alternately (maybe even preferably), updating to "dh" build system and
updating debhelper compat level might also fix the issue.
With this patch applied, autoclass should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS-to-mak.patch (text/x-diff, inline)]
From c0fc985e2f2d58efef2e89bd5d90bdf8f66e137b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 22 May 2022 01:27:31 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map via CFLAGS to make.
Without this argument, the build path gets embedded in the binaries.
https://reproducible-builds.org/docs/build-path/
---
debian/rules | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 9cb0546..ccf2f2e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@
# Note: when changing the debhelper compatibility level, also update
# the dependency in debian/control (e.g. "debhelper (>= 7)")
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -ffile-prefix-map=$(CURDIR)=.
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
@@ -65,7 +65,7 @@ build-stamp:
dh_testdir
# Add here commands to compile the package.
- (cd prog; $(MAKE) $(MAKEFLAGS))
+ (cd prog; $(MAKE) $(MAKEFLAGS) CFLAGS="$(CFLAGS)")
# assemble changelog in reverse chronological order
-rm changelog
--
2.36.1
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility.
(Sun, 22 May 2022 02:51:05 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Sun, 22 May 2022 02:51:05 GMT) (full text, mbox, link).
Message #10 received at 1011405-close@bugs.debian.org (full text, mbox, reply):
Source: autoclass
Source-Version: 3.3.6.dfsg.1-3
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>
We believe that the bug you reported is fixed in the latest version of
autoclass, 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 1011405@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 autoclass 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: Sat, 21 May 2022 19:27:25 -0700
Source: autoclass
Architecture: source
Version: 3.3.6.dfsg.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 902164 1007467 1011405
Changes:
autoclass (3.3.6.dfsg.1-3) unstable; urgency=medium
.
* QA upload.
* Update to debhelper-compat 13 and dh. (Closes: #1011405, #902164)
* Update to source format "3.0 (quilt)". (Closes: #1007467)
* Rename debian/tests to debian/debian-tests.
* debian/control: Set Rules-Requires-Root to "no".
* debian/control: Update Standards-Version to 4.6.1.
Checksums-Sha1:
a846ddbc41f2553289e5b6364bb434d4117b37f7 1386 autoclass_3.3.6.dfsg.1-3.dsc
5cc4c49423dbadb6eb643ebe8175854c2f103cc8 36224 autoclass_3.3.6.dfsg.1-3.debian.tar.xz
Checksums-Sha256:
edde23fc1115cbc17cf23d1b8af271725b9c03ee2475a4a661734f86e9cfff08 1386 autoclass_3.3.6.dfsg.1-3.dsc
11fed593ef7c948114b27992b371d2777c5557c7b56ecc8ec7dd12f2741609b6 36224 autoclass_3.3.6.dfsg.1-3.debian.tar.xz
Files:
c086e7e2dcfdbca4e763a01b3a3e8061 1386 math optional autoclass_3.3.6.dfsg.1-3.dsc
b741032003adf265f859e99ece4184c9 36224 math optional autoclass_3.3.6.dfsg.1-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYomhLSAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqh0iAP9hePmgaaOv0Rgo
F+0yd1j7rO9yQfMdGzEl1NFjcBS5EAEAvZij/CuSsTqwpUHatZcg35CR3JsCMEWn
k0Nfo1Ks1wU=
=ItoW
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 24 Jun 2022 07:24:49 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:38:57 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.