[DRE-maint] Bug#1006471: ruby3.0: reproducible builds: embeds path to various binaries

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Feb 25 23:26:51 GMT 2022


Source: ruby3.0
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

The paths to various binaries, which differs on a usrmerge
vs. non-usrmerge system, are embedded in rbconfig.rb:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/ruby3.0.html

  /usr/lib/x86_64-linux-gnu/ruby/3.0.0/rbconfig.rb

  CONFIG["EGREP"]·=·"/bin/grep·-E"
  vs.
  CONFIG["EGREP"]·=·"/usr/bin/grep·-E"

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 on unstable and experimental), but should build reproducibly once
it migrates to bookworm/testing!


Thanks for maintaining ruby3.0!


live well,
  vagrant
-------------- 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: 1306 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220225/bcc2e7dd/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/pkg-ruby-extras-maintainers/attachments/20220225/bcc2e7dd/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list