From 0dcfdbe0eb9fcc16cbf10df0915fda3054550a5e Mon Sep 17 00:00:00 2001 From: rmnull Date: Fri, 28 Aug 2020 20:45:05 +0530 Subject: [PATCH] enable patchelf.rb writing for devs. --- Library/Homebrew/os/linux/global.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/os/linux/global.rb b/Library/Homebrew/os/linux/global.rb index 32dd99c2fb..f367a86dbb 100644 --- a/Library/Homebrew/os/linux/global.rb +++ b/Library/Homebrew/os/linux/global.rb @@ -1,7 +1,11 @@ # frozen_string_literal: true # enables experimental patchelf.rb write support. -HOMEBREW_PATCHELF_RB_WRITE = ENV["HOMEBREW_PATCHELF_RB_WRITE"].present?.freeze +HOMEBREW_PATCHELF_RB_WRITE = ( + ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank? && + (ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || + (ENV["CI"].blank? && ENV["HOMEBREW_DEVELOPER"].present?)) +).freeze module Homebrew DEFAULT_PREFIX ||= if Homebrew::EnvConfig.force_homebrew_on_linux?