doctor: be specific about libiconv files detected
Closes Homebrew/homebrew#11417.
This commit is contained in:
parent
90400eceb1
commit
c134ba6c4a
@ -500,17 +500,20 @@ def check_for_gettext
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_iconv
|
def check_for_iconv
|
||||||
if %w[lib/libiconv.dylib
|
iconv_files = %w[lib/iconv.dylib
|
||||||
include/iconv.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
|
include/iconv.h].select { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
|
||||||
|
if !iconv_files.empty?
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
libiconv was detected in your PREFIX.
|
The following libiconv files were detected in #{HOMEBREW_PREFIX}:
|
||||||
|
#{iconv_files.join "\n "}
|
||||||
Homebrew doesn't provide a libiconv formula, and expects to link against
|
Homebrew doesn't provide a libiconv formula, and expects to link against
|
||||||
the system version in /usr/lib.
|
the system version in /usr/lib.
|
||||||
|
|
||||||
If you have a non-Homebrew provided libiconv, many formulae will fail
|
If you have an alternate libiconv, many formulae will fail to compile or
|
||||||
to compile or link, especially if it wasn't compiled with the proper
|
link, especially if it wasn't compiled with the proper architectures.
|
||||||
architectures.
|
|
||||||
EOS
|
EOS
|
||||||
|
else
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user