diff options
author | Sam James <sam@gentoo.org> | 2021-05-03 19:27:06 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-05-03 19:45:10 +0100 |
commit | aa38d35a7bfbd3c943c6def2f9fcb51b3d558c3f (patch) | |
tree | d5ef7500ebd85819322ca511eff5b8689b93b3fb /dev-db/mysql-connector-c++ | |
parent | mail-filter/imapfilter: drop obsolete LibreSSL patch (diff) | |
download | gentoo-aa38d35a7bfbd3c943c6def2f9fcb51b3d558c3f.tar.gz gentoo-aa38d35a7bfbd3c943c6def2f9fcb51b3d558c3f.tar.bz2 gentoo-aa38d35a7bfbd3c943c6def2f9fcb51b3d558c3f.zip |
dev-db/mysql-connector-c++: drop obsolete LibreSSL patches
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mysql-connector-c++')
-rw-r--r-- | dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.19-fix-libressl-support.patch | 89 | ||||
-rw-r--r-- | dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.20-fix-libressl-support.patch | 88 |
2 files changed, 0 insertions, 177 deletions
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.19-fix-libressl-support.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.19-fix-libressl-support.patch deleted file mode 100644 index fc6eb777063e..000000000000 --- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.19-fix-libressl-support.patch +++ /dev/null @@ -1,89 +0,0 @@ ---- a/cdk/cmake/DepFindSSL.cmake -+++ b/cdk/cmake/DepFindSSL.cmake -@@ -88,7 +88,7 @@ function(main) - - set(OPENSSL_LIB_DIR "${OPENSSL_LIB_DIR}" CACHE INTERNAL "") - -- if(NOT OPENSSL_VERSION_MAJOR EQUAL 1) -+ if(NOT OPENSSL_VERSION_MAJOR VERSION_GREATER_EQUAL 1) - message(SEND_ERROR "OpenSSL version 1.x is required but version ${OPENSSL_VERSION} was found") - else() - message(STATUS "Using OpenSSL version: ${OPENSSL_VERSION}") -@@ -182,42 +182,33 @@ function(find_openssl) - set(OPENSSL_INCLUDE_DIR "${OPENSSL_INCLUDE_DIR}" PARENT_SCOPE) - message("-- found OpenSSL headers at: ${OPENSSL_INCLUDE_DIR}") - -- - # Verify version number. Version information looks like: -- # #define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1a 20 Nov 2018" -- -+ # #define OPENSSL_VERSION_NUMBER 0x1000103fL -+ # Encoded as MNNFFPPS: major minor fix patch status - FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" - OPENSSL_VERSION_NUMBER -- REGEX "#[ ]*define[\t ]+OPENSSL_VERSION_TEXT" -+ REGEX "^#[ ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*" - ) -- -- #message("== OPENSSL_VERSION_NUMBER: ${OPENSSL_VERSION_NUMBER}") - STRING(REGEX REPLACE -- "^.*OPENSSL_VERSION_TEXT[\t ]+\"OpenSSL[\t ]([0-9]+)\\.([0-9]+)\\.([0-9]+)([a-z]*)[\t ].*$" -- "\\1;\\2;\\3;\\4" -- version_list "${OPENSSL_VERSION_NUMBER}" -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1" -+ OPENSSL_VERSION_MAJOR "${OPENSSL_VERSION_NUMBER}" -+ ) -+ STRING(REGEX REPLACE -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9]([0-9][0-9]).*$" "\\1" -+ OPENSSL_VERSION_MINOR "${OPENSSL_VERSION_NUMBER}" -+ ) -+ STRING(REGEX REPLACE -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9]([0-9][0-9]).*$" "\\1" -+ OPENSSL_VERSION_FIX "${OPENSSL_VERSION_NUMBER}" - ) -- #message("-- OPENSSL_VERSION: ${version_list}") -- -- list(GET version_list 0 OPENSSL_VERSION_MAJOR) -- math(EXPR OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR}) -- -- list(GET version_list 1 OPENSSL_VERSION_MINOR) -- math(EXPR OPENSSL_VERSION_MINOR ${OPENSSL_VERSION_MINOR}) -- -- list(GET version_list 2 OPENSSL_VERSION_FIX) -- math(EXPR OPENSSL_VERSION_FIX ${OPENSSL_VERSION_FIX}) -- -- list(GET version_list 3 OPENSSL_VERSION_PATCH) -- -- - - set(OPENSSL_VERSION -- "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}${OPENSSL_VERSION_PATCH}" -+ "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}" - PARENT_SCOPE - ) - set(OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR} PARENT_SCOPE) - -+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION) - - find_library(OPENSSL_LIBRARY - NAMES ssl ssleay32 ssleay32MD libssl ---- a/cdk/foundation/connection_openssl.cc -+++ b/cdk/foundation/connection_openssl.cc -@@ -211,7 +211,7 @@ static void throw_ssl_error(SSL* tls, int err) - case SSL_ERROR_WANT_CONNECT: - case SSL_ERROR_WANT_ACCEPT: - case SSL_ERROR_WANT_X509_LOOKUP: --# if OPENSSL_VERSION_NUMBER >= 0x10100000L -+# if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - case SSL_ERROR_WANT_ASYNC: - case SSL_ERROR_WANT_ASYNC_JOB: - # endif -@@ -387,7 +387,7 @@ void TLS_helper::setup(SSL_CTX *ctx) - - SSL_CTX_set_cipher_list(ctx, m_cipher_list.c_str()); - --#if OPENSSL_VERSION_NUMBER>=0x1010100fL -+#if HAVE_TLS1_3_VERSION - - /* - Note: If TLSv1.3 is not enabled, there is no need to restrict diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.20-fix-libressl-support.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.20-fix-libressl-support.patch deleted file mode 100644 index f2ae0d02ed7f..000000000000 --- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.20-fix-libressl-support.patch +++ /dev/null @@ -1,88 +0,0 @@ ---- a/cdk/cmake/DepFindSSL.cmake -+++ b/cdk/cmake/DepFindSSL.cmake -@@ -88,7 +88,7 @@ function(main) - - set(OPENSSL_LIB_DIR "${OPENSSL_LIB_DIR}" CACHE INTERNAL "") - -- if(NOT OPENSSL_VERSION_MAJOR EQUAL 1) -+ if(NOT OPENSSL_VERSION_MAJOR VERSION_GREATER_EQUAL 1) - message(SEND_ERROR "OpenSSL version 1.x is required but version ${OPENSSL_VERSION} was found") - else() - message(STATUS "Using OpenSSL version: ${OPENSSL_VERSION}") -@@ -184,41 +184,35 @@ function(find_openssl) - - - # Verify version number. Version information looks like: -- # #define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1a 20 Nov 2018" -+ # #define OPENSSL_VERSION_NUMBER 0x1000103fL -+ # Encoded as MNNFFPPS: major minor fix patch status - - FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" - OPENSSL_VERSION_NUMBER -- REGEX "#[ ]*define[\t ]+OPENSSL_VERSION_TEXT" -+ REGEX "^#[ ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*" - ) - -- #message("== OPENSSL_VERSION_NUMBER: ${OPENSSL_VERSION_NUMBER}") -- # define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1d-freebsd 10 Sep 2019" - STRING(REGEX REPLACE -- "^.*OPENSSL_VERSION_TEXT[\t ]+\"OpenSSL[\t ]([0-9]+)\\.([0-9]+)\\.([0-9]+)([a-z]|)[\t \\-].*$" -- "\\1;\\2;\\3;\\4" -- version_list "${OPENSSL_VERSION_NUMBER}" -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1" -+ OPENSSL_VERSION_MAJOR "${OPENSSL_VERSION_NUMBER}" -+ ) -+ STRING(REGEX REPLACE -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9]([0-9][0-9]).*$" "\\1" -+ OPENSSL_VERSION_MINOR "${OPENSSL_VERSION_NUMBER}" -+ ) -+ STRING(REGEX REPLACE -+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9]([0-9][0-9]).*$" "\\1" -+ OPENSSL_VERSION_FIX "${OPENSSL_VERSION_NUMBER}" - ) -- #message("-- OPENSSL_VERSION: ${version_list}") -- -- list(GET version_list 0 OPENSSL_VERSION_MAJOR) -- math(EXPR OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR}) -- -- list(GET version_list 1 OPENSSL_VERSION_MINOR) -- math(EXPR OPENSSL_VERSION_MINOR ${OPENSSL_VERSION_MINOR}) -- -- list(GET version_list 2 OPENSSL_VERSION_FIX) -- math(EXPR OPENSSL_VERSION_FIX ${OPENSSL_VERSION_FIX}) -- -- list(GET version_list 3 OPENSSL_VERSION_PATCH) -- - - - set(OPENSSL_VERSION -- "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}${OPENSSL_VERSION_PATCH}" -+ "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}" - PARENT_SCOPE - ) - set(OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR} PARENT_SCOPE) - -+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION) - - find_library(OPENSSL_LIBRARY - NAMES ssl ssleay32 ssleay32MD libssl ---- a/cdk/foundation/connection_openssl.cc -+++ b/cdk/foundation/connection_openssl.cc -@@ -211,7 +211,7 @@ static void throw_ssl_error(SSL* tls, int err) - case SSL_ERROR_WANT_CONNECT: - case SSL_ERROR_WANT_ACCEPT: - case SSL_ERROR_WANT_X509_LOOKUP: --# if OPENSSL_VERSION_NUMBER >= 0x10100000L -+# if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - case SSL_ERROR_WANT_ASYNC: - case SSL_ERROR_WANT_ASYNC_JOB: - # endif -@@ -387,7 +387,7 @@ void TLS_helper::setup(SSL_CTX *ctx) - - SSL_CTX_set_cipher_list(ctx, m_cipher_list.c_str()); - --#if OPENSSL_VERSION_NUMBER>=0x1010100fL -+#if HAVE_TLS1_3_VERSION - - /* - Note: If TLSv1.3 is not enabled, there is no need to restrict |