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:
parent
81f08edbd6
commit
c57ac4c6e0
Notes:
git
2021-12-21 02:02:17 +09:00
@ -1069,7 +1069,7 @@ install?(:ext, :comm, :gem, :'bundled-gems') do
|
|||||||
gems.each do |gem|
|
gems.each do |gem|
|
||||||
package = Gem::Package.new(gem)
|
package = Gem::Package.new(gem)
|
||||||
inst = RbInstall::GemInstaller.new(package, options)
|
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
|
begin
|
||||||
Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
|
Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
|
||||||
rescue Gem::InstallError
|
rescue Gem::InstallError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user