From beb55b97ac953e88a858e020199763bd280ed355 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:57:49 +0100 Subject: [PATCH] revert upstream change to mysql_get_client breaking libqt5 5.15.2 [release 10.6.3-2mamba;Tue Jul 27 2021] --- ...0.6.3-revert-mysql_get_client-change.patch | 34 +++++++++++++++++++ mariadb.spec | 9 +++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 mariadb-10.6.3-revert-mysql_get_client-change.patch diff --git a/mariadb-10.6.3-revert-mysql_get_client-change.patch b/mariadb-10.6.3-revert-mysql_get_client-change.patch new file mode 100644 index 0000000..8c9e9b2 --- /dev/null +++ b/mariadb-10.6.3-revert-mysql_get_client-change.patch @@ -0,0 +1,34 @@ +From a37b7c3965706f9a062baaba0c494dd6efb2c306 Mon Sep 17 00:00:00 2001 +From: Georg Richter +Date: Mon, 31 May 2021 12:44:51 +0200 +Subject: [PATCH] CONC-509: mysql_get_client* api functions should return C/C + version. + +Instead of server version the api functions mysql_get_client_info and +mysql_get_client_version should return MARIADB_PACKAGE_VERSION/ID. +--- + libmariadb/mariadb_lib.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libmariadb/mariadb_lib.c b/libmariadb/mariadb_lib.c +index 3fb9d0b2..e4baff33 100644 +--- a/libmariadb/mariadb_lib.c ++++ b/libmariadb/mariadb_lib.c +@@ -2946,7 +2946,7 @@ mysql_get_proto_info(MYSQL *mysql) + const char * STDCALL + mysql_get_client_info(void) + { +- return (char*) MARIADB_CLIENT_VERSION_STR; ++ return (char*) MARIADB_PACKAGE_VERSION; + } + + static size_t get_store_length(size_t length) +@@ -3968,7 +3968,7 @@ int STDCALL mysql_set_server_option(MYSQL *mysql, + + ulong STDCALL mysql_get_client_version(void) + { +- return MARIADB_VERSION_ID; ++ return MARIADB_PACKAGE_VERSION_ID; + } + + ulong STDCALL mysql_hex_string(char *to, const char *from, unsigned long len) diff --git a/mariadb.spec b/mariadb.spec index 6d8bb3e..14ea3f5 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -6,7 +6,7 @@ Name: mariadb Version: 10.6.3 -Release: 1mamba +Release: 2mamba Summary: A SQL database engine designed as a drop-in replacement of MySQL(R) Group: Applications/Databases Vendor: openmamba @@ -17,6 +17,7 @@ Source: https://mirror.one.com/mariadb/mariadb-%{version}/source/mariadb- Source1: mariadb.service Source2: mariadb-tmpfile.conf Source3: mariadb-logrotate +Patch1: mariadb-10.6.3-revert-mysql_get_client-change.patch Patch2: mariadb-10.5.9-fix-cmake-ConnectorName-syntax.patch License: GPL ## AUTOBUILDREQ-BEGIN @@ -151,7 +152,8 @@ This package contains the development header files and libraries necessary to de %setup -q #-D -T #:<< _EOF -#%patch2 -p1 +cd libmariadb +%patch1 -p1 -R %build %cmake -d build \ @@ -650,6 +652,9 @@ fi %{_mandir}/man3/mysql_*.3* %changelog +* Tue Jul 27 2021 Silvan Calarco 10.6.3-2mamba +- revert upstream change to mysql_get_client breaking libqt5 5.15.2 + * Sun Jul 18 2021 Automatic Build System 10.6.3-1mamba - automatic version update by autodist