git: 0986328c43e5 - main - databases/galera26: Update to 26.4.10

From: Guangyuan Yang <ygy_at_FreeBSD.org>
Date: Tue, 16 Nov 2021 03:58:29 UTC
The branch main has been updated by ygy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0986328c43e5dc8e91d60c13cd0c781486460c14

commit 0986328c43e5dc8e91d60c13cd0c781486460c14
Author:     devel@galeracluster.com <devel@galeracluster.com>
AuthorDate: 2021-11-16 03:58:23 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-11-16 03:58:23 +0000

    databases/galera26: Update to 26.4.10
    
    Changelog:      http://releases.galeracluster.com/galera-4.10/release-notes-galera-26.4.10.txt
    
    PR:             259867
---
 databases/galera26/Makefile                                 |  2 +-
 databases/galera26/distinfo                                 |  6 +++---
 .../files/patch-asio_asio_ssl_detail_openssl__types.hpp     | 13 +++++++++++++
 .../patch-galerautils_src_gu__asio__stream__engine.cpp      | 11 +++++++++++
 4 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/databases/galera26/Makefile b/databases/galera26/Makefile
index 899cdf1bb578..38454313c17c 100644
--- a/databases/galera26/Makefile
+++ b/databases/galera26/Makefile
@@ -1,7 +1,7 @@
 # Created by: Nicolas Embriz <nbari@tequila.io>
 
 PORTNAME=	galera
-PORTVERSION=	26.4.9
+PORTVERSION=	26.4.10
 DISTVERSIONPREFIX=	release_
 CATEGORIES=	databases
 PKGNAMESUFFIX=	26
diff --git a/databases/galera26/distinfo b/databases/galera26/distinfo
index 5bc860ff0b05..3b2bbe9fbe2e 100644
--- a/databases/galera26/distinfo
+++ b/databases/galera26/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1627382288
-SHA256 (codership-galera-release_26.4.9_GH0.tar.gz) = d920ff3eb902f9b05534edfb4fabd57e6a355845ca271e48d6b37f9e380f545e
-SIZE (codership-galera-release_26.4.9_GH0.tar.gz) = 3490784
+TIMESTAMP = 1636993292
+SHA256 (codership-galera-release_26.4.10_GH0.tar.gz) = d8a45f24b6b2e14ea76a41d659d9f3a9cc4cf7eb306c5ee63189e24c30525987
+SIZE (codership-galera-release_26.4.10_GH0.tar.gz) = 3493683
 SHA256 (codership-wsrep-API-76cf223c690845bbf561cb820a46e06a18ad80d1_GH0.tar.gz) = 214fb8701ae51bcdf8171475a93f2c28ddd56e642feb172ec5148b4d3c73d4a6
 SIZE (codership-wsrep-API-76cf223c690845bbf561cb820a46e06a18ad80d1_GH0.tar.gz) = 90155
diff --git a/databases/galera26/files/patch-asio_asio_ssl_detail_openssl__types.hpp b/databases/galera26/files/patch-asio_asio_ssl_detail_openssl__types.hpp
new file mode 100644
index 000000000000..b45c9d68f745
--- /dev/null
+++ b/databases/galera26/files/patch-asio_asio_ssl_detail_openssl__types.hpp
@@ -0,0 +1,13 @@
+--- asio/asio/ssl/detail/openssl_types.hpp.orig	2021-11-15 21:19:46 UTC
++++ asio/asio/ssl/detail/openssl_types.hpp
+@@ -17,6 +17,10 @@
+ 
+ #include "asio/detail/config.hpp"
+ #include <openssl/conf.h>
++/* Workaround for libressl 3.4.1 and maybe earlier: The
++ * SSL_CTX gets only forward declared unless LIBRESSL_INTERNAL
++ * is defined before including ssl.h header. */
++#define LIBRESSL_INTERNAL
+ #include <openssl/ssl.h>
+ #if !defined(OPENSSL_NO_ENGINE)
+ # include <openssl/engine.h>
diff --git a/databases/galera26/files/patch-galerautils_src_gu__asio__stream__engine.cpp b/databases/galera26/files/patch-galerautils_src_gu__asio__stream__engine.cpp
new file mode 100644
index 000000000000..6185cf594e4b
--- /dev/null
+++ b/databases/galera26/files/patch-galerautils_src_gu__asio__stream__engine.cpp
@@ -0,0 +1,11 @@
+--- galerautils/src/gu_asio_stream_engine.cpp.orig	2021-11-15 21:09:11 UTC
++++ galerautils/src/gu_asio_stream_engine.cpp
+@@ -100,7 +100,7 @@ class AsioTcpStreamEngine : public gu::AsioStreamEngin
+ 
+ #include <openssl/ssl.h>
+ 
+-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL
++#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
+ #define HAVE_READ_EX
+ #define HAVE_WRITE_EX
+ #endif