diff --git a/backport-libserf-1.3.9-errgetfunc.patch b/backport-libserf-1.3.9-errgetfunc.patch new file mode 100644 index 0000000..c5ac4a6 --- /dev/null +++ b/backport-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 6740a47..0df5d6b 100644 --- a/libserf.spec +++ b/libserf.spec @@ -3,7 +3,7 @@ Name: libserf Version: 1.3.9 -Release: 15 +Release: 16 Summary: High-Performance Asynchronous HTTP Client Library License: ASL 2.0 URL: https://serf.apache.org/ @@ -13,6 +13,7 @@ BuildRequires: apr-devel, apr-util-devel, krb5-devel, openssl-devel Patch0: %{name}-norpath.patch Patch1: %{name}-python3.patch +Patch2: backport-%{name}-1.3.9-errgetfunc.patch %description The serf library is a C-based HTTP client library built upon the Apache @@ -69,6 +70,12 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %doc README CHANGES design-guide.txt %changelog +* Wed Feb 01 2023 gaihuiying - 1.3.9-16 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build with openssl 3.0 + * Sat Oct 22 2022 gaihuiying - 1.3.9-15 - Type:bugfix - ID:NA