commit: bf87bbf6fb6364de9da61a716c3c5535968766bf Author: Stefan Strogin <steils <AT> gentoo <DOT> org> AuthorDate: Wed Aug 5 21:43:47 2020 +0000 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> CommitDate: Wed Aug 5 21:47:12 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf87bbf6
net-misc/curl: fix USE=libressl logic, remove it from REQUIRED_USE USE=libressl must not be mutually exclusive to USE=openssl or any other USE flag. Also USE=openssl must be enabled when using USE=libressl, so that dependencies are checked correctly. Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> net-misc/curl/curl-7.71.1-r1.ebuild | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/net-misc/curl/curl-7.71.1-r1.ebuild b/net-misc/curl/curl-7.71.1-r1.ebuild index 5b747bdf2ce..628e487a4f1 100644 --- a/net-misc/curl/curl-7.71.1-r1.ebuild +++ b/net-misc/curl/curl-7.71.1-r1.ebuild @@ -29,15 +29,13 @@ RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) dev-libs/nettle:0=[${MULTILIB_USEDEP}] app-misc/ca-certificates ) - libressl? ( - dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}] - ) mbedtls? ( net-libs/mbedtls:0=[${MULTILIB_USEDEP}] app-misc/ca-certificates ) openssl? ( - dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}] + !libressl? ( dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}] ) ) nss? ( dev-libs/nss:0[${MULTILIB_USEDEP}] @@ -76,13 +74,11 @@ BDEPEND="virtual/pkgconfig )" # c-ares must be disabled for threads -# only one of libressl or openssl can be enabled # only one default ssl provider can be enabled REQUIRED_USE=" winssl? ( elibc_Winnt ) threads? ( !adns ) ssl? ( - libressl? ( !openssl ) ^^ ( curl_ssl_gnutls curl_ssl_libressl @@ -131,10 +127,6 @@ multilib_src_configure() { einfo "SSL provided by gnutls" myconf+=( --with-gnutls --with-nettle ) fi - if use libressl || use curl_ssl_libressl; then - einfo "SSL provided by LibreSSL" - myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) - fi if use mbedtls || use curl_ssl_mbedtls; then einfo "SSL provided by mbedtls" myconf+=( --with-mbedtls ) @@ -143,7 +135,7 @@ multilib_src_configure() { einfo "SSL provided by nss" myconf+=( --with-nss ) fi - if use openssl || use curl_ssl_openssl; then + if use openssl || use curl_ssl_openssl || use curl_ssl_libressl; then einfo "SSL provided by openssl" myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) fi