Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
ff356b61
Commit
ff356b61
authored
12 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
Whitelist 10.8.2 Supplemental Update static libs.
Fixes Homebrew/homebrew#16215.
parent
faf51f25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/cmd/doctor.rb
+11
-2
11 additions, 2 deletions
Library/Homebrew/cmd/doctor.rb
with
11 additions
and
2 deletions
Library/Homebrew/cmd/doctor.rb
+
11
−
2
View file @
ff356b61
...
...
@@ -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
unbrewe
d_alibs
.
each
{
|
f
|
s
<<
"
#{
f
}
"
}
ba
d_alibs
.
each
{
|
f
|
s
<<
"
#{
f
}
"
}
s
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment