From bc6db54d03a25fd3df8bfa5cda070141225c78d1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 18 Jan 2023 23:42:18 +0900 Subject: [PATCH] Make installation messages verbose a little [ci skip] --- tool/rbinstall.rb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 8534cf75a3..ee3b0c96be 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -1018,6 +1018,7 @@ install?(:ext, :comm, :gem, :'bundled-gems') do end installed_gems = {} + skipped = {} options = { :install_dir => install_dir, :bin_dir => with_destdir(bindir), @@ -1048,11 +1049,20 @@ install?(:ext, :comm, :gem, :'bundled-gems') do path = "#{srcdir}/.bundle/specifications/#{gem_name}.gemspec" unless File.exist?(path) path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec" - next unless File.exist?(path) + unless File.exist?(path) + skipped[gem_name] = "gemspec not found" + next + end end spec = load_gemspec(path, "#{srcdir}/.bundle/gems/#{gem_name}") - next unless spec.platform == Gem::Platform::RUBY - next unless spec.full_name == gem_name + unless spec.platform == Gem::Platform::RUBY + skipped[gem_name] = "not ruby platform (#{spec.platform})" + next + end + unless spec.full_name == gem_name + skipped[gem_name] = "full name unmatch #{spec.full_name}" + next + end spec.extension_dir = "#{extensions_dir}/#{spec.full_name}" package = RbInstall::DirPackage.new spec ins = RbInstall::UnpackedInstaller.new(package, options) @@ -1110,6 +1120,7 @@ installs = $install.map do |inst| end installs.flatten! installs -= $exclude.map {|exc| $install_procs[exc]}.flatten +puts "Installing to #$destdir" unless installs.empty? installs.each do |block| dir = Dir.pwd begin