curl: Allow compiling recent versions with MbedTLS 2 (#35947)

Curl 7.79 started supporting MbedTLS 3, but it did not drop support for v2.
This commit is contained in:
Mosè Giordano 2023-03-11 19:17:13 +00:00 committed by GitHub
parent 844701b974
commit 1e9a654f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,7 +273,7 @@ class Curl(NMakePackage, AutotoolsPackage):
conflicts("platform=linux", when="tls=secure_transport", msg="Only supported on macOS") conflicts("platform=linux", when="tls=secure_transport", msg="Only supported on macOS")
depends_on("gnutls", when="tls=gnutls") depends_on("gnutls", when="tls=gnutls")
depends_on("mbedtls@3: +pic", when="@7.79: tls=mbedtls") depends_on("mbedtls@2: +pic", when="@7.79: tls=mbedtls")
depends_on("mbedtls@:2 +pic", when="@:7.78 tls=mbedtls") depends_on("mbedtls@:2 +pic", when="@:7.78 tls=mbedtls")
depends_on("nss", when="tls=nss") depends_on("nss", when="tls=nss")
depends_on("openssl", when="tls=openssl") depends_on("openssl", when="tls=openssl")