Bug#1000946: gcc-riscv64-unknown-elf: reproducible builds: embeds path to various binaries
Vagrant Cascadian
vagrant at reproducible-builds.org
Wed Dec 1 03:18:33 GMT 2021
Source: gcc-riscv64-unknown-elf
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: usrmerge shell
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org, keithp at keithp.com
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-riscv64-unknown-elf.html
/usr/lib/gcc/riscv64-unknown-elf/8.3.0/install-tools/fixincl
/bin/sed
vs.
/usr/bin/sed
/usr/lib/gcc/riscv64-unknown-elf/8.3.0/install-tools/mkheaders
mkinstalldirs="/bin/bash·${itoolsdir}/mkinstalldirs"
vs.
mkinstalldirs="/bin/sh·${itoolsdir}/mkinstalldirs"
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
build reproducibly in bookworm/testing once binutils-riscv64-unknown-elf
is built with deterministic archives enabled.
Thanks for maintaining gcc-riscv64-unknown-elf!
live well,
vagrant
p.s. more deja-vu?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-variables-to-configure-to-make-the.patch
Type: text/x-diff
Size: 1018 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20211130/30260188/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20211130/30260188/attachment.sig>
More information about the Reproducible-bugs
mailing list