From b2516f99897414a15a37ca9ed0184054ca4c2224 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 8 Oct 2013 23:32:22 -0500 Subject: [PATCH] doctor: avoid using MACOS_VERSION --- Library/Homebrew/cmd/doctor.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index e7123fd7c4..07d51c345f 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -831,11 +831,12 @@ def check_for_linked_keg_only_brews end def check_for_MACOSX_DEPLOYMENT_TARGET - target_var = ENV['MACOSX_DEPLOYMENT_TARGET'] - if target_var and target_var != MACOS_VERSION.to_s then <<-EOS.undent - MACOSX_DEPLOYMENT_TARGET was set to #{target_var} + target = ENV.fetch('MACOSX_DEPLOYMENT_TARGET') { return } + + unless target == MacOS.version.to_s then <<-EOS.undent + MACOSX_DEPLOYMENT_TARGET was set to #{target.inspect} This is used by Fink, but having it set to a value different from the - current system version (#{MACOS_VERSION}) can cause problems, compiling + current system version (#{MacOS.version}) can cause problems, compiling Git for instance, and should probably be removed. EOS end