doctor: remove autotools check

This commit is contained in:
Misty De Meo 2016-04-20 14:26:39 -07:00
parent 35385e8c59
commit f5f41f2079
2 changed files with 0 additions and 30 deletions

View File

@ -1100,22 +1100,6 @@ module Homebrew
end
end
def check_for_autoconf
return unless MacOS::Xcode.installed?
return unless MacOS::Xcode.provides_autotools?
autoconf = which("autoconf")
safe_autoconfs = %w[/usr/bin/autoconf /Developer/usr/bin/autoconf]
return if autoconf.nil? || safe_autoconfs.include?(autoconf.to_s)
<<-EOS.undent
An "autoconf" in your path blocks the Xcode-provided version at:
#{autoconf}
This custom autoconf may cause some Homebrew formulae to fail to compile.
EOS
end
def __check_linked_brew(f)
f.installed_prefixes.each do |prefix|
prefix.find do |src|

View File

@ -204,20 +204,6 @@ class DiagnosticChecksTest < Homebrew::TestCase
HOMEBREW_CELLAR.mkpath
end
def test_check_for_autoconf
MacOS::Xcode.stubs(:installed?).returns true
MacOS::Xcode.stubs(:provides_autotools?).returns true
mktmpdir do |path|
file = "#{path}/autoconf"
FileUtils.touch file
FileUtils.chmod 0755, file
ENV["PATH"] = [path, ENV["PATH"]].join File::PATH_SEPARATOR
assert_match "This custom autoconf",
@checks.check_for_autoconf
end
end
def test_check_tmpdir
ENV["TMPDIR"] = "/i/don/t/exis/t"
assert_match "doesn't exist",