Date: Sat, 04 Dec 2021 19:39:49 +0000 From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 258108] [exp-run] devel/ruby-gems: Update to 3.2.30 (Fixes for Ruby 3.0) Message-ID: <bug-258108-21402-pBgsUazMPF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-258108-21402@https.bugs.freebsd.org/bugzilla/> References: <bug-258108-21402@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258108 --- Comment #38 from deivid.rodriguez@riseup.net --- For what it's worth, I decided to go with the current version of the fix, s= ince 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 refactori= ng 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 DEST= DIR 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 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258108-21402-pBgsUazMPF>