Enable HOMEBREW_PATCHELF_RB_WRITE for CI and HOMEBREW_DEV_CMD_RUN
Enable HOMEBREW_PATCHELF_RB_WRITE by default for HOMEBREW_DEV_CMD_RUN and CI, but not when building bottles.
This commit is contained in:
parent
4bbf92912b
commit
8a4299d028
@ -84,6 +84,8 @@ module Homebrew
|
||||
end
|
||||
|
||||
def bottle
|
||||
ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"] = "1" unless ENV["HOMEBREW_PATCHELF_RB_WRITE"].present?
|
||||
|
||||
args = bottle_args.parse
|
||||
|
||||
return merge(args: args) if args.merge?
|
||||
|
||||
@ -101,7 +101,7 @@ module ELFShim
|
||||
def patch!(interpreter: nil, rpath: nil)
|
||||
return if interpreter.blank? && rpath.blank?
|
||||
|
||||
if HOMEBREW_PATCHELF_RB_WRITE
|
||||
if HOMEBREW_PATCHELF_RB_WRITE && ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank?
|
||||
save_using_patchelf_rb interpreter, rpath
|
||||
else
|
||||
save_using_patchelf interpreter, rpath
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
# Enables experimental `patchelf.rb` write support.
|
||||
HOMEBREW_PATCHELF_RB_WRITE = (
|
||||
ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank? &&
|
||||
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || ENV["CI"].blank?)
|
||||
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || ENV["CI"].present? || ENV["HOMEBREW_DEV_CMD_RUN"].present?)
|
||||
).freeze
|
||||
|
||||
module Homebrew
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user