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

Fix bundled gems installation when relative loading

This commit is contained in:
Nobuyoshi Nakada 2022-04-16 09:03:51 +09:00
parent ccb0572ff9
commit 8a3663789c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -853,9 +853,6 @@ module RbInstall
def write_cache_file
end
def build_extensions
end if /mswin|mingw/ =~ RUBY_PLATFORM || RbConfig::CONFIG["CROSS_COMPILING"] == "yes"
def shebang(bin_file_name)
path = File.join(gem_dir, spec.bindir, bin_file_name)
first_line = File.open(path, "rb") {|file| file.gets}
@ -907,6 +904,13 @@ module RbInstall
RbInstall.no_write(options) {super}
end
if RbConfig::CONFIG["LIBRUBY_RELATIVE"] == "yes" || RbConfig::CONFIG["CROSS_COMPILING"] == "yes"
# TODO: always build extensions in bundled gems by build-ext and
# install the built binaries.
def build_extensions
end
end
def generate_bin_script(filename, bindir)
name = formatted_program_filename(filename)
unless $dryrun