summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-18 23:42:18 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-08-07 09:51:48 +0800
commitbc6db54d03a25fd3df8bfa5cda070141225c78d1 (patch)
tree5d5a6dd389a51a9ca9795f944ba3cc33aed348f1
parent5b0616b25ba8501c08e9b7fead28206ffaa3ab60 (diff)
Make installation messages verbose a little [ci skip]
-rwxr-xr-xtool/rbinstall.rb17
1 files 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