mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
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
This commit is contained in:
parent
18b2e487a7
commit
c7fbbf15f3
10 changed files with 53 additions and 67 deletions
|
@ -1,7 +1,6 @@
|
|||
# Created by: "Mahdi Mokhtari <mokhi64@gmail.com>"
|
||||
|
||||
PORTNAME= mysql
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= 80-client
|
||||
|
||||
COMMENT= Multithreaded SQL database (client)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Created by: Mahdi Mokhtari <mokhi64@gmail.com>
|
||||
|
||||
PORTNAME?= mysql
|
||||
PORTVERSION= 8.0.23
|
||||
PORTREVISION?= 1
|
||||
PORTVERSION= 8.0.25
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= MYSQL/MySQL-8.0
|
||||
PKGNAMESUFFIX?= 80-server
|
||||
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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,
|
|
@ -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;
|
||||
|
||||
|
|
24
databases/mysql80-server/files/patch-sql_binlog.cc
Normal file
24
databases/mysql80-server/files/patch-sql_binlog.cc
Normal file
|
@ -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;
|
||||
|
|
@ -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);
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue