Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Whitelist 10.8.2 Supplemental Update static libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Nov 26, 2012
1 parent ec5502d commit 7908ac3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Library/Homebrew/cmd/doctor.rb
Expand Up @@ -118,7 +118,16 @@ def check_for_stray_dylibs

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.
Expand All @@ -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

Expand Down

0 comments on commit 7908ac3

Please sign in to comment.