brew doctor - add libiconv check
This commit is contained in:
parent
a7e6e71405
commit
5efc579f76
@ -310,8 +310,9 @@ def check_pkg_config_paths
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_gettext
|
def check_for_gettext
|
||||||
if File.exist? "#{HOMEBREW_PREFIX}/lib/libgettextlib.dylib" or
|
if %w[lib/libgettextlib.dylib
|
||||||
File.exist? "#{HOMEBREW_PREFIX}/lib/libintl.dylib"
|
lib/libintl.dylib
|
||||||
|
include/libintl.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
|
||||||
puts <<-EOS.undent
|
puts <<-EOS.undent
|
||||||
gettext was detected in your PREFIX.
|
gettext was detected in your PREFIX.
|
||||||
|
|
||||||
@ -322,6 +323,26 @@ def check_for_gettext
|
|||||||
otherwise have a `depends_on 'gettext'` will pick up gettext anyway
|
otherwise have a `depends_on 'gettext'` will pick up gettext anyway
|
||||||
during the `./configure` step.
|
during the `./configure` step.
|
||||||
|
|
||||||
|
If you have a non-Homebrew provided gettext, other problems will happen
|
||||||
|
especially if it wasn't compiled with the proper architectures.
|
||||||
|
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def check_for_iconv
|
||||||
|
if %w[lib/libiconv.dylib
|
||||||
|
include/iconv.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
|
||||||
|
puts <<-EOS.undent
|
||||||
|
libiconv was detected in your PREFIX.
|
||||||
|
|
||||||
|
Homebrew doesn't provide a libiconv formula, and expects to link against
|
||||||
|
the system version in /usr/lib.
|
||||||
|
|
||||||
|
If you have a non-Homebrew provided libiconv, many formulae will fail
|
||||||
|
to compile or link, especially if it wasn't compiled with the proper
|
||||||
|
architectures.
|
||||||
|
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user