aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_cellar_checks.rb
diff options
context:
space:
mode:
authorTim D. Smith2014-10-20 19:46:29 -0700
committerTim D. Smith2014-10-20 20:00:27 -0700
commitb7b4c591c7c0a46aef4a1d3c5294c4ed88c54939 (patch)
tree076c5785af779a667287f0d24996bd5f680da7f4 /Library/Homebrew/formula_cellar_checks.rb
parented24746b506bfa0bb91d8977c30307d2581cdaff (diff)
downloadhomebrew-b7b4c591c7c0a46aef4a1d3c5294c4ed88c54939.tar.bz2
doctor: exempt android-ndk from check_openssl_links
Closes #33415.
Diffstat (limited to 'Library/Homebrew/formula_cellar_checks.rb')
-rw-r--r--Library/Homebrew/formula_cellar_checks.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb
index 4b5e1cc9e..2c1270151 100644
--- a/Library/Homebrew/formula_cellar_checks.rb
+++ b/Library/Homebrew/formula_cellar_checks.rb
@@ -134,9 +134,10 @@ module FormulaCellarChecks
EOS
end
- def check_openssl_links prefix
- return unless prefix.directory?
- keg = Keg.new(prefix)
+ def check_openssl_links
+ return unless f.prefix.directory?
+ return if f.name == "android-ndk"
+ keg = Keg.new(f.prefix)
system_openssl = keg.mach_o_files.select do |obj|
dlls = obj.dynamically_linked_libraries
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_shadowed_headers)
audit_check_output(check_easy_install_pth(f.lib))
- audit_check_output(check_openssl_links(f.prefix))
+ audit_check_output(check_openssl_links)
end
private