Catch LibreSSL libtls as well
Update the description to reflect that we may be talking about either crypto library and neither is okay. :)
This commit is contained in:
parent
bf18808930
commit
a4b4b9cd90
@ -29,13 +29,14 @@ module FormulaCellarChecks
|
|||||||
keg = Keg.new(formula.prefix)
|
keg = Keg.new(formula.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| %r{/usr/lib/lib(crypto|ssl)\..*dylib}.match dll }
|
dlls.any? { |dll| %r{/usr/lib/lib(crypto|ssl|tls)\..*dylib}.match dll }
|
||||||
end
|
end
|
||||||
return if system_openssl.empty?
|
return if system_openssl.empty?
|
||||||
|
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
object files were linked against system openssl
|
object files were linked against system openssl
|
||||||
These object files were linked against the deprecated system OpenSSL.
|
These object files were linked against the deprecated system OpenSSL or
|
||||||
|
the system's private LibreSSL.
|
||||||
Adding `depends_on "openssl"` to the formula may help.
|
Adding `depends_on "openssl"` to the formula may help.
|
||||||
#{system_openssl * "\n "}
|
#{system_openssl * "\n "}
|
||||||
EOS
|
EOS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user