Date: Thu, 20 May 2021 12:13:45 GMT From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: ca9337dc3528 - 2021Q2 - databases/mysql80-*: update to 8.0.25 GA release Message-ID: <202105201213.14KCDjrN083872@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch 2021Q2 has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ca9337dc3528d948c14b0ea20dd016eb8608ee76 commit ca9337dc3528d948c14b0ea20dd016eb8608ee76 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2021-05-20 12:07:45 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2021-05-20 12:13:30 +0000 databases/mysql80-*: update to 8.0.25 GA release Release notes: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-25.html https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-24.html PR: 255937 Submitted by: delphij@ Approved by joneum@ (implicit) MFH: 2021Q2 (cherry picked from commit c7fbbf15f3b8471c85f4c404c61fb2c9fbe1b923) --- databases/mysql80-client/pkg-plist | 1 + databases/mysql80-server/Makefile | 11 ++-------- databases/mysql80-server/distinfo | 6 +++--- .../files/patch-client_CMakeLists.txt | 18 ++++++++-------- databases/mysql80-server/files/patch-icu68 | 17 --------------- .../files/patch-mysys_my__default.cc | 20 +++++++++--------- databases/mysql80-server/files/patch-sql_binlog.cc | 24 ++++++++++++++++++++++ databases/mysql80-server/files/patch-sql_item.h | 18 ---------------- databases/mysql80-server/pkg-plist | 2 ++ 9 files changed, 52 insertions(+), 65 deletions(-) diff --git a/databases/mysql80-client/pkg-plist b/databases/mysql80-client/pkg-plist index 7a4b894f123d..1d2f6cfb9268 100644 --- a/databases/mysql80-client/pkg-plist +++ b/databases/mysql80-client/pkg-plist @@ -3,6 +3,7 @@ bin/my_print_defaults bin/mysql bin/mysql_config bin/mysql_config_editor +bin/mysql_migrate_keyring bin/mysqladmin bin/mysqlbinlog bin/mysqlcheck diff --git a/databases/mysql80-server/Makefile b/databases/mysql80-server/Makefile index 88c31d623dc3..86a4abd084e3 100644 --- a/databases/mysql80-server/Makefile +++ b/databases/mysql80-server/Makefile @@ -1,7 +1,7 @@ # Created by: Mahdi Mokhtari <mokhi64@gmail.com> PORTNAME?= mysql -PORTVERSION= 8.0.23 +PORTVERSION= 8.0.25 PORTREVISION?= 0 CATEGORIES= databases MASTER_SITES= MYSQL/MySQL-8.0 @@ -48,7 +48,7 @@ BUILD_DEPENDS_powerpc64= libunwind>0:devel/libunwind BUILD_DEPENDS_powerpc64le= libunwind>0:devel/libunwind CMAKE_BUILD_TYPE= Release -CFLAGS+= -fPIC +CFLAGS+= -fPIC -DNDEBUG -malign-double CMAKE_ARGS+= -DINSTALL_LAYOUT=FREEBSD \ -DINSTALL_LDCONFIGDIR="${LOCALBASE}/libdata/ldconfig" \ @@ -184,13 +184,6 @@ SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " .include <bsd.port.pre.mk> -.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300109 || ${ARCH} == "i386" -BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} -CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT} -CPP= ${LOCALBASE}/bin/clang${LLVM_DEFAULT} -CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT} -.endif - .if ${ARCH} == "i386" && ${OSVERSION} < 1200000 # clang 7.x and 8.x do not build properly on 11i386 CPP= clang-cpp${LLVM_DEFAULT} diff --git a/databases/mysql80-server/distinfo b/databases/mysql80-server/distinfo index 5d0a5737ecff..d8b53adf2580 100644 --- a/databases/mysql80-server/distinfo +++ b/databases/mysql80-server/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1611995725 -SHA256 (mysql-boost-8.0.23.tar.gz) = 1c7a424303c134758e59607a0b3172e43a21a27ff08e8c88c2439ffd4fc724a5 -SIZE (mysql-boost-8.0.23.tar.gz) = 291039175 +TIMESTAMP = 1621139131 +SHA256 (mysql-boost-8.0.25.tar.gz) = 93c5f57cbd69573a8d9798725edec52e92830f70c398a1afaaea2227db331728 +SIZE (mysql-boost-8.0.25.tar.gz) = 290265324 diff --git a/databases/mysql80-server/files/patch-client_CMakeLists.txt b/databases/mysql80-server/files/patch-client_CMakeLists.txt index b037a4de28bb..bbfb4249c799 100644 --- a/databases/mysql80-server/files/patch-client_CMakeLists.txt +++ b/databases/mysql80-server/files/patch-client_CMakeLists.txt @@ -1,18 +1,20 @@ ---- client/CMakeLists.txt.orig 2019-09-20 08:30:51 UTC +--- client/CMakeLists.txt.orig 2021-03-22 08:44:50 UTC +++ client/CMakeLists.txt -@@ -28,8 +28,11 @@ DISABLE_MISSING_PROFILE_WARNING() +@@ -28,10 +28,13 @@ DISABLE_MISSING_PROFILE_WARNING() ## Subdirectory with common client code. ADD_SUBDIRECTORY(base) ## Subdirectory for mysqlpump code. +IF(WITHOUT_SERVER) ADD_SUBDIRECTORY(dump) + ## Subdirectory for mysql_migrate_keyring code. + ADD_SUBDIRECTORY(migrate_keyring) +ENDIF() +IF(NOT WITHOUT_CLIENTLIBS) MYSQL_ADD_EXECUTABLE(mysql ${CMAKE_SOURCE_DIR}/sql-common/net_ns.cc completion_hash.cc -@@ -39,6 +42,7 @@ MYSQL_ADD_EXECUTABLE(mysql +@@ -41,6 +44,7 @@ MYSQL_ADD_EXECUTABLE(mysql client_query_attributes.cc LINK_LIBRARIES mysqlclient client_base ${EDITLINE_LIBRARY} ) @@ -20,7 +22,7 @@ IF(NOT WITHOUT_SERVER) MYSQL_ADD_EXECUTABLE(mysql_upgrade -@@ -55,6 +59,7 @@ IF(SOLARIS_SPARC AND MY_COMPILER_IS_SUNPRO AND +@@ -57,6 +61,7 @@ IF(SOLARIS_SPARC AND MY_COMPILER_IS_SUNPRO AND ) ENDIF() @@ -28,7 +30,7 @@ MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc mysqltest/error_names.cc -@@ -71,6 +76,9 @@ MYSQL_ADD_EXECUTABLE(mysqltest +@@ -73,6 +78,9 @@ MYSQL_ADD_EXECUTABLE(mysqltest ENABLE_EXPORTS LINK_LIBRARIES mysqlclient ) @@ -38,7 +40,7 @@ MYSQL_ADD_EXECUTABLE(mysqlcheck check/mysqlcheck.cc check/mysqlcheck_core.cc -@@ -246,7 +254,9 @@ ENDIF() +@@ -248,7 +256,9 @@ ENDIF() TARGET_COMPILE_DEFINITIONS(mysqlbinlog PRIVATE DISABLE_PSI_MUTEX) TARGET_INCLUDE_DIRECTORIES(mysqlbinlog PRIVATE ${CMAKE_SOURCE_DIR}/sql) @@ -48,7 +50,7 @@ MYSQL_ADD_EXECUTABLE(mysqladmin mysqladmin.cc LINK_LIBRARIES mysqlclient -@@ -259,6 +269,9 @@ MYSQL_ADD_EXECUTABLE(mysql_config_editor +@@ -261,6 +271,9 @@ MYSQL_ADD_EXECUTABLE(mysql_config_editor mysql_config_editor.cc LINK_LIBRARIES mysqlclient ) @@ -58,7 +60,7 @@ MYSQL_ADD_EXECUTABLE(mysql_secure_installation mysql_secure_installation.cc LINK_LIBRARIES mysqlclient -@@ -269,6 +282,7 @@ MYSQL_ADD_EXECUTABLE(mysql_ssl_rsa_setup +@@ -271,6 +284,7 @@ MYSQL_ADD_EXECUTABLE(mysql_ssl_rsa_setup path.cc LINK_LIBRARIES mysys ) diff --git a/databases/mysql80-server/files/patch-icu68 b/databases/mysql80-server/files/patch-icu68 deleted file mode 100644 index 89f0f9b4a54b..000000000000 --- a/databases/mysql80-server/files/patch-icu68 +++ /dev/null @@ -1,17 +0,0 @@ -Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844 - -sql/mysqld.cc:6915:30: error: use of undeclared identifier 'TRUE' - my_getopt_skip_unknown = TRUE; - ^ - ---- sql/mysqld.cc.orig 2020-06-16 16:31:03 UTC -+++ sql/mysqld.cc -@@ -6910,7 +6912,7 @@ int mysqld_main(int argc, char **argv) - if (opt_keyring_migration_source || opt_keyring_migration_destination || - migrate_connect_options) { - Migrate_keyring mk; -- my_getopt_skip_unknown = TRUE; -+ my_getopt_skip_unknown = true; - if (mk.init(remaining_argc, remaining_argv, opt_keyring_migration_source, - opt_keyring_migration_destination, opt_keyring_migration_user, - opt_keyring_migration_host, opt_keyring_migration_password, diff --git a/databases/mysql80-server/files/patch-mysys_my__default.cc b/databases/mysql80-server/files/patch-mysys_my__default.cc index ffc76b7a8941..6a8cb5ebbaf2 100644 --- a/databases/mysql80-server/files/patch-mysys_my__default.cc +++ b/databases/mysql80-server/files/patch-mysys_my__default.cc @@ -1,15 +1,15 @@ ---- mysys/my_default.cc.orig 2019-09-20 08:30:51 UTC +--- mysys/my_default.cc.orig 2021-04-23 15:06:40 UTC +++ mysys/my_default.cc -@@ -203,7 +203,7 @@ bool no_defaults = false; +@@ -204,7 +204,7 @@ bool no_defaults = false; /* Which directories are searched for options (and in which order) */ -#define MAX_DEFAULT_DIRS 6 +#define MAX_DEFAULT_DIRS 7 #define DEFAULT_DIRS_SIZE (MAX_DEFAULT_DIRS + 1) /* Terminate with NULL */ - static const char **default_directories = NULL; + static const char **default_directories = nullptr; -@@ -909,6 +909,14 @@ static int search_default_file_with_ext(Process_option +@@ -915,6 +915,14 @@ static int search_default_file_with_ext(Process_option return 1; /* Ignore wrong files */ } @@ -21,10 +21,10 @@ + goto err; + } + - while (mysql_file_getline(buff, sizeof(buff) - 1, fp, is_login_file)) { - line++; - /* Ignore comment and empty lines */ -@@ -1228,7 +1236,8 @@ void my_print_default_files(const char *conf_file) { + while (true) { + auto fileline = mysql_file_getline(buff, sizeof(buff), fp, is_login_file); + char *linebuff = fileline.get(); +@@ -1300,7 +1308,8 @@ void my_print_default_files(const char *conf_file) { end[(strlen(end) - 1)] = ' '; else strxmov(end, conf_file, *ext, " ", NullS); @@ -34,7 +34,7 @@ } } } -@@ -1565,14 +1574,9 @@ static const char **init_default_directories(MEM_ROOT +@@ -1640,14 +1649,9 @@ static const char **init_default_directories(MEM_ROOT #else @@ -51,7 +51,7 @@ #endif if ((env = getenv("MYSQL_HOME"))) errors += add_directory(alloc, env, dirs); -@@ -1635,7 +1639,7 @@ int check_file_permissions(const char *file_name, bool +@@ -1710,7 +1714,7 @@ int check_file_permissions(const char *file_name, bool #if !defined(_WIN32) MY_STAT stat_info; diff --git a/databases/mysql80-server/files/patch-sql_binlog.cc b/databases/mysql80-server/files/patch-sql_binlog.cc new file mode 100644 index 000000000000..6c51f7bf8a61 --- /dev/null +++ b/databases/mysql80-server/files/patch-sql_binlog.cc @@ -0,0 +1,24 @@ +--- sql/binlog.cc.orig 2021-03-22 08:44:50 UTC ++++ sql/binlog.cc +@@ -9156,8 +9156,8 @@ void MYSQL_BIN_LOG::report_missing_purged_gtids( + + char *missing_gtids = NULL; + char *slave_executed_gtids = NULL; +- gtid_missing.to_string(&missing_gtids, NULL); +- slave_executed_gtid_set->to_string(&slave_executed_gtids, NULL); ++ gtid_missing.to_string(&missing_gtids); ++ slave_executed_gtid_set->to_string(&slave_executed_gtids); + + /* + Log the information about the missing purged GTIDs to the error log. +@@ -9210,8 +9210,8 @@ void MYSQL_BIN_LOG::report_missing_gtids( + Gtid_set gtid_missing(slave_executed_gtid_set->get_sid_map()); + gtid_missing.add_gtid_set(slave_executed_gtid_set); + gtid_missing.remove_gtid_set(previous_gtid_set); +- gtid_missing.to_string(&missing_gtids, NULL); +- slave_executed_gtid_set->to_string(&slave_executed_gtids, NULL); ++ gtid_missing.to_string(&missing_gtids); ++ slave_executed_gtid_set->to_string(&slave_executed_gtids); + + String tmp_uuid; + diff --git a/databases/mysql80-server/files/patch-sql_item.h b/databases/mysql80-server/files/patch-sql_item.h deleted file mode 100644 index ebeed4aaa6b7..000000000000 --- a/databases/mysql80-server/files/patch-sql_item.h +++ /dev/null @@ -1,18 +0,0 @@ ---- sql/item.h.orig 2020-12-11 07:42:20 UTC -+++ sql/item.h -@@ -3380,13 +3380,13 @@ class Item_sp_variable : public Item { - Name_string m_name; - - public: --#ifndef DBUG_OFF -+//#ifndef DBUG_OFF - /* - Routine to which this Item_splocal belongs. Used for checking if correct - runtime context is used for variable handling. - */ - sp_head *m_sp{nullptr}; --#endif -+//#endif - - public: - Item_sp_variable(const Name_string sp_var_name); diff --git a/databases/mysql80-server/pkg-plist b/databases/mysql80-server/pkg-plist index fcd2a90b5c6d..fea5ce5c8a63 100644 --- a/databases/mysql80-server/pkg-plist +++ b/databases/mysql80-server/pkg-plist @@ -8,6 +8,7 @@ bin/myisamlog bin/myisampack bin/mysqldumpslow bin/mysql_client_test +bin/mysql_keyring_encryption_test bin/mysql_secure_installation bin/mysql_ssl_rsa_setup bin/mysql_tzinfo_to_sql @@ -58,6 +59,7 @@ lib/mysql/plugin/component_audit_api_message_emit.so lib/mysql/plugin/component_example_component1.so lib/mysql/plugin/component_example_component2.so lib/mysql/plugin/component_example_component3.so +lib/mysql/plugin/component_keyring_file.so lib/mysql/plugin/component_log_filter_dragnet.so lib/mysql/plugin/component_log_sink_json.so lib/mysql/plugin/component_log_sink_syseventlog.so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105201213.14KCDjrN083872>