1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2021-12-21 01:05:51 +09:00
parent 81f08edbd6
commit c57ac4c6e0
Notes: git 2021-12-21 02:02:17 +09:00

View file

@ -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