From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 411BC158020 for ; Fri, 23 Dec 2022 01:29:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DEF3E07B2; Fri, 23 Dec 2022 01:29:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10E3EE07B2 for ; Fri, 23 Dec 2022 01:29:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DC7193413C4 for ; Fri, 23 Dec 2022 01:29:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2DBF475 for ; Fri, 23 Dec 2022 01:29:16 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671758922.26ad093791c6f0d4953b939e87eb259b49eb3b89.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/curl/, net-misc/curl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/curl/curl-7.87.0.ebuild net-misc/curl/files/curl-7.87.0-gnutls-openssl-build.patch X-VCS-Directories: net-misc/curl/files/ net-misc/curl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 26ad093791c6f0d4953b939e87eb259b49eb3b89 X-VCS-Branch: master Date: Fri, 23 Dec 2022 01:29:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8186e7d1-121b-4f02-a6ae-6df00af49e4f X-Archives-Hash: 4cfd134e7e4012b6618f0440eaa5a29b commit: 26ad093791c6f0d4953b939e87eb259b49eb3b89 Author: Sam James gentoo org> AuthorDate: Fri Dec 23 01:28:08 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Dec 23 01:28:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26ad0937 net-misc/curl: fix build w/ USE='gnutls openssl' Closes: https://bugs.gentoo.org/887833 Signed-off-by: Sam James gentoo.org> net-misc/curl/curl-7.87.0.ebuild | 16 +++++---- .../files/curl-7.87.0-gnutls-openssl-build.patch | 39 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 7 deletions(-) diff --git a/net-misc/curl/curl-7.87.0.ebuild b/net-misc/curl/curl-7.87.0.ebuild index f804460a11c1..128b0427d016 100644 --- a/net-misc/curl/curl-7.87.0.ebuild +++ b/net-misc/curl/curl-7.87.0.ebuild @@ -37,16 +37,16 @@ RDEPEND="ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] ) ssl? ( gnutls? ( - net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}] - dev-libs/nettle:0=[${MULTILIB_USEDEP}] + net-libs/gnutls:=[static-libs?,${MULTILIB_USEDEP}] + dev-libs/nettle:=[${MULTILIB_USEDEP}] app-misc/ca-certificates ) mbedtls? ( - net-libs/mbedtls:0=[${MULTILIB_USEDEP}] + net-libs/mbedtls:=[${MULTILIB_USEDEP}] app-misc/ca-certificates ) openssl? ( - dev-libs/openssl:0=[sslv3(-)=,static-libs?,${MULTILIB_USEDEP}] + dev-libs/openssl:=[sslv3(-)=,static-libs?,${MULTILIB_USEDEP}] ) nss? ( dev-libs/nss:0[${MULTILIB_USEDEP}] @@ -63,8 +63,8 @@ RDEPEND="ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) net-libs/ngtcp2[ssl,${MULTILIB_USEDEP}] ) quiche? ( >=net-libs/quiche-0.3.0[${MULTILIB_USEDEP}] ) - idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] ) - adns? ( net-dns/c-ares:0=[${MULTILIB_USEDEP}] ) + idn? ( net-dns/libidn2:=[static-libs?,${MULTILIB_USEDEP}] ) + adns? ( net-dns/c-ares:=[${MULTILIB_USEDEP}] ) kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] ) ssh? ( net-libs/libssh2[${MULTILIB_USEDEP}] ) @@ -99,6 +99,8 @@ MULTILIB_CHOST_TOOLS=( PATCHES=( "${FILESDIR}"/${PN}-7.30.0-prefix.patch "${FILESDIR}"/${PN}-respect-cflags-3.patch + + "${FILESDIR}"/${P}-gnutls-openssl-build.patch ) src_prepare() { @@ -121,7 +123,7 @@ multilib_src_configure() { if use gnutls || use curl_ssl_gnutls; then einfo "SSL provided by gnutls" - myconf+=( --with-gnutls --with-nettle ) + myconf+=( --with-gnutls ) fi if use mbedtls || use curl_ssl_mbedtls; then einfo "SSL provided by mbedtls" diff --git a/net-misc/curl/files/curl-7.87.0-gnutls-openssl-build.patch b/net-misc/curl/files/curl-7.87.0-gnutls-openssl-build.patch new file mode 100644 index 000000000000..88463dc003f7 --- /dev/null +++ b/net-misc/curl/files/curl-7.87.0-gnutls-openssl-build.patch @@ -0,0 +1,39 @@ +https://bugs.gentoo.org/887833 +https://github.com/curl/curl/issues/10110 +https://github.com/curl/curl/commit/aef4dc892d012d990c85c7bad0d9d06c2ebfa775 + +From aef4dc892d012d990c85c7bad0d9d06c2ebfa775 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg +Date: Thu, 22 Dec 2022 17:40:26 +0100 +Subject: [PATCH] md4: fix build with GnuTLS + OpenSSL v1 + +Reported-by: Esdras de Morais da Silva + +Fixes #10110 +Closes #10142 +--- a/lib/md4.c ++++ b/lib/md4.c +@@ -86,11 +86,7 @@ + #include "memdebug.h" + + +-#if defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4) +- +-#elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4) +- +-#elif defined(USE_GNUTLS) ++#if defined(USE_GNUTLS) + + typedef struct md4_ctx MD4_CTX; + +@@ -109,6 +105,10 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx) + md4_digest(ctx, MD4_DIGEST_SIZE, result); + } + ++#elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4) ++ ++#elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4) ++ + #elif defined(AN_APPLE_OS) + typedef CC_MD4_CTX MD4_CTX; +