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:
parent
ccb0572ff9
commit
8a3663789c
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue