[packages/tpop3d] add compatibility with mysql >= 8
atler
atler at pld-linux.org
Mon Aug 4 15:19:24 CEST 2025
commit 63a419a7a44f4d88ed4b953b67ee820fefe56045
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 4 15:18:54 2025 +0200
add compatibility with mysql >= 8
mysql8.patch | 14 ++++++++++++++
tpop3d.spec | 2 ++
2 files changed, 16 insertions(+)
---
diff --git a/tpop3d.spec b/tpop3d.spec
index 4506eae..df8650f 100644
--- a/tpop3d.spec
+++ b/tpop3d.spec
@@ -31,6 +31,7 @@ Patch3: %{name}-lib.patch
Patch4: %{name}-ssl-chain.patch
Patch5: %{name}-bug-33413.patch
Patch6: mod_perl.patch
+Patch7: mysql8.patch
URL: https://savannah.nongnu.org/projects/tpop3d
BuildRequires: autoconf
BuildRequires: automake
@@ -122,6 +123,7 @@ pomiędzy sesjami.
%patch -P4 -p1
%patch -P5 -p1
%patch -P6 -p1
+%patch -P7 -p1
%build
%{__aclocal}
diff --git a/mysql8.patch b/mysql8.patch
new file mode 100644
index 0000000..d194264
--- /dev/null
+++ b/mysql8.patch
@@ -0,0 +1,14 @@
+--- tpop3d-1.5.5/auth_mysql.c.orig 2008-03-31 21:42:29.000000000 +0200
++++ tpop3d-1.5.5/auth_mysql.c 2025-08-04 15:16:45.930459000 +0200
+@@ -99,7 +99,11 @@
+ static MYSQL mysql_handle;
+ char *password;
+ unsigned int timeout;
++#if defined(LIBMYSQL_VERSION_ID) && LIBMYSQL_VERSION_ID >= 80000
++ bool want_reconnect = 0;
++#else
+ my_bool want_reconnect = 0;
++#endif
+
+ if (mysql && mysql_ping(mysql) == 0)
+ /* The current server is up and running. */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tpop3d.git/commitdiff/63a419a7a44f4d88ed4b953b67ee820fefe56045
More information about the pld-cvs-commit
mailing list