aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-12-31 12:33:21 -0800
committerAdam Vandenberg2011-03-12 11:55:07 -0800
commit9ede899d5d71a1e415f9e6c17632812593875065 (patch)
tree0cbffa5cd8e25159af713bc176703f96eb9d28b3 /Library
parent618617da7354befd8d6930bd7c2cda9a47988d76 (diff)
downloadbrew-9ede899d5d71a1e415f9e6c17632812593875065.tar.bz2
Add expat.framework check to doctor
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 9cbc9b832..3e5901d47 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -586,6 +586,20 @@ def check_for_other_vars
end
end
+def check_for_other_frameworks
+ # Other frameworks that are known to cause problems when present
+ if File.exist? "/Library/Frameworks/expat.framework"
+ puts <<-EOS.undent
+ /Library/Frameworks/expat.framework detected
+
+ This will be picked up by Cmake's build system and likey cause the
+ build to fail, trying to link to a 32-bit version of expat.
+ You may need to move this file out of the way to compile Cmake.
+
+ EOS
+ end
+end
+
module Homebrew extend self
def doctor
read, write = IO.pipe
@@ -620,6 +634,7 @@ module Homebrew extend self
check_for_git
check_for_autoconf
check_for_linked_kegonly_brews
+ check_for_other_frameworks
exit! 0
else