From c57ac4c6e0acf9b4c1fbb3092eefc89873c5d249 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 21 Dec 2021 01:05:51 +0900 Subject: [PATCH] Fix location of extensions in bundled gems when static-linked-ext Install bundled gem extension files to the gem extension directory under DESTDIR, when static-linked-ext as well as non-static case. --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index c8557a0e48..80d65bba13 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -1069,7 +1069,7 @@ install?(:ext, :comm, :gem, :'bundled-gems') do gems.each do |gem| package = Gem::Package.new(gem) inst = RbInstall::GemInstaller.new(package, options) - inst.spec.extension_dir = with_destdir(inst.spec.extension_dir) + inst.spec.extension_dir = "#{extensions_dir}/#{inst.spec.full_name}" begin Gem::DefaultUserInteraction.use_ui(silent) {inst.install} rescue Gem::InstallError