databases/mariadb-connector-c: Update to 2.3.2
- Update to 2.3.2 - Fix build with LibreSSL
This commit is contained in:
parent
742334791f
commit
ce2b542ee7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438528
3 changed files with 7 additions and 17 deletions
|
@ -1,8 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mariadb
|
||||
PORTVERSION= 2.3.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.3.2
|
||||
CATEGORIES= databases ipv6
|
||||
MASTER_SITES= http://ftp.osuosl.org/pub/${SITESDIR}/ \
|
||||
http://mirrors.supportex.net/${SITESDIR}/ \
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1484488531
|
||||
SHA256 (mariadb-connector-c-2.3.1-src.tar.gz) = 6ab7e1477ae1484939675a3b499f98148980a0bd340d15d22df00a5c6656c633
|
||||
SIZE (mariadb-connector-c-2.3.1-src.tar.gz) = 536755
|
||||
TIMESTAMP = 1492184849
|
||||
SHA256 (mariadb-connector-c-2.3.2-src.tar.gz) = 4063c8655dc37608d4eade981e25b76f67f5d36e8426dc7f20d59e48ebba628a
|
||||
SIZE (mariadb-connector-c-2.3.2-src.tar.gz) = 538172
|
||||
|
|
|
@ -1,25 +1,16 @@
|
|||
--- libmariadb/ma_secure.c.orig 2016-08-03 15:39:12 UTC
|
||||
--- libmariadb/ma_secure.c.orig 2017-01-17 09:53:54 UTC
|
||||
+++ libmariadb/ma_secure.c
|
||||
@@ -74,7 +74,7 @@ static void my_SSL_error(MYSQL *mysql)
|
||||
Crypto call back functions will be
|
||||
set during ssl_initialization
|
||||
*/
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10000000)
|
||||
static unsigned long my_cb_threadid(void)
|
||||
{
|
||||
@@ -149,11 +149,11 @@ int my_ssl_start(MYSQL *mysql)
|
||||
pthread_mutex_lock(&LOCK_ssl_config);
|
||||
if (!my_ssl_initialized)
|
||||
{
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
|
||||
if (ssl_crypto_init())
|
||||
goto end;
|
||||
#endif
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
|
||||
#else
|
||||
SSL_library_init();
|
||||
|
|
Loading…
Reference in a new issue