[DRE-maint] Bug#1006476: ruby3.0: reproducible builds: embeds build path in rbconfig.rb

Vagrant Cascadian vagrant at reproducible-builds.org
Sat Feb 26 01:44:56 GMT 2022


Source: ruby3.0
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The build path is 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["CFLAGS"]·=·"-g·-O2·-ffile-prefix-map=/build/1st/ruby3.0-3.0.2=.·-fstack- ..."
  
  vs.
  CONFIG["CFLAGS"]·=·"-g·-O2·-ffile-prefix-map=/build/2/ruby3.0-3.0.2/2nd=.·-fstack- ..."

The attached patch fixes this by sanitizing rbconfig.rb in debian/rules
to replace occurances of the build path with "BUILDDIR".


An alternate approach might be to avoid shipping this file at all if
possible; I do not know if that is a reasonable thing for ruby.


With this patch and the patch submitted in #1006471 applied, ruby3.0
should build reproducibly on tests.reproducible-builds.org!


Thanks for maintaining ruby3.0!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Strip-the-build-path-from-rbconfig.rb.patch
Type: text/x-diff
Size: 739 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220225/6a436a21/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/6a436a21/attachment.sig>


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