Debian Bug report logs -
#1003500
gcc-sh-elf: reproducible builds: embeds path to various binaries
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Electronics Team <pkg-electronics-devel@alioth-lists.debian.net>:
Bug#1003500; Package src:gcc-sh-elf.
(Tue, 11 Jan 2022 04:27: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 Electronics Team <pkg-electronics-devel@alioth-lists.debian.net>.
(Tue, 11 Jan 2022 04:27: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: gcc-sh-elf
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The paths to various binaries are embedded which differs on a usrmerge
vs. non-usrmerge system.
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/gcc-sh-elf.html
./usr/libexec/gcc/sh-elf/11/install-tools/fixincl
/bin/sed
vs.
/usr/bin/sed
./usr/libexec/gcc/sh-elf/11/install-tools/mkheaders
for·shell·in·$CONFIG_SHELL·$SHELL·/bin/bash·/bin/sh·"";·do
vs.
for·shell·in·$CONFIG_SHELL·$SHELL·/bin/sh·/bin/sh·"";·do
Patch attached which passes variables to configure to use the
non-usrmerge locations, as usrmerge installations typically have
compatibility symlinks, but not vice-versa. The patch also sets
variables to ensure consistent values for bash, which can be triggered
when /bin/sh points to bash.
This patch alone does not fix all reproducibility issues (e.g. build
paths, which are only tested on unstable and experimental), but should
significantly improve the reproducibility, especially in
bookworm/testing.
Thanks for maintaining gcc-sh-elf!
live well,
vagrant
[0001-debian-rules-Pass-variables-to-configure-to-make-the.patch (text/x-diff, inline)]
From e7ec028450dc49dad26cdeca13e6ae22f0747765 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 11 Jan 2022 03:31:46 +0000
Subject: [PATCH] debian/rules: Pass variables to configure to make the package
build reproducibly regardless of usrmerge.
The variables SED, SHELL, BASH and CONFIG_SHELL should all point to
their non-usrmerge locations.
https://tests.reproducible-builds.org/debian/issues/paths_vary_due_to_usrmerge_issue.html
---
debian/rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index 3bc85ae..0c06730 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,6 +47,10 @@ CONFIG_OPTS = \
--build=$(DEB_BUILD_GNU_TYPE) \
--host=$(DEB_HOST_GNU_TYPE) \
--target=$(gnu_type) \
+ SED=/bin/sed \
+ SHELL=/bin/sh \
+ BASH=/bin/bash \
+ CONFIG_SHELL=/bin/bash \
--prefix=/usr \
--disable-gdb \
--disable-libcc1 \
--
2.30.2
[signature.asc (application/pgp-signature, inline)]
Reply sent
to John Scott <jscott@posteo.net>:
You have taken responsibility.
(Wed, 06 Apr 2022 13:21:05 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Wed, 06 Apr 2022 13:21:05 GMT) (full text, mbox, link).
Message #10 received at 1003500-close@bugs.debian.org (full text, mbox, reply):
Source: gcc-sh-elf
Source-Version: 3
Done: John Scott <jscott@posteo.net>
We believe that the bug you reported is fixed in the latest version of
gcc-sh-elf, 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 1003500@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
John Scott <jscott@posteo.net> (supplier of updated gcc-sh-elf 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, 02 Apr 2022 18:01:27 -0400
Source: gcc-sh-elf
Architecture: source
Version: 3
Distribution: experimental
Urgency: medium
Maintainer: Debian Electronics Team <pkg-electronics-devel@alioth-lists.debian.net>
Changed-By: John Scott <jscott@posteo.net>
Closes: 1003500 1003501
Changes:
gcc-sh-elf (3) experimental; urgency=medium
.
* Switch to GCC 12.
* Improve reproducibility by using tools in non-usrmerge locations
with thanks to Vagrant Cascadian for the patch (Closes: #1003500)
* Switch non-portable usage of echo to printf (Closes: #1003501)
Thanks again to Vagrant.
Checksums-Sha1:
af2afdcd00c85e109a0bb0e52493bf800d2ffd26 1754 gcc-sh-elf_3.dsc
12854f4f9b395595811ff06c44db03aa27da8c5c 7980 gcc-sh-elf_3.tar.xz
cc813e747bd5fbeec1c4ef0e2ab5a42e05a00855 6419 gcc-sh-elf_3_source.buildinfo
Checksums-Sha256:
2090f7104d3f333ecee767ad6d82031669d279051a3e681e8de4c3cfcda88e94 1754 gcc-sh-elf_3.dsc
6c9dd14110fd0e348f4aae99d4751527c5806364f9bedd84c50c6d7325c40d62 7980 gcc-sh-elf_3.tar.xz
4f2ebe1a786439d7ce29e1533cca4ef0c0e27126a0b2f12b66a4f7fd7e7f49b7 6419 gcc-sh-elf_3_source.buildinfo
Files:
36b9f600ba71661884f20acc8bbe5776 1754 devel optional gcc-sh-elf_3.dsc
844d3bf809728e83c0950b81dd1d9097 7980 devel optional gcc-sh-elf_3.tar.xz
089f61d575166e1e5cb20b5003e90b81 6419 devel optional gcc-sh-elf_3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmJNkQQQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFAs9DADSYW3jNug2Z0RQh3XH8U+rcCcA02r4aaxR
kfVwAAOQRogE7B7Dns+H70L4Csz/6qOg84kqhGrxEbxGJYp7JAbbx49JdQa5cCa7
88fEVmaS1oJ8D0+ZPx+xHKtJZMIynxL4gVOBMYkuZfp2RLtAhUNe0yxcCEF3gtkp
+q6m3YGq4xzvFKHZMuSCtMfYoPttf++YUC47GegV9ot4py/qJ3TOj7QaMYtnc5wc
YDL/bYoZOwLINdIFZag64vUZY4Jo7fq2Q0qMs9wh7BjxmtL3Wlzdvs+9b8mZ1AuB
GVZ8Yp6vYF5sy/pAb7wi3+/WK9BXKqIczPe9yT5nU+ygXUiAYlB7FrtSkZAXZV1b
0gjY8S9DrXd1Qga3lDNkJhVDlky7q5K3Vjb+P/R7+BP1hNkPsOkLil+N6nDx9653
01uogNXOnkSR1R1zfSDCvkAoYQvI1LE4LAx9U98u5qqVRO7fwWdgjGSRbxic+jMC
AUa/xPODaTa4dNQU4i6QWx7GL6nfn74=
=sm2j
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 14 Jul 2022 07:24:31 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:03:35 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.