summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2022-05-13 08:44:17 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2022-05-13 08:44:17 +0900
commit2d1032075a4654b8b54dde96424f299f7f29f9d6 (patch)
tree82954056ca820d830e7eb701e10f0aa140576e29 /tool/rbinstall.rb
parentebaf56c013fa3c24bc680cd7482845b9ed30cda8 (diff)
downloadruby-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/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
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