ruby-changes:69595
From: Yusuke <ko1@a...>
Date: Fri, 5 Nov 2021 09:35:08 +0900 (JST)
Subject: [ruby-changes:69595] 30886be9f4 (master): Skip bundled gem with an extension library under with-static-linked-ext
https://git.ruby-lang.org/ruby.git/commit/?id=30886be9f4 From 30886be9f4f42626b94b079885e826335594b8dd Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 4 Nov 2021 13:36:35 +0900 Subject: Skip bundled gem with an extension library under with-static-linked-ext .. mainly to fix emscripten CI http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-wasm64_emscripten/log/20211104T024621Z.fail.html.gz --- tool/rbinstall.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 170a1707d0b..0f86850db7c 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -1039,6 +1039,10 @@ install?(:ext, :comm, :gem, :'bundled-gems') do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L1039 end next unless spec.platform == Gem::Platform::RUBY next unless spec.full_name == gem_name + if !spec.extensions.empty? && CONFIG["EXTSTATIC"] == "static" + puts "skip installation of #{spec.name} #{spec.version}; bundled gem with an extension library is not supported on --with-static-linked-ext" + next + end spec.extension_dir = "#{extensions_dir}/#{spec.full_name}" if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}") spec.extensions[0] ||= "-" -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/