Fix bundled gems installation when relative loading
This commit is contained in:
parent
ccb0572ff9
commit
8a3663789c
|
@ -853,9 +853,6 @@ module RbInstall
|
||||||
def write_cache_file
|
def write_cache_file
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_extensions
|
|
||||||
end if /mswin|mingw/ =~ RUBY_PLATFORM || RbConfig::CONFIG["CROSS_COMPILING"] == "yes"
|
|
||||||
|
|
||||||
def shebang(bin_file_name)
|
def shebang(bin_file_name)
|
||||||
path = File.join(gem_dir, spec.bindir, bin_file_name)
|
path = File.join(gem_dir, spec.bindir, bin_file_name)
|
||||||
first_line = File.open(path, "rb") {|file| file.gets}
|
first_line = File.open(path, "rb") {|file| file.gets}
|
||||||
|
@ -907,6 +904,13 @@ module RbInstall
|
||||||
RbInstall.no_write(options) {super}
|
RbInstall.no_write(options) {super}
|
||||||
end
|
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)
|
def generate_bin_script(filename, bindir)
|
||||||
name = formatted_program_filename(filename)
|
name = formatted_program_filename(filename)
|
||||||
unless $dryrun
|
unless $dryrun
|
||||||
|
|
Loading…
Reference in New Issue