From abd5b8e1db39b9d3714fb491013ff8a156dcdf27 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 9 Sep 2015 04:38:58 +0000 Subject: extlibs.rb: patch options * tool/extlibs.rb (do_patch): let "patch" command change the working directory and open the patch file there, instead of spawn options, so that proper error message will be shown by the command not just "chdir" or "open". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/extlibs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/extlibs.rb') diff --git a/tool/extlibs.rb b/tool/extlibs.rb index 09db055983..6323d8fdcd 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -70,7 +70,7 @@ def do_patch(dest, patch, args) $stdout.puts "applying #{patch} under #{dest}" $stdout.flush end - Process.wait(Process.spawn("patch", *args, in: File.join(dest, patch), chdir: dest)) + Process.wait(Process.spawn("patch", "-d", dest, "-i", patch, *args)) $?.success? or raise "failed to patch #{patch}" end -- cgit v1.2.3