summaryrefslogtreecommitdiff
path: root/dev-lang/ruby/files/3.2/010-default-gem-location.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/ruby/files/3.2/010-default-gem-location.patch')
-rw-r--r--dev-lang/ruby/files/3.2/010-default-gem-location.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-lang/ruby/files/3.2/010-default-gem-location.patch b/dev-lang/ruby/files/3.2/010-default-gem-location.patch
new file mode 100644
index 000000000000..36009ad66f61
--- /dev/null
+++ b/dev-lang/ruby/files/3.2/010-default-gem-location.patch
@@ -0,0 +1,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