[前][次][番号順一覧][スレッド一覧]

ruby-changes:72909

From: Nobuyoshi <ko1@a...>
Date: Fri, 12 Aug 2022 15:55:58 +0900 (JST)
Subject: [ruby-changes:72909] a3a6d2d9a3 (master): No bundled gems to be installed from gem now

https://git.ruby-lang.org/ruby.git/commit/?id=a3a6d2d9a3

From a3a6d2d9a390697dfd0ae9f808cb301680a6f24a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 12 Aug 2022 13:40:36 +0900
Subject: No bundled gems to be installed from gem now

---
 tool/rbinstall.rb | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index e6fff940ee..e6d0f592f5 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -1071,28 +1071,8 @@ install?(:ext, :comm, :gem, :'bundled-gems') do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L1071
     prepare "bundled gem cache", gem_dir+"/cache"
     install installed_gems, gem_dir+"/cache"
   end
-  next if gems.empty?
-  if defined?(Zlib)
-    silent = Gem::SilentUI.new
-    gems.each do |gem|
-      package = Gem::Package.new(gem)
-      inst = RbInstall::GemInstaller.new(package, options)
-      inst.spec.extension_dir = "#{extensions_dir}/#{inst.spec.full_name}"
-      begin
-        Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
-      rescue Gem::InstallError
-        next
-      end
-      gemname = File.basename(gem)
-      puts "#{INDENT}#{gemname}"
-    end
-    # fix directory permissions
-    # TODO: Gem.install should accept :dir_mode option or something
-    File.chmod($dir_mode, *Dir.glob(install_dir+"/**/"))
-    # fix .gemspec permissions
-    File.chmod($data_mode, *Dir.glob(install_dir+"/specifications/*.gemspec"))
-  else
-    puts "skip installing bundled gems because of lacking zlib"
+  unless gems.empty?
+    puts "skipped bundled gems: #{gems.join(' ')}"
   end
 end
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]