From 94bb92b4c1c27ad32be784975b03a337cd61695d Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 25 Aug 2015 18:48:24 +0100 Subject: [PATCH] doctor: add check for SSL_CERT_DIR Closes Homebrew/homebrew#43154. Closes Homebrew/homebrew#43277. Signed-off-by: Dominyk Tiller --- Library/Homebrew/cmd/doctor.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 910aedc52a..91d215e1aa 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -664,6 +664,17 @@ class Checks end end + def check_for_unsupported_curl_vars + # Support for SSL_CERT_DIR seemed to be removed in the 10.10.5 update. + if MacOS.version >= :yosemite && !ENV["SSL_CERT_DIR"].nil? then <<-EOS.undent + SSL_CERT_DIR support was removed from Apple's curl. + If fetching formulae fails you should: + unset SSL_CERT_DIR + and remove it from #{shell_profile} if present. + EOS + end + end + def check_which_pkg_config binary = which "pkg-config" return if binary.nil?