ruby-changes:72557
From: Yuta <ko1@a...>
Date: Fri, 15 Jul 2022 13:14:51 +0900 (JST)
Subject: [ruby-changes:72557] ed8c21bbd5 (master): Ensure symlinks to bundled gem with exts have parent dir
https://git.ruby-lang.org/ruby.git/commit/?id=ed8c21bbd5 From ed8c21bbd5071b52d0d0612eadbdad8fe192e974 Mon Sep 17 00:00:00 2001 From: Yuta Saito <kateinoigakukun@g...> Date: Thu, 14 Jul 2022 17:32:29 +0000 Subject: Ensure symlinks to bundled gem with exts have parent dir When configuring with `--disable-rpath` and `--static-linked-ext` (e.g. building for WASI), `extmk.rb` doesn't build exts under bundled gems, and `.bundle/gems/#{gemname}-#{ver}` are not created due to no call of `extmake`. b2491783986084770f6f97552f27b868622730cf starts creating symlink at `.bundle/gems/#{gemname}-#{ver}/lib`, but the parent dir is not created, so configuration aginst debug and rbs gems were failed. --- ext/extmk.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/extmk.rb b/ext/extmk.rb index 7a09be6963..ce8e9b88c5 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -603,6 +603,7 @@ if @gemname https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L603 puts "using #{gemlib}" else begin + FileUtils.mkdir_p(File.dirname(gemlib)) File.symlink(relative_from(src_gemlib, ".."), gemlib) puts "linked #{gemlib}" rescue NotImplementedError, Errno::EPERM -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/