• [gentoo-dev] [PATCH 3/3] net-misc/curl: wire up live ebuild for openssl

    From kangie@gentoo.org@21:1/5 to All on Fri Jun 21 15:20:02 2024
    From: Matt Jolly <kangie@gentoo.org>

    Thanks to dev-libs/openssl exposing a QUIC API from
    3.2, cURL is able to use OpenSSL as a QUIC backend.

    This commit enables users to select between the
    `curl_quic_ngtcp2` and `curl_quic_openssl` backends
    via their associated USE_EXPAND and provides a mechanism
    to easily add more backends as they are implemented.

    It also renames the live ebuild's `nghttp3` USE to
    `http3` to support its use as a generic feature
    flag, and to align with net-analyzer/wireshark
    and www-serners/nginx.

    Finally, we get to drop a disgusting pkg-config
    workaround thanks to some upstream efforts
    that render it irrelevant (and detrimental
    to a successful build).

    Signed-off-by: Matt Jolly <kangie@gentoo.org>
    ---
    net-misc/curl/curl-9999.ebuild | 70 +++++++++++++---------------------
    net-misc/curl/metadata.xml | 4 +-
    2 files changed, 30 insertions(+), 44 deletions(-)

    diff --git a/net-misc/curl/curl-9999.ebuild b/net-misc/curl/curl-9999.ebuild index 7f560fb74a9b..b42cca9c5152 100644
    --- a/net-misc/curl/curl-9999.ebuild
    +++ b/net-misc/curl/curl-9999.ebuild
    @@ -26,16 +26,22 @@ fi

    LICENSE="BSD curl ISC test? ( BSD-4 )"
    SLOT="0"
    -IUSE="+adns +alt-svc brotli debug +ftp gnutls gopher +hsts +http2 idn +imap kerberos ldap mbedtls nghttp3 +openssl +pop3"
    -IUSE+=" +psl +progress-meter rtmp rustls samba +smtp ssh ssl sslv3 static-libs test telnet +tftp websockets zstd"
    -# These select the default SSL implementation
    -IUSE+=" curl_ssl_gnutls curl_ssl_mbedtls +curl_ssl_openssl curl_ssl_rustls" +IUSE="+adns +alt-svc brotli debug +ftp gnutls gopher +hsts +http2 http3 idn +imap kerberos ldap mbedtls +openssl +pop3"
    +IUSE+=" +psl +progress-meter quic rtmp rustls samba +smtp ssh ssl sslv3 static-libs test