From 5b2c21201e954749fd6716f2bf5d476581fef19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Thu, 3 Oct 2024 08:17:54 +0100 Subject: [PATCH] libmariadbclient: update to 3.4.1 --- .../002-fix-cmake-configure.patch | 15 +++++++++++++ .../002-fix-prototype.patch | 22 ------------------- mingw-w64-libmariadbclient/PKGBUILD | 12 +++++----- 3 files changed, 21 insertions(+), 28 deletions(-) create mode 100644 mingw-w64-libmariadbclient/002-fix-cmake-configure.patch delete mode 100644 mingw-w64-libmariadbclient/002-fix-prototype.patch diff --git a/mingw-w64-libmariadbclient/002-fix-cmake-configure.patch b/mingw-w64-libmariadbclient/002-fix-cmake-configure.patch new file mode 100644 index 0000000000000..792864065af9c --- /dev/null +++ b/mingw-w64-libmariadbclient/002-fix-cmake-configure.patch @@ -0,0 +1,15 @@ +--- a/plugins/auth/CMakeLists.txt ++++ b/plugins/auth/CMakeLists.txt +@@ -69,9 +69,11 @@ + INCLUDES ${REF10_DIR} + LIBRARIES ${CRYPT_LIBS} + COMPILE_OPTIONS -DMYSQL_CLIENT=1) ++ if(TARGET client_ed25519) + SET_PROPERTY(TARGET client_ed25519 PROPERTY C_STANDARD 11) ++ endif() + +- IF(HAVE_C_THREAD_LOCAL) ++ IF(HAVE_C_THREAD_LOCAL AND TARGET client_ed25519) + TARGET_COMPILE_DEFINITIONS(client_ed25519 PRIVATE -DHAVE_THREAD_LOCAL) + ENDIF() + diff --git a/mingw-w64-libmariadbclient/002-fix-prototype.patch b/mingw-w64-libmariadbclient/002-fix-prototype.patch deleted file mode 100644 index c7ec1a4435c1b..0000000000000 --- a/mingw-w64-libmariadbclient/002-fix-prototype.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- mariadb-connector-c-3.1.7-src/include/mysql.h.orig 2020-04-25 18:52:37.817258900 +0300 -+++ mariadb-connector-c-3.1.7-src/include/mysql.h 2020-04-25 18:52:43.342827200 +0300 -@@ -467,7 +467,7 @@ - MYSQL_CLIENT_PLUGIN_HEADER - }; - --struct st_mysql_client_plugin * -+struct st_mysql_client_plugin * STDCALL - mysql_load_plugin(struct st_mysql *mysql, const char *name, int type, - int argc, ...); - struct st_mysql_client_plugin * STDCALL ---- mariadb-connector-c-3.1.7-src/include/mysql/client_plugin.h.orig 2020-04-25 18:51:10.870443800 +0300 -+++ mariadb-connector-c-3.1.7-src/include/mysql/client_plugin.h 2020-04-25 18:51:14.620895400 +0300 -@@ -180,7 +180,7 @@ - @retval - a pointer to the loaded plugin, or NULL in case of a failure - */ --struct st_mysql_client_plugin * -+struct st_mysql_client_plugin * STDCALL - mysql_load_plugin(struct st_mysql *mysql, const char *name, int type, - int argc, ...); - diff --git a/mingw-w64-libmariadbclient/PKGBUILD b/mingw-w64-libmariadbclient/PKGBUILD index adc85a20b64cd..20e8140d92cd3 100644 --- a/mingw-w64-libmariadbclient/PKGBUILD +++ b/mingw-w64-libmariadbclient/PKGBUILD @@ -3,8 +3,8 @@ _realname=libmariadbclient pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=3.3.8 -pkgrel=2 +pkgver=3.4.1 +pkgrel=1 pkgdesc="MariaDB client libraries (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -24,12 +24,12 @@ depends=("${MINGW_PACKAGE_PREFIX}-curl" "${MINGW_PACKAGE_PREFIX}-zstd") source=(https://mirror.rackspace.com/mariadb/connector-c-${pkgver}/mariadb-connector-c-${pkgver}-src.tar.gz{,.asc} 001-mingw-build.patch - 002-fix-prototype.patch + 002-fix-cmake-configure.patch 003-gcc-fix-use_VA_ARGS.patch) -sha256sums=('f9f076b4aa9fb22cc94b24f82c80f9ef063805ecd6533a2eb5d5060cf93833e8' +sha256sums=('0a7f2522a44a7369c1dda89676e43485037596a7b1534898448175178aedeb4d' 'SKIP' '64ad2b8c85fb369c20c1941c896c2a7d5202a8b7259e9e31922c8d0bfcbfd198' - '346695ce8f10c2c426f880240ef7bbe7b8d70c6e58b0cc30483735c2b2d53261' + '44aabb02066511d387b75a492aa824ac12a5439969494b497e3225206f879197' 'fc08055e5d63e310e2658b15f6e1f00b59f2aad2dec37560c01954fac6af4a6e') validpgpkeys=("177F4010FE56CA3336300305F1656F24C74CD1D8") #MariaDB Package Signing Key @@ -45,7 +45,7 @@ prepare() { cd ${srcdir}/mariadb-connector-c-${pkgver}-src apply_patch_with_msg \ 001-mingw-build.patch \ - 002-fix-prototype.patch \ + 002-fix-cmake-configure.patch \ 003-gcc-fix-use_VA_ARGS.patch }