aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-11-26 09:41:02 +0000
committerMike McQuaid2012-11-26 09:41:05 +0000
commit7908ac3341ffe0fa0ab8e463d5ead973fde030b7 (patch)
treef777bdfb76a41c4e24f6b2299616a220d28339aa /Library
parentec5502d7b805bdd87f8f94181657d6c0ee554e1a (diff)
downloadhomebrew-7908ac3341ffe0fa0ab8e463d5ead973fde030b7.tar.bz2
Whitelist 10.8.2 Supplemental Update static libs.
Fixes #16215.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index e939e2a2c..deb09daa1 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -118,7 +118,16 @@ end
def check_for_stray_static_libs
unbrewed_alibs = Dir['/usr/local/lib/*.a'].select { |f| File.file? f and not File.symlink? f }
- return if unbrewed_alibs.empty?
+
+ # Static libs which are generally OK should be added to this list,
+ # with a short description of the software they come with.
+ white_list = {
+ "libsecurity_agent_client.a" => "OS X 10.8.2 Supplemental Update",
+ "libsecurity_agent_server.a" => "OS X 10.8.2 Supplemental Update"
+ }
+
+ bad_alibs = unbrewed_alibs.reject {|d| white_list.key? File.basename(d) }
+ return if bad_alibs.empty?
s = <<-EOS.undent
Unbrewed static libraries were found in /usr/local/lib.
@@ -127,7 +136,7 @@ def check_for_stray_static_libs
Unexpected static libraries:
EOS
- unbrewed_alibs.each{ |f| s << " #{f}" }
+ bad_alibs.each{ |f| s << " #{f}" }
s
end