commit: 31aac77f7d43a553ddd20a1ca65e1fa4aa74ecd8 Author: orbea <orbea <AT> riseup <DOT> net> AuthorDate: Fri Apr 28 17:20:46 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Apr 29 17:51:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31aac77f
net-libs/libssh2: add upstream libressl patch This patch has been accepted upstream and fixes the build libressl >= 3.5.0. Bug: https://bugs.gentoo.org/903001 Upstream-PR: https://github.com/libssh2/libssh2/pull/700 Upstream-Commit: https://github.com/libssh2/libssh2/commit/b952674f120748174ed2c0fb93e7bd78cf355cac Signed-off-by: orbea <orbea <AT> riseup.net> Closes: https://github.com/gentoo/gentoo/pull/30795 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../libssh2/files/libssh2-1.10.0-libressl.patch | 33 ++++++++++++++++++++++ net-libs/libssh2/libssh2-1.10.0.ebuild | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/net-libs/libssh2/files/libssh2-1.10.0-libressl.patch b/net-libs/libssh2/files/libssh2-1.10.0-libressl.patch new file mode 100644 index 000000000000..9cecabd5d01e --- /dev/null +++ b/net-libs/libssh2/files/libssh2-1.10.0-libressl.patch @@ -0,0 +1,33 @@ +https://bugs.gentoo.org/903001 +https://github.com/libssh2/libssh2/pull/700 +https://github.com/libssh2/libssh2/commit/b952674f120748174ed2c0fb93e7bd78cf355cac + +From f0681a4573d7c7f7484d3157ddff7063a200295b Mon Sep 17 00:00:00 2001 +From: Viktor Szakats <com...@vsz.me> +Date: Thu, 19 May 2022 13:25:06 +0000 +Subject: [PATCH] openssl: add support for LibreSSL 3.5.x + +LibreSSL 3.5.0 made more structures opaque, so let's enable existing +support for that when building against these LibreSSL versions. + +Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt +--- + src/openssl.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/openssl.h b/src/openssl.h +index 658b040..09bfd7c 100644 +--- a/src/openssl.h ++++ b/src/openssl.h +@@ -57,8 +57,9 @@ + #include <openssl/pem.h> + #include <openssl/rand.h> + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ +- !defined(LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && \ ++ !defined(LIBRESSL_VERSION_NUMBER)) || \ ++ LIBRESSL_VERSION_NUMBER >= 0x3050000fL + # define HAVE_OPAQUE_STRUCTS 1 + #endif + diff --git a/net-libs/libssh2/libssh2-1.10.0.ebuild b/net-libs/libssh2/libssh2-1.10.0.ebuild index 0b459297cb05..00504d7654e5 100644 --- a/net-libs/libssh2/libssh2-1.10.0.ebuild +++ b/net-libs/libssh2/libssh2-1.10.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -30,6 +30,10 @@ DEPEND=" ${RDEPEND} " +PATCHES=( + "${FILESDIR}"/${P}-libressl.patch #903001 +) + multilib_src_configure() { local crypto_backend=OpenSSL if use gcrypt; then