From 02d9323c2151a6e83255a000be13220c1c5eefec Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 4 Oct 2021 08:09:08 +0100 Subject: [PATCH] fix build with OpenSSL 3.0 --- libserf-1.3.9-errgetfunc.patch | 13 +++++++++++++ libserf.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libserf-1.3.9-errgetfunc.patch diff --git a/libserf-1.3.9-errgetfunc.patch b/libserf-1.3.9-errgetfunc.patch new file mode 100644 index 0000000..c5ac4a6 --- /dev/null +++ b/libserf-1.3.9-errgetfunc.patch @@ -0,0 +1,13 @@ +--- serf-1.3.9/buckets/ssl_buckets.c.errgetfunc ++++ serf-1.3.9/buckets/ssl_buckets.c +@@ -1204,6 +1204,10 @@ + } + } + ++#ifndef ERR_GET_FUNC ++#define ERR_GET_FUNC(ec) (0) ++#endif ++ + static int ssl_need_client_cert(SSL *ssl, X509 **cert, EVP_PKEY **pkey) + { + serf_ssl_context_t *ctx = SSL_get_app_data(ssl); diff --git a/libserf.spec b/libserf.spec index cd9bf4a..cad3df1 100644 --- a/libserf.spec +++ b/libserf.spec @@ -8,7 +8,7 @@ Name: libserf Version: 1.3.9 -Release: 21%{?dist} +Release: 22%{?dist} Summary: High-Performance Asynchronous HTTP Client Library License: ASL 2.0 URL: http://serf.apache.org/ @@ -19,6 +19,7 @@ BuildRequires: zlib-devel Patch0: %{name}-norpath.patch Patch1: %{name}-python3.patch Patch2: %{name}-1.3.9-bio-ctrl.patch +Patch3: %{name}-1.3.9-errgetfunc.patch %description The serf library is a C-based HTTP client library built upon the Apache @@ -75,6 +76,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_libdir}/pkgconfig/serf*.pc %changelog +* Mon Oct 4 2021 Joe Orton - 1.3.9-22 +- fix build with OpenSSL 3.0 + * Mon Sep 20 2021 Tomas Korbar - 1.3.9-21 - Fix internal BIO control function