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

fiddle: need to update configure after updating config tools

This commit is contained in:
Nobuyoshi Nakada 2020-05-27 00:30:18 +09:00
parent f8e703e2b0
commit 135c6a4b99
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 18 additions and 0 deletions

View file

@ -10,3 +10,5 @@ https://ftp.osuosl.org/pub/blfs/conglomeration/libffi/$(pkg).tar.gz \
$(pkg)/config.guess -> /tool/config.guess
$(pkg)/config.sub -> /tool/config.sub
! chdir: $(pkg)| autoconf

View file

@ -125,6 +125,15 @@ class ExtLibs
end
end
def do_exec(command, dir, dest)
dir = dir ? File.join(dest, dir) : dest
if $VERBOSE
$stdout.puts "running #{command.dump} under #{dir}"
$stdout.flush
end
system(command, chdir: dir) or raise "failed #{command.dump}"
end
def do_command(mode, dest, url, cache_dir, chksums)
extracted = false
base = /.*(?=\.tar(?:\.\w+)?\z)/
@ -206,6 +215,13 @@ class ExtLibs
do_patch(dest, patch, args)
end
next
elsif /^!\s*(?:chdir:\s*([^|\s]+)\|\s*)?(.*)/ =~ line
if extracted and (mode == :all or mode == :patch)
command = vars.expand($2.strip)
chdir = $1 and chdir = vars.expand(chdir)
do_exec(command, chdir, dest)
end
next
elsif /->/ =~ line
if extracted and (mode == :all or mode == :patch)
link, file = $`.strip, $'.strip