-diff -ruN mysql-5.7.21.orig/cmake/readline.cmake mysql-5.7.21/cmake/readline.cmake
---- mysql-5.7.21.orig/cmake/readline.cmake 2017-12-28 04:46:26.000000000 +0100
-+++ mysql-5.7.21/cmake/readline.cmake 2018-03-31 21:17:28.373826351 +0200
-@@ -110,23 +110,23 @@ ENDMACRO()
+diff -urNpa mysql-8.0.37.orig/cmake/readline.cmake mysql-8.0.37/cmake/readline.cmake
+--- mysql-8.0.37.orig/cmake/readline.cmake 2024-05-09 12:10:47.722921594 +0200
++++ mysql-8.0.37/cmake/readline.cmake 2024-05-09 12:12:37.116443611 +0200
+@@ -130,23 +130,23 @@ ENDMACRO()
MACRO (FIND_SYSTEM_EDITLINE)
FIND_PATH(FOUND_EDITLINE_READLINE
)
MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
-@@ -139,7 +139,7 @@ MACRO (FIND_SYSTEM_EDITLINE)
+@@ -162,7 +162,7 @@ MACRO (FIND_SYSTEM_EDITLINE)
LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${EDITLINE_LIBRARY})
CHECK_CXX_SOURCE_COMPILES("
#include <stdio.h>
int main(int argc, char **argv)
{
HIST_ENTRY entry;
-@@ -149,14 +149,13 @@ MACRO (FIND_SYSTEM_EDITLINE)
+@@ -172,14 +172,13 @@ MACRO (FIND_SYSTEM_EDITLINE)
CHECK_CXX_SOURCE_COMPILES("
#include <stdio.h>
}"
EDITLINE_HAVE_COMPLETION_INT)
-@@ -168,7 +167,7 @@ MACRO (FIND_SYSTEM_EDITLINE)
+@@ -191,7 +190,7 @@ MACRO (FIND_SYSTEM_EDITLINE)
typedef char* MYFunction(const char*, int);
MYFunction* myf= rl_completion_entry_function;
char *res= (myf)(NULL, 0);
-diff -ur mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/CMakeLists.txt mysql-8.0.35/plugin/group_replication/libmysqlgcs/CMakeLists.txt
---- mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/CMakeLists.txt 2023-12-17 22:05:20.830721323 +0100
-+++ mysql-8.0.35/plugin/group_replication/libmysqlgcs/CMakeLists.txt 2023-12-17 22:07:25.296271792 +0100
-@@ -137,7 +137,6 @@
+diff -urNpa mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/CMakeLists.txt mysql-8.0.37/plugin/group_replication/libmysqlgcs/CMakeLists.txt
+--- mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/CMakeLists.txt 2024-05-09 12:06:10.435063653 +0200
++++ mysql-8.0.37/plugin/group_replication/libmysqlgcs/CMakeLists.txt 2024-05-09 12:06:48.667595584 +0200
+@@ -138,7 +138,6 @@ SET(GCS_SOURCES
src/bindings/xcom/gcs_xcom_statistics_interface.cc
src/bindings/xcom/gcs_xcom_proxy.cc
src/bindings/xcom/gcs_xcom_communication_protocol_changer.cc
src/bindings/xcom/gcs_message_stage_split.cc
src/bindings/xcom/gcs_xcom_synode.cc
src/bindings/xcom/gcs_xcom_expels_in_progress.cc)
-@@ -230,6 +229,7 @@
+@@ -231,6 +230,7 @@ ADD_LIBRARY(mysqlgcs STATIC ${XCOM_SOURC
# Dependency on mysys from gcs_logging_system.cc
# but pick up symbols from the server:
# TARGET_LINK_LIBRARIES(mysqlgcs mysys)
IF(LINUX AND WITH_TIRPC STREQUAL "bundled")
ADD_DEPENDENCIES(mysqlgcs tirpc_ext)
-diff -ur mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc mysql-8.0.35/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc
---- mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc 2023-12-17 22:05:20.832721348 +0100
-+++ mysql-8.0.35/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc 2023-12-17 22:07:25.295271780 +0100
-@@ -126,7 +126,7 @@
+diff -urNpa mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc mysql-8.0.37/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc
+--- mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc 2024-05-09 12:06:10.435063653 +0200
++++ mysql-8.0.37/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_message_stage_split.cc 2024-05-09 12:06:48.667595584 +0200
+@@ -127,7 +127,7 @@ Gcs_sender_id calculate_sender_id(const
std::string info(node.get_member_id().get_member_id());
info.append(node.get_member_uuid().actual_value);
}
bool Gcs_message_stage_split_v2::update_members_information(
-diff -ur mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h mysql-8.0.35/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h
---- mysql-8.0.35.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h 2023-12-17 22:05:20.834721373 +0100
-+++ mysql-8.0.35/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h 2023-12-17 22:07:25.296271792 +0100
-@@ -25,10 +25,6 @@
+diff -urNpa mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h mysql-8.0.37/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h
+--- mysql-8.0.37.orig/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h 2024-05-09 12:06:10.439063709 +0200
++++ mysql-8.0.37/plugin/group_replication/libmysqlgcs/src/bindings/xcom/gcs_xxhash.h 2024-05-09 12:06:48.667595584 +0200
+@@ -26,10 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <xxhash.h>
#endif // GCS_XXHASH_H_INCLUDED
-diff -ur mysql-8.0.35.orig/sql/CMakeLists.txt mysql-8.0.35/sql/CMakeLists.txt
---- mysql-8.0.35.orig/sql/CMakeLists.txt 2023-12-17 22:05:21.077724399 +0100
-+++ mysql-8.0.35/sql/CMakeLists.txt 2023-12-17 22:08:35.180142336 +0100
-@@ -762,7 +762,6 @@
+diff -urNpa mysql-8.0.37.orig/sql/CMakeLists.txt mysql-8.0.37/sql/CMakeLists.txt
+--- mysql-8.0.37.orig/sql/CMakeLists.txt 2024-05-09 12:06:08.783040668 +0200
++++ mysql-8.0.37/sql/CMakeLists.txt 2024-05-09 12:08:19.128854193 +0200
+@@ -762,7 +762,6 @@ SET(SQL_SOURCE
${CONF_SOURCES}
${SQL_SHARED_SOURCES}
${SQL_HEADERS}
../libmysql/errmsg.cc
../sql-common/client.cc
../sql-common/client_plugin.cc
-@@ -818,11 +817,6 @@
+@@ -818,11 +817,6 @@ IF(WIN32)
)
ENDIF()
# Workaround for Apple Clang bug on ARM.
# When linking mysqld (and executables using server_unittest_library)
# we get linker warnings about
-@@ -847,13 +841,6 @@
- )
+@@ -848,13 +842,6 @@ IF(APPLE_ARM)
ENDIF()
--ADD_COMPILE_FLAGS(
+ ADD_COMPILE_FLAGS(
- ${BUNDLED_LZ4_PATH}/xxhash.c
- iterators/hash_join_iterator.cc
- rpl_write_set_handler.cc
- COMPILE_FLAGS -I${CMAKE_SOURCE_DIR}/extra/lz4 -I${BUNDLED_LZ4_PATH}
- )
-
- # Fixes "C1128: number of sections exceeded object file format limit" in MSVC
- IF(WIN32)
- ADD_COMPILE_FLAGS(
-@@ -941,7 +928,7 @@
+-ADD_COMPILE_FLAGS(
+ iterators/hash_join_buffer.cc
+ COMPILE_FLAGS
+ -I${CMAKE_SOURCE_DIR}/extra/unordered_dense/unordered_dense-4.4.0/include
+@@ -947,7 +934,7 @@ ADD_DEPENDENCIES(sql_main GenBootstrapPr
ADD_DEPENDENCIES(sql_main GenSysSchema)
TARGET_LINK_LIBRARIES(sql_main ${MYSQLD_STATIC_PLUGIN_LIBS}
mysql_server_component_services mysys strings vio
extra::rapidjson)
# sql/immutable_string.h uses
-diff -ur mysql-8.0.35.orig/sql/iterators/hash_join_iterator.cc mysql-8.0.35/sql/iterators/hash_join_iterator.cc
---- mysql-8.0.35.orig/sql/iterators/hash_join_iterator.cc 2023-12-17 22:05:21.366728000 +0100
-+++ mysql-8.0.35/sql/iterators/hash_join_iterator.cc 2023-12-17 22:07:25.297271805 +0100
-@@ -32,7 +32,7 @@
- #include "field_types.h"
- #include "my_alloc.h"
+diff -urNpa mysql-8.0.37.orig/sql/iterators/hash_join_iterator.cc mysql-8.0.37/sql/iterators/hash_join_iterator.cc
+--- mysql-8.0.37.orig/sql/iterators/hash_join_iterator.cc 2024-05-09 12:06:08.847041559 +0200
++++ mysql-8.0.37/sql/iterators/hash_join_iterator.cc 2024-05-09 12:09:27.329803079 +0200
+@@ -37,7 +37,7 @@
#include "my_bit.h"
--#include "my_xxhash.h"
-+#include <xxhash.h>
-
#include "my_inttypes.h"
#include "my_sys.h"
-@@ -307,7 +307,7 @@
+-#include "my_xxhash.h"
++#include <xxhash.h>
+ #include "mysql/components/services/bits/psi_bits.h"
+ #include "mysqld_error.h"
+ #include "sql/item.h"
+@@ -306,7 +306,7 @@ static bool WriteRowToChunk(
const uint64_t join_key_hash =
join_key_and_row_buffer->length() == 0
? kZeroKeyLengthHash
join_key_and_row_buffer->length(), xxhash_seed);
assert((chunks->size() & (chunks->size() - 1)) == 0);
-diff -ur mysql-8.0.35.orig/sql/rpl_write_set_handler.cc mysql-8.0.35/sql/rpl_write_set_handler.cc
---- mysql-8.0.35.orig/sql/rpl_write_set_handler.cc 2023-12-17 22:05:21.611731051 +0100
-+++ mysql-8.0.35/sql/rpl_write_set_handler.cc 2023-12-17 22:07:25.297271805 +0100
-@@ -37,7 +37,7 @@
+diff -urNpa mysql-8.0.37.orig/sql/rpl_write_set_handler.cc mysql-8.0.37/sql/rpl_write_set_handler.cc
+--- mysql-8.0.37.orig/sql/rpl_write_set_handler.cc 2024-05-09 12:06:08.823041225 +0200
++++ mysql-8.0.37/sql/rpl_write_set_handler.cc 2024-05-09 12:06:48.667595584 +0200
+@@ -38,7 +38,7 @@
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_murmur3.h" // murmur3_32
#include "mysql_com.h"
#include "sql-common/json_binary.h"
#include "sql-common/json_dom.h"
-@@ -75,7 +75,7 @@
+@@ -76,7 +76,7 @@ uint64 calc_hash(ulong algorithm, type T
if (algorithm == HASH_ALGORITHM_MURMUR32)
return (murmur3_32((const uchar *)T, len, 0));
else
}
#ifndef NDEBUG
-diff -ur mysql-8.0.35.orig/unittest/gunit/hash_join-t.cc mysql-8.0.35/unittest/gunit/hash_join-t.cc
---- mysql-8.0.35.orig/unittest/gunit/hash_join-t.cc 2023-12-17 22:05:25.668781591 +0100
-+++ mysql-8.0.35/unittest/gunit/hash_join-t.cc 2023-12-17 22:08:05.509772732 +0100
-@@ -37,7 +37,7 @@
+diff -urNpa mysql-8.0.37.orig/unittest/gunit/hash_join-t.cc mysql-8.0.37/unittest/gunit/hash_join-t.cc
+--- mysql-8.0.37.orig/unittest/gunit/hash_join-t.cc 2024-05-09 12:06:10.551065267 +0200
++++ mysql-8.0.37/unittest/gunit/hash_join-t.cc 2024-05-09 12:06:48.667595584 +0200
+@@ -38,7 +38,7 @@
#include "my_config.h"
#include "my_inttypes.h"
#include "my_murmur3.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "prealloced_array.h"
#include "sql/field.h"
-@@ -226,7 +226,7 @@
+@@ -227,7 +227,7 @@ static void BM_XXHash64ShortData(size_t
size_t sum = 0;
for (size_t i = 0; i < num_iterations; ++i) {
}
StopBenchmarkTiming();
-@@ -245,7 +245,7 @@
+@@ -246,7 +246,7 @@ static void BM_XXHash64LongData(size_t n
size_t sum = 0;
for (size_t i = 0; i < num_iterations; ++i) {
}
StopBenchmarkTiming();
-diff -ur mysql-8.0.35.orig/unittest/gunit/innodb/ut0rnd-t.cc mysql-8.0.35/unittest/gunit/innodb/ut0rnd-t.cc
---- mysql-8.0.35.orig/unittest/gunit/innodb/ut0rnd-t.cc 2023-12-17 22:05:25.830783608 +0100
-+++ mysql-8.0.35/unittest/gunit/innodb/ut0rnd-t.cc 2023-12-17 22:07:25.298271817 +0100
-@@ -33,7 +33,7 @@
+diff -urNpa mysql-8.0.37.orig/unittest/gunit/innodb/ut0rnd-t.cc mysql-8.0.37/unittest/gunit/innodb/ut0rnd-t.cc
+--- mysql-8.0.37.orig/unittest/gunit/innodb/ut0rnd-t.cc 2024-05-09 12:06:10.551065267 +0200
++++ mysql-8.0.37/unittest/gunit/innodb/ut0rnd-t.cc 2024-05-09 12:06:48.667595584 +0200
+@@ -34,7 +34,7 @@
#include "storage/innobase/include/ut0crc32.h"
#include "storage/innobase/include/ut0rnd.h"
-diff -urNpa mysql-8.0.35.orig/sql/mysqld.cc mysql-8.0.35/sql/mysqld.cc
---- mysql-8.0.35.orig/sql/mysqld.cc 2023-12-20 23:22:13.694682253 +0100
-+++ mysql-8.0.35/sql/mysqld.cc 2023-12-20 23:33:27.807838185 +0100
-@@ -1956,7 +1956,6 @@ static void add_terminator(vector<my_opt
+diff -urNpa mysql-8.0.37.orig/sql/mysqld.cc mysql-8.0.37/sql/mysqld.cc
+--- mysql-8.0.37.orig/sql/mysqld.cc 2024-05-09 12:03:11.592583190 +0200
++++ mysql-8.0.37/sql/mysqld.cc 2024-05-09 12:03:54.597177666 +0200
+@@ -1966,7 +1966,6 @@ static void add_terminator(vector<my_opt
extern "C" bool mysqld_get_one_option(int, const struct my_option *, char *);
static void set_server_version(void);
static int init_thread_environment();
static int fix_paths(void);
static int test_if_case_insensitive(const char *dir_name);
static void end_ssl();
-@@ -6095,7 +6094,7 @@ static char *get_icu_data_directory_in_b
+@@ -6121,7 +6120,7 @@ static char *get_icu_data_directory_in_b
// Look for MYSQL_ICU_DATADIR which depends on INSTALL_PRIV_LIBDIR
static char *get_icu_data_directory_in_install_dir(char *to) {
char buff[FN_REFLEN];
if (test_if_hard_path(mysql_icu_datadir))
strmake(buff, mysql_icu_datadir, sizeof(buff) - 1);
else
-@@ -7196,7 +7195,7 @@ class Plugin_and_data_dir_option_parser
+@@ -7221,7 +7220,7 @@ class Plugin_and_data_dir_option_parser
memset(dir, 0, FN_REFLEN);
convert_dirname(local_plugindir_buffer,
NullS);
(void)my_load_path(local_plugindir_buffer, local_plugindir_buffer,
mysql_home);
-@@ -7286,7 +7285,7 @@ int mysqld_main(int argc, char **argv)
- }
+@@ -7316,7 +7315,7 @@ int mysqld_main(int argc, char **argv)
+ argv_cached[argc_cached] = nullptr;
/* Set data dir directory paths */
- strmake(mysql_real_data_home, get_relative_path(MYSQL_DATADIR),
sizeof(mysql_real_data_home) - 1);
/* Must be initialized early for comparison of options name */
-@@ -11212,15 +11211,6 @@ static void set_server_version(void) {
+@@ -11266,15 +11265,6 @@ static void set_server_version(void) {
#endif
}
/**
Test a file path to determine if the path is compatible with the secure file
path restriction.
-@@ -11445,7 +11435,7 @@ static int fix_paths(void) {
+@@ -11492,7 +11482,7 @@ static int fix_paths(void) {
convert_dirname(
opt_plugin_dir,
NullS);
(void)my_load_path(opt_plugin_dir, opt_plugin_dir, mysql_home);
opt_plugin_dir_ptr = opt_plugin_dir;
-@@ -11456,7 +11446,7 @@ static int fix_paths(void) {
+@@ -11503,7 +11493,7 @@ static int fix_paths(void) {
FN_LIBCHAR)
--mysql_unpacked_real_data_home_len;