Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

doctor: rework check_pkg_config_paths

pkg-config can give us this information a colon-separated list; use
that.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit d2c417a02bd7bda51754a5afc67b33724988ff23 1 parent 2fb94e4
@jacknagel jacknagel authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 Library/Homebrew/cmd/doctor.rb
View
9 Library/Homebrew/cmd/doctor.rb
@@ -475,14 +475,7 @@ def check_pkg_config_paths
binary = `/usr/bin/which pkg-config`.chomp
return if binary.empty?
- # Use the debug output to determine which paths are searched
- pkg_config_paths = []
-
- debug_output = `pkg-config --debug 2>&1`
- debug_output.split("\n").each do |line|
- line =~ /Scanning directory '(.*)'/
- pkg_config_paths << $1 if $1
- end
+ pkg_config_paths = `pkg-config --variable pc_path pkg-config`.chomp.split(':')
# Check that all expected paths are being searched
unless pkg_config_paths.include? "/usr/X11/lib/pkgconfig"
Please sign in to comment.
Something went wrong with that request. Please try again.