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
9e2fc82a
Commit
9e2fc82a
authored
12 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Use which method in doctor
Signed-off-by:
Jack Nagel
<
jacknagel@gmail.com
>
parent
0c14036a
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
+9
-10
9 additions, 10 deletions
Library/Homebrew/cmd/doctor.rb
with
9 additions
and
10 deletions
Library/Homebrew/cmd/doctor.rb
+
9
−
10
View file @
9e2fc82a
...
@@ -457,23 +457,22 @@ def check_user_path_3
...
@@ -457,23 +457,22 @@ def check_user_path_3
end
end
def
check_which_pkg_config
def
check_which_pkg_config
binary
=
`/usr/bin/
which pkg-config
`
.
chomp
binary
=
which
'
pkg-config
'
return
if
binary
.
empty
?
return
if
binary
.
nil
?
unless
binary
==
"
#{
HOMEBREW_PREFIX
}
/bin/pkg-config"
unless
binary
.
to_s
==
"
#{
HOMEBREW_PREFIX
}
/bin/pkg-config"
then
<<-
EOS
.
undent
<<-
EOS
.
undent
You have a non-Homebrew 'pkg-config' in your PATH:
You have a non-brew 'pkg-config' in your PATH:
#{
binary
}
#{
binary
}
`./configure` may have problems finding brew-installed packages using
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
this other pkg-config.
EOS
EOS
end
end
end
end
def
check_pkg_config_paths
def
check_pkg_config_paths
binary
=
`/usr/bin/
which pkg-config
`
.
chomp
binary
=
which
'
pkg-config
'
return
if
binary
.
empty
?
return
if
binary
.
nil
?
pkg_config_paths
=
`pkg-config --variable pc_path pkg-config`
.
chomp
.
split
(
':'
)
pkg_config_paths
=
`pkg-config --variable pc_path pkg-config`
.
chomp
.
split
(
':'
)
...
...
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