From af3ad3cb86faf73b3c9f089fa496a0e01f43b9f0 Mon Sep 17 00:00:00 2001 From: Xu Cheng <git@xuc.me> Date: Wed, 17 Aug 2016 22:52:19 +0800 Subject: [PATCH] disable sandbox for 10.5 Although `sandbox-exec` is available in 10.5, it has very limit support on the DSL for sandbox profile file(.sb file). Therefore, sandbox for Homebrew on 10.5 is broken. Closes #735. Signed-off-by: Xu Cheng <git@xuc.me> --- Library/Homebrew/sandbox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index b1493369a1..dece2e4a58 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -8,7 +8,7 @@ class Sandbox ].freeze def self.available? - OS.mac? && File.executable?(SANDBOX_EXEC) + OS.mac? && OS::Mac.version >= "10.6" && File.executable?(SANDBOX_EXEC) end def self.formula?(formula) -- GitLab