doctor: exempt android-ndk from check_openssl_links
Closes Homebrew/homebrew#33415.
This commit is contained in:
parent
044393641e
commit
4421d8f85c
@ -134,9 +134,10 @@ module FormulaCellarChecks
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_openssl_links prefix
|
def check_openssl_links
|
||||||
return unless prefix.directory?
|
return unless f.prefix.directory?
|
||||||
keg = Keg.new(prefix)
|
return if f.name == "android-ndk"
|
||||||
|
keg = Keg.new(f.prefix)
|
||||||
system_openssl = keg.mach_o_files.select do |obj|
|
system_openssl = keg.mach_o_files.select do |obj|
|
||||||
dlls = obj.dynamically_linked_libraries
|
dlls = obj.dynamically_linked_libraries
|
||||||
dlls.any? { |dll| /\/usr\/lib\/lib(crypto|ssl).(\d\.)*dylib/.match dll }
|
dlls.any? { |dll| /\/usr\/lib\/lib(crypto|ssl).(\d\.)*dylib/.match dll }
|
||||||
@ -162,7 +163,7 @@ module FormulaCellarChecks
|
|||||||
audit_check_output(check_generic_executables(f.sbin))
|
audit_check_output(check_generic_executables(f.sbin))
|
||||||
audit_check_output(check_shadowed_headers)
|
audit_check_output(check_shadowed_headers)
|
||||||
audit_check_output(check_easy_install_pth(f.lib))
|
audit_check_output(check_easy_install_pth(f.lib))
|
||||||
audit_check_output(check_openssl_links(f.prefix))
|
audit_check_output(check_openssl_links)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user