1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Stop build_extensions when DESTDIR set

Try to fix `make install without root privilege` failures on snapshot CIs.

example: 2315349280
This commit is contained in:
Kazuhiro NISHIYAMA 2022-05-13 08:44:17 +09:00
parent ebaf56c013
commit 2d1032075a
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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