summaryrefslogtreecommitdiff
path: root/dev-lang/ruby/files/3.2/010-default-gem-location.patch
blob: 36009ad66f61ec279fa1ee9db70d0b556367f543 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/tool/rbinstall.rb	2022-11-13 08:12:27.373041649 +0100
+++ b/tool/rbinstall.rb	2022-11-13 08:16:09.110406705 +0100
@@ -994,7 +994,7 @@
 end
 
 install?(:ext, :comm, :gem, :'bundled-gems') do
-  gem_dir = Gem.default_dir
+  gem_dir = ENV['GEM_DESTDIR']
   install_dir = with_destdir(gem_dir)
   prepare "bundled gems", gem_dir
   RbInstall.no_write do