diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2022-05-13 08:44:17 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2022-05-13 08:44:17 +0900 |
commit | 2d1032075a4654b8b54dde96424f299f7f29f9d6 (patch) | |
tree | 82954056ca820d830e7eb701e10f0aa140576e29 /tool | |
parent | ebaf56c013fa3c24bc680cd7482845b9ed30cda8 (diff) | |
download | ruby-2d1032075a4654b8b54dde96424f299f7f29f9d6.tar.gz |
Stop `build_extensions` when DESTDIR set
Try to fix `make install without root privilege` failures on snapshot CIs.
example: https://github.com/ruby/actions/actions/runs/2315349280
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index df8600d332..cbefb0ebbc 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -904,7 +904,7 @@ module RbInstall RbInstall.no_write(options) {super} end - if RbConfig::CONFIG["LIBRUBY_RELATIVE"] == "yes" || RbConfig::CONFIG["CROSS_COMPILING"] == "yes" + if RbConfig::CONFIG["LIBRUBY_RELATIVE"] == "yes" || RbConfig::CONFIG["CROSS_COMPILING"] == "yes" || ENV["DESTDIR"] # TODO: always build extensions in bundled gems by build-ext and # install the built binaries. def build_extensions |