x11-misc/macopix: Fix build with >=dev-libs/openssl-1.1.0

See also: https://www.openssl.org/docs/man1.1.0/man3/ERR_free_strings.html

Closes: https://bugs.gentoo.org/756322
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2021-05-15 14:47:03 +02:00
parent 0bc52c23a3
commit 566168baf8
No known key found for this signature in database
GPG Key ID: 444B0F96FFD22CCB
2 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,10 @@
--- a/src/http-client.c
+++ b/src/http-client.c
@@ -516,7 +516,6 @@
SSL_shutdown(ssl);
SSL_free(ssl);
SSL_CTX_free(ctx);
- ERR_free_strings();
close(command_socket);

View File

@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="MaCoPiX (Mascot Constructive Pilot for X) is a desktop mascot application"
@ -43,15 +44,17 @@ RDEPEND="
!gnutls? ( dev-libs/openssl:0= )
x11-libs/gtk+:3
"
DEPEND="
${RDEPEND}
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-3.4.0-CVE-2015-8614.patch
"${FILESDIR}"/${PN}-3.4.0-Werror.patch
"${FILESDIR}"/${PN}-3.4.0-fno-common.patch
"${FILESDIR}"/${PN}-3.4.0-windres.patch
"${FILESDIR}"/${PN}-3.4.0-openssl-1.1.0.patch
)
src_prepare() {