doctor: avoid using MACOS_VERSION

This commit is contained in:
Jack Nagel 2013-10-08 23:32:22 -05:00
parent a5f68bb874
commit b2516f9989

View File

@ -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