[Bug 258108] [exp-run] devel/ruby-gems: Update to 3.2.30 (Fixes for Ruby 3.0)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 258108] devel/ruby-gems: Update to 3.2.26 (Fixes for Ruby 3.0)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Dec 2021 19:39:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258108 --- Comment #38 from deivid.rodriguez@riseup.net --- For what it's worth, I decided to go with the current version of the fix, since it fixes most of the issues with `--destdir` and I don't want to block it on the little issue that I found because fixing it requires a bigger refactoring that I'm not sure when I'll attempt. I hope to release it in the next few days with rubygems 3.2.33. For completeness, the little issue with the current patch is that binstub regeneration inside the DESTDIR only works properly for gems that are also installed globally. So if I have `rake` installed globally, this works: ``` $ gem list rake *** LOCAL GEMS *** rake (13.0.6) $ rm -rf /tmp/foo && gem install rake --install-dir /tmp/foo && (echo "foo" > /tmp/foo/bin/rake) && ruby -Ilib setup.rb --destdir /tmp/foo --prefix / && head -1 /tmp/foo/bin/rake Fetching rake-13.0.6.gem Successfully installed rake-13.0.6 1 gem installed Successfully built RubyGem Name: bundler Version: 2.3.0.dev File: bundler-2.3.0.dev.gem Bundler 2.3.0.dev installed RubyGems 3.3.0.dev installed Regenerating binstubs Regenerating plugins ------------------------------------------------------------------------------ RubyGems installed the following executables: /tmp/foo/bin/gem /tmp/foo/bin/bundle /tmp/foo/bin/bundler #!/Users/deivid/.rbenv/versions/3.0.3/bin/ruby ``` But if I remove the globally installed rake, the `rake` binstub in the DESTDIR is no longer regenerated properly: ``` $ gem uninstall rake --executables --force Removing rake Successfully uninstalled rake-13.0.6 $ rm -rf /tmp/foo && gem install rake --install-dir /tmp/foo && (echo "foo" > /tmp/foo/bin/rake) && ruby -Ilib setup.rb --destdir /tmp/foo --prefix / && head -1 /tmp/foo/bin/rake Fetching rake-13.0.6.gem Successfully installed rake-13.0.6 1 gem installed Successfully built RubyGem Name: bundler Version: 2.3.0.dev File: bundler-2.3.0.dev.gem Bundler 2.3.0.dev installed RubyGems 3.3.0.dev installed Regenerating binstubs Regenerating plugins ------------------------------------------------------------------------------ RubyGems installed the following executables: /tmp/foo/bin/gem /tmp/foo/bin/bundle /tmp/foo/bin/bundler foo ``` -- You are receiving this mail because: You are the assignee for the bug.