ruby-changes:68242
From: Nobuyoshi <ko1@a...>
Date: Mon, 4 Oct 2021 20:13:47 +0900 (JST)
Subject: [ruby-changes:68242] 3842e723da (master): Leave builddir absolute
https://git.ruby-lang.org/ruby.git/commit/?id=3842e723da From 3842e723da61ca80ed7f8ec7fd74dd71b812c3cd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 4 Oct 2021 17:56:37 +0900 Subject: Leave builddir absolute So that rubygems installer will work to build extension gems. --- tool/fake.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/fake.rb b/tool/fake.rb index 42174052e2..47e3855116 100644 --- a/tool/fake.rb +++ b/tool/fake.rb @@ -24,6 +24,7 @@ posthook = proc do https://github.com/ruby/ruby/blob/trunk/tool/fake.rb#L24 untrace_var(:$ruby, posthook) end prehook = proc do |extmk| +=begin pat = %r[(?:\A(?:\w:|//[^/]+)|\G)/[^/]*] dir = builddir.scan(pat) pwd = Dir.pwd.scan(pat) @@ -35,6 +36,7 @@ prehook = proc do |extmk| https://github.com/ruby/ruby/blob/trunk/tool/fake.rb#L36 builddir = File.join((pwd.empty? ? ["."] : [".."]*pwd.size) + dir) builddir = "." if builddir.empty? end +=end join = proc {|*args| File.join(*args).sub!(/\A(?:\.\/)*/, '')} $topdir ||= builddir $top_srcdir ||= (File.identical?(top_srcdir, dir = join[$topdir, srcdir]) ? -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/