Date: Sat, 11 Aug 2018 20:22:16 +0000 (UTC) From: Mahdi Mokhtari <mmokhi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476944 - in head/databases: mysql80-client mysql80-client/files mysql80-server mysql80-server/files Message-ID: <201808112022.w7BKMGZC044679@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmokhi Date: Sat Aug 11 20:22:16 2018 New Revision: 476944 URL: https://svnweb.freebsd.org/changeset/ports/476944 Log: databases/mysql80-{client, server}: Update ports to 8.0.12 This update includes Oracle Critical Patch Advisory published on July 2018 More info: http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html#AppendixMSQL Also: Delete upstreamed hunks of patches. Change local patches regarding upstream changes. PR: 229861 Reported by: Markus Kohlmeyer <rootservice@gmail.com> Sponsored by: The FreeBSD Foundation Added: head/databases/mysql80-server/files/patch-plugin_x_src_xpl__regex.cc (contents, props changed) Modified: head/databases/mysql80-client/Makefile head/databases/mysql80-client/files/patch-CMakeLists.txt head/databases/mysql80-client/files/patch-scripts_CMakeLists.txt head/databases/mysql80-client/files/patch-sql-common_client.cc head/databases/mysql80-server/Makefile head/databases/mysql80-server/distinfo head/databases/mysql80-server/files/patch-client_CMakeLists.txt head/databases/mysql80-server/files/patch-plugin_x_CMakeLists.txt head/databases/mysql80-server/files/patch-scripts_CMakeLists.txt head/databases/mysql80-server/files/patch-sql-common_client.cc head/databases/mysql80-server/pkg-plist Modified: head/databases/mysql80-client/Makefile ============================================================================== --- head/databases/mysql80-client/Makefile Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-client/Makefile Sat Aug 11 20:22:16 2018 (r476944) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= mysql -PORTREVISION= 1 +PORTREVISION= 0 PKGNAMESUFFIX= 80-client COMMENT= Multithreaded SQL database (client) Modified: head/databases/mysql80-client/files/patch-CMakeLists.txt ============================================================================== --- head/databases/mysql80-client/files/patch-CMakeLists.txt Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-client/files/patch-CMakeLists.txt Sat Aug 11 20:22:16 2018 (r476944) @@ -1,6 +1,6 @@ --- CMakeLists.txt.orig 2018-05-03 10:27:45 UTC +++ CMakeLists.txt -@@ -835,14 +835,12 @@ ADD_SUBDIRECTORY(extra/regex) +@@ -835,6 +835,7 @@ ADD_SUBDIRECTORY(extra/regex) ADD_SUBDIRECTORY(libmysql) ADD_SUBDIRECTORY(libbinlogevents) ADD_SUBDIRECTORY(libbinlogstandalone) @@ -8,14 +8,6 @@ IF(NOT WITHOUT_SERVER) SET (MYSQLD_STATIC_PLUGIN_LIBS "" CACHE INTERNAL "") - # Add storage engines and plugins. - CONFIGURE_PLUGINS() --ELSE() -- # We may still want Cluster client libraries, use -DWITH_NDBCLUSTER=1 -- ADD_SUBDIRECTORY(storage/ndb) - ENDIF() - - IF(NOT WITHOUT_SERVER) @@ -966,12 +964,10 @@ ENDIF() ADD_SUBDIRECTORY(packaging/WiX) ADD_SUBDIRECTORY(packaging/solaris) Modified: head/databases/mysql80-client/files/patch-scripts_CMakeLists.txt ============================================================================== --- head/databases/mysql80-client/files/patch-scripts_CMakeLists.txt Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-client/files/patch-scripts_CMakeLists.txt Sat Aug 11 20:22:16 2018 (r476944) @@ -35,11 +35,11 @@ @@ -347,6 +351,8 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) GET_FILENAME_COMPONENT(lib "${lib}" NAME_WE) STRING(REGEX REPLACE "^lib" "" lib "${lib}") - SET(${var} "${${var}}-l${lib} " ) + SET(${var} "${${var}}-l${lib} " ) + ELSEIF(lib STREQUAL "-pthread") -+ SET(${var} "${${var}}-pthread " ) ++ SET(${var} "${${var}}-pthread " ) ELSE() - SET(${var} "${${var}}-l${lib} " ) + SET(${var} "${${var}}-l${lib} " ) ENDIF() @@ -430,19 +436,7 @@ ELSE() # On Unix, most of the files end up in the bin directory Modified: head/databases/mysql80-client/files/patch-sql-common_client.cc ============================================================================== --- head/databases/mysql80-client/files/patch-sql-common_client.cc Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-client/files/patch-sql-common_client.cc Sat Aug 11 20:22:16 2018 (r476944) @@ -1,21 +1,5 @@ --- sql-common/client.cc.orig 2018-04-08 06:44:49 UTC +++ sql-common/client.cc -@@ -2649,11 +2649,11 @@ static int ssl_verify_server_cert(Vio *v - goto error; - } - --#if OPENSSL_VERSION_NUMBER < 0x10100000L -- cn = (char *)ASN1_STRING_data(cn_asn1); --#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - cn = (char *)ASN1_STRING_get0_data(cn_asn1); --#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ -+#else /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ -+ cn = (char *)ASN1_STRING_data(cn_asn1); -+#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ - - // There should not be any NULL embedded in the CN - if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn)) { @@ -5596,7 +5596,7 @@ int STDCALL mysql_options(MYSQL *mysql, #endif break; Modified: head/databases/mysql80-server/Makefile ============================================================================== --- head/databases/mysql80-server/Makefile Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/Makefile Sat Aug 11 20:22:16 2018 (r476944) @@ -2,8 +2,8 @@ # $FreeBSD$ PORTNAME?= mysql -PORTVERSION= 8.0.11 -PORTREVISION?= 2 +PORTVERSION= 8.0.12 +PORTREVISION?= 0 CATEGORIES= databases ipv6 MASTER_SITES= MYSQL/MySQL-8.0 PKGNAMESUFFIX?= 80-server Modified: head/databases/mysql80-server/distinfo ============================================================================== --- head/databases/mysql80-server/distinfo Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/distinfo Sat Aug 11 20:22:16 2018 (r476944) @@ -1,3 +1,3 @@ -TIMESTAMP = 1524414416 -SHA256 (mysql-boost-8.0.11.tar.gz) = f40711a9bd91ab2ccea331484a6d281f806b0fdecf78f4c9e9d8a4c91208f309 -SIZE (mysql-boost-8.0.11.tar.gz) = 77647598 +TIMESTAMP = 1534018331 +SHA256 (mysql-boost-8.0.12.tar.gz) = 99abae6660b53a462cff7c9fefb56d17f52823e9a964831aee1ae5633d9a2982 +SIZE (mysql-boost-8.0.12.tar.gz) = 83152486 Modified: head/databases/mysql80-server/files/patch-client_CMakeLists.txt ============================================================================== --- head/databases/mysql80-server/files/patch-client_CMakeLists.txt Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/files/patch-client_CMakeLists.txt Sat Aug 11 20:22:16 2018 (r476944) @@ -10,9 +10,9 @@ ## We will need libeay32.dll and ssleay32.dll when running client executables. COPY_OPENSSL_DLLS(copy_openssl_client) @@ -41,11 +39,13 @@ COPY_OPENSSL_DLLS(copy_openssl_client) + INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) - ADD_DEFINITIONS(${SSL_DEFINES}) +IF(FALSE) MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc ../sql-common/sql_string.cc pattern_matcher.cc) TARGET_LINK_LIBRARIES(mysql mysqlclient) Modified: head/databases/mysql80-server/files/patch-plugin_x_CMakeLists.txt ============================================================================== --- head/databases/mysql80-server/files/patch-plugin_x_CMakeLists.txt Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/files/patch-plugin_x_CMakeLists.txt Sat Aug 11 20:22:16 2018 (r476944) @@ -1,15 +1,16 @@ --- plugin/x/CMakeLists.txt.orig 2018-04-08 06:44:49 UTC +++ plugin/x/CMakeLists.txt -@@ -82,11 +82,14 @@ INCLUDE_DIRECTORIES( +@@ -82,12 +82,15 @@ INCLUDE_DIRECTORIES( + ${MYSQLX_GENERATE_DIR} ${MYSQLX_PROTOCOL_INCLUDE_DIR} - ${MYSQLX_PROJECT_DIR}/client/ - ${CMAKE_SOURCE_DIR}/extra/regex + ${MYSQLX_CLIENT_INCLUDE_DIR} + ${BOOST_INCLUDE_DIR} ) INCLUDE_DIRECTORIES(SYSTEM ${PROTOBUF_INCLUDE_DIRS} ${LIBEVENT_INCLUDE_DIR} + ${ICU_INCLUDE_DIRS} + ${SSL_INCLUDE_DIRS} + ${ZLIB_INCLUDE_DIR} ) Added: head/databases/mysql80-server/files/patch-plugin_x_src_xpl__regex.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql80-server/files/patch-plugin_x_src_xpl__regex.cc Sat Aug 11 20:22:16 2018 (r476944) @@ -0,0 +1,11 @@ +--- plugin/x/src/xpl_regex.cc.orig 2018-08-11 18:13:47 UTC ++++ plugin/x/src/xpl_regex.cc +@@ -53,7 +53,7 @@ bool xpl::Regex::match(const char *value + * and parse the text patter each time that xpl::Regex::match + * is called. + */ +- UnicodeString value_as_utf8{icu::UnicodeString::fromUTF8(value)}; ++ icu::UnicodeString value_as_utf8{icu::UnicodeString::fromUTF8(value)}; + std::unique_ptr<icu::RegexMatcher> regexp{ + m_pattern->matcher(value_as_utf8, match_status)}; + Modified: head/databases/mysql80-server/files/patch-scripts_CMakeLists.txt ============================================================================== --- head/databases/mysql80-server/files/patch-scripts_CMakeLists.txt Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/files/patch-scripts_CMakeLists.txt Sat Aug 11 20:22:16 2018 (r476944) @@ -3,11 +3,11 @@ @@ -347,6 +347,8 @@ MACRO(EXTRACT_LINK_LIBRARIES target var) GET_FILENAME_COMPONENT(lib "${lib}" NAME_WE) STRING(REGEX REPLACE "^lib" "" lib "${lib}") - SET(${var} "${${var}}-l${lib} " ) + SET(${var} "${${var}}-l${lib} " ) + ELSEIF(lib STREQUAL "-pthread") -+ SET(${var} "${${var}}-pthread " ) ++ SET(${var} "${${var}}-pthread " ) ELSE() - SET(${var} "${${var}}-l${lib} " ) + SET(${var} "${${var}}-l${lib} " ) ENDIF() @@ -430,14 +432,13 @@ ELSE() # On Unix, most of the files end up in the bin directory Modified: head/databases/mysql80-server/files/patch-sql-common_client.cc ============================================================================== --- head/databases/mysql80-server/files/patch-sql-common_client.cc Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/files/patch-sql-common_client.cc Sat Aug 11 20:22:16 2018 (r476944) @@ -1,21 +1,5 @@ --- sql-common/client.cc.orig 2018-04-08 06:44:49 UTC +++ sql-common/client.cc -@@ -2649,11 +2649,11 @@ static int ssl_verify_server_cert(Vio *v - goto error; - } - --#if OPENSSL_VERSION_NUMBER < 0x10100000L -- cn = (char *)ASN1_STRING_data(cn_asn1); --#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */ -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - cn = (char *)ASN1_STRING_get0_data(cn_asn1); --#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ -+#else /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ -+ cn = (char *)ASN1_STRING_data(cn_asn1); -+#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ - - // There should not be any NULL embedded in the CN - if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn)) { @@ -5596,7 +5596,7 @@ int STDCALL mysql_options(MYSQL *mysql, #endif break; Modified: head/databases/mysql80-server/pkg-plist ============================================================================== --- head/databases/mysql80-server/pkg-plist Sat Aug 11 20:16:35 2018 (r476943) +++ head/databases/mysql80-server/pkg-plist Sat Aug 11 20:22:16 2018 (r476944) @@ -174,6 +174,7 @@ man/man8/mysqld.8.gz %%DATADIR%%/mysql_sys_schema.sql %%DATADIR%%/mysql_system_tables.sql %%DATADIR%%/mysql_system_tables_data.sql +%%DATADIR%%/mysql_system_users.sql %%DATADIR%%/mysql_test_data_timezone.sql %%DATADIR%%/mysqld_multi.server %%DATADIR%%/norwegian-ny/errmsg.sys
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808112022.w7BKMGZC044679>