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
This commit is contained in:
parent
ebaf56c013
commit
2d1032075a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue