Debian Bug report logs - #996194
gcc-arm-none-eabi: reproducible builds: embeds path to various binaries

version graph

Package: src:gcc-arm-none-eabi; Maintainer for src:gcc-arm-none-eabi is Agustin Henze <tin@debian.org>;

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

Date: Tue, 12 Oct 2021 03:09:02 UTC

Severity: normal

Tags: patch

Fixed in version gcc-arm-none-eabi/15:10.3-2021.07-2

Done: Keith Packard <keithp@keithp.com>

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, Agustin Henze <tin@debian.org>:
Bug#996194; Package src:gcc-arm-none-eabi. (Tue, 12 Oct 2021 03:09: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, Agustin Henze <tin@debian.org>. (Tue, 12 Oct 2021 03:09: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: gcc-arm-none-eabi: reproducible builds: embeds path to various binaries
Date: Mon, 11 Oct 2021 20:04:02 -0700
[Message part 1 (text/plain, inline)]
Source: gcc-arm-none-eabi
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-arm-none-eabi.html

  /usr/lib/gcc/arm-none-eabi/10.3.1/install-tools/fixincl

  /bin/sed
vs.
  /usr/bin/sed

  /usr/lib/gcc/arm-none-eabi/10.3.1/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 does
reduce the number of things that vary in the resulting build.

Thanks for maintaining gcc-arm-none-eabi!

live well,
  vagrant
[0001-debian-rules-Pass-variables-to-configure-to-make-the.patch (text/x-diff, inline)]
From 4ee144c5271da7ab35e866a8aa84ad4b74b22021 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 12 Oct 2021 02:21:23 +0000
Subject: [PATCH 1/2] 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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index a3d2833a4..07d9a2571 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,7 +65,11 @@ CONFIGURE_GCC_FLAGS = \
 	--without-newlib \
 	$(MULTILIB_LIST) \
 	$(BUILDFLAGS) \
-	$(TARGET_TOOLS)
+	$(TARGET_TOOLS) \
+	SED=/bin/sed \
+	SHELL=/bin/sh \
+	BASH=/bin/bash \
+	CONFIG_SHELL=/bin/bash \
 
 %:
 	dh $@ -D$(GCC_SOURCE_DIR) -B$(GCC_BUILD_DIR) --parallel --with autoreconf
-- 
2.30.2

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

Reply sent to Keith Packard <keithp@keithp.com>:
You have taken responsibility. (Fri, 29 Oct 2021 18:36:06 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 29 Oct 2021 18:36:06 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 996194-close@bugs.debian.org
Subject: Bug#996194: fixed in gcc-arm-none-eabi 15:10.3-2021.07-2
Date: Fri, 29 Oct 2021 18:33:53 +0000
Source: gcc-arm-none-eabi
Source-Version: 15:10.3-2021.07-2
Done: Keith Packard <keithp@keithp.com>

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

Debian distribution maintenance software
pp.
Keith Packard <keithp@keithp.com> (supplier of updated gcc-arm-none-eabi 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: Fri, 29 Oct 2021 10:56:10 -0700
Source: gcc-arm-none-eabi
Architecture: source
Version: 15:10.3-2021.07-2
Distribution: unstable
Urgency: medium
Maintainer: Agustin Henze <tin@debian.org>
Changed-By: Keith Packard <keithp@keithp.com>
Closes: 960166 996194 996572 996573
Changes:
 gcc-arm-none-eabi (15:10.3-2021.07-2) unstable; urgency=medium
 .
   * debian/rules: Generate tarball reproducibly. (Closes: #996194)
 .
   * debian/rules: Pass variables to configure to make the package
     build reproducibly regardless of usrmerge. (Closes: #996572)
 .
   * debian/control: Set Rules-Requires-Root to "no". (Closes: #996573)
 .
   * debian/control: mark gcc-arm-none-eabi Multi-Arch:
     foreign. (Closes: #960166)
Checksums-Sha1:
 2abb5e3374d6b64571bd6d3d7fe417b9f32b548b 2532 gcc-arm-none-eabi_10.3-2021.07-2.dsc
 0b24dc8c4f764455a51a5160d29a61403a796ffc 20828 gcc-arm-none-eabi_10.3-2021.07-2.debian.tar.xz
 6889040cecbcc1e3c4df40c3f6c70c86f1c951d1 8475 gcc-arm-none-eabi_10.3-2021.07-2_amd64.buildinfo
Checksums-Sha256:
 a5924998d89efab992a4fc27a3c389c24d9657bda979db7a4ff4c9f7450d43de 2532 gcc-arm-none-eabi_10.3-2021.07-2.dsc
 2d1b53745a137e354284a085afe4320aa8a126f8c89dd46eaa532fdc9eafb40e 20828 gcc-arm-none-eabi_10.3-2021.07-2.debian.tar.xz
 faa9c420ad78a62073225b392e4855c2f9af77e6fec2518f0a8fd0eb2bd38175 8475 gcc-arm-none-eabi_10.3-2021.07-2_amd64.buildinfo
Files:
 8d235302743bec91a3fac0e83c25dfdd 2532 devel optional gcc-arm-none-eabi_10.3-2021.07-2.dsc
 5ea3d73289bb50bc22d77759b7162391 20828 devel optional gcc-arm-none-eabi_10.3-2021.07-2.debian.tar.xz
 f97a5a18b37f71f28a4954823e46b701 8475 devel optional gcc-arm-none-eabi_10.3-2021.07-2_amd64.buildinfo

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

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAmF8OsAACgkQ2yIaaQAA
ABEA9g/6Ar4Jzi/q6A91ezVHbjn6FMBFxQFgOa70rJ3szu30l/u99kxC1uDq48HK
67N068CeL8CZ7Jx0LX0VxgFdyJ2rLlju7tUXV+8C525bnU48gJPVTUaRb4JNl4Ey
a52fRKPXS0YyItZiVyQ6In0do4p1/iogSXiPSmt5i2DBltgLSvX3wDjvH03mCF/i
bwtXFgPyPgTi6XS92DVz0GiyMf5qbxIvy2LW6he1amuO2Xk9dunWzfhAPA2TM17q
MMvaJG6yAuUPaknK3Iv0kXeDIzzBqAgVJvFxjbjbqPvmBbNFFU9zODjJYU2/sZA3
zorRSEM5zsB7FXuwBnlhxk5T2UMeFeDGSDPUvOw5zq9yIocZbgvVqkmx8s9KLIan
IO0muaftGVOABQmguT9ocK3LAZUTt2JlWlrm3H3xpIReyf+NziLDuxv+BtcEbIPw
q41pecPbOVvH7YTP1r/vz9CJC9Td5jnnYq+gWeq5TUnCJSOt2VFPb+eMgHNlFkTw
IWU8u78lqmbNsNL2WtraEIoqRD/qDLDSm7nYSyvwB4BtaEvjbcYpxC5UCxp3CXnU
02ELyV3Nd1Cs3vwTKiTXUH1KkW7YH8z9SYqSjPP4E8L7p/fWlMqfwlbN/Up9DDda
jBbqXg0wZ7IPY6nN9lYX3sTXSgmLn+dUa66GCuoqiKwRD8ENTxY=
=jNEM
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 18 Dec 2021 07:34:47 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:59:03 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.