aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorjoneum <joneum@FreeBSD.org>2019-12-08 01:55:57 +0800
committerjoneum <joneum@FreeBSD.org>2019-12-08 01:55:57 +0800
commit028b35b34f410a9d3b9d5fecade226cc8a11ce1c (patch)
tree5dc2efdb71fadf9b6ce77e4f10eaff10478da716 /databases
parent3e59a8a8c03b8a129b7db03cf5fbcc61b1db57f9 (diff)
downloadfreebsd-ports-gnome-028b35b34f410a9d3b9d5fecade226cc8a11ce1c.tar.gz
freebsd-ports-gnome-028b35b34f410a9d3b9d5fecade226cc8a11ce1c.tar.zst
freebsd-ports-gnome-028b35b34f410a9d3b9d5fecade226cc8a11ce1c.zip
/ram/usr/ports/databases/mysql57-client/work/mysql-5.7.28/vio/viosslfactories.c:505:27: error: use of undeclared identifier 'SSL_OP_NO_TLSv1_3'
| SSL_OP_NO_TLSv1_3 This patch fix this error PR: 242474 Approved by: mmokhi (maintainer, implicit) Sponsored by: Netzkommune GmbH
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql57-client/Makefile2
-rw-r--r--databases/mysql57-client/files/patch-cmake_ssl.cmake30
2 files changed, 22 insertions, 10 deletions
diff --git a/databases/mysql57-client/Makefile b/databases/mysql57-client/Makefile
index 64ffb1229539..9bdfe92e7ba9 100644
--- a/databases/mysql57-client/Makefile
+++ b/databases/mysql57-client/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mysql
-PORTREVISION= 0
+PORTREVISION= 1
PKGNAMESUFFIX= 57-client
COMMENT= Multithreaded SQL database (client)
diff --git a/databases/mysql57-client/files/patch-cmake_ssl.cmake b/databases/mysql57-client/files/patch-cmake_ssl.cmake
index c9a66c421b23..f09b1edc31a8 100644
--- a/databases/mysql57-client/files/patch-cmake_ssl.cmake
+++ b/databases/mysql57-client/files/patch-cmake_ssl.cmake
@@ -1,15 +1,27 @@
---- cmake/ssl.cmake.orig 2016-08-12 10:55:07 UTC
+--- cmake/ssl.cmake.orig 2019-12-06 10:41:47 UTC
+++ cmake/ssl.cmake
-@@ -179,6 +179,12 @@ MACRO (MYSQL_CHECK_SSL)
- OPENSSL_MAJOR_VERSION STREQUAL "1"
- )
- SET(OPENSSL_FOUND TRUE)
+@@ -189,7 +189,8 @@ MACRO (MYSQL_CHECK_SSL)
+ OPENSSL_FIX_VERSION "${OPENSSL_VERSION_NUMBER}"
+ )
+ ENDIF()
+- IF("${OPENSSL_MAJOR_VERSION}.${OPENSSL_MINOR_VERSION}.${OPENSSL_FIX_VERSION}" VERSION_GREATER "1.1.0")
++ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION)
++ IF(HAVE_TLS1_3_VERSION)
+ ADD_DEFINITIONS(-DHAVE_TLSv13)
+ SET(HAVE_TLSv13 1)
+ IF(SOLARIS)
+@@ -199,7 +200,13 @@ MACRO (MYSQL_CHECK_SSL)
+ IF(OPENSSL_INCLUDE_DIR AND
+ OPENSSL_LIBRARY AND
+ CRYPTO_LIBRARY AND
+- OPENSSL_MAJOR_VERSION STREQUAL "1"
++ OPENSSL_MAJOR_VERSION VERSION_GREATER_EQUAL "1"
++ )
++ SET(OPENSSL_FOUND TRUE)
+ ELSEIF(OPENSSL_INCLUDE_DIR AND
+ OPENSSL_LIBRARY AND
+ CRYPTO_LIBRARY AND
+ OPENSSL_MAJOR_VERSION STREQUAL "2"
-+ )
-+ SET(OPENSSL_FOUND TRUE)
+ )
+ SET(OPENSSL_FOUND TRUE)
ELSE()
- SET(OPENSSL_FOUND FALSE)
- ENDIF()