Re: BUG-Report: mysql: SSL support not compiled in (remove ssl_client_ca_file and ssl_client_ca_dir settings) third attempt!

Timo Sirainen via dovecot <[email protected]> Wed, 1 Apr 2026 15:32:49 +0300
Newsgroups gmane.mail.imap.dovecot
Message-ID <[email protected]>
On 1. Apr 2026, at 10.23, Klaus Tachtler via dovecot <[email protected]> wrote:
> 
> An error occurs, while trying to establish a TLS/SSL secured connection to a database (mariadb), which has the ability to accept TLS/SSL connections.
..
>> It took quite some debugging, but adding the following hack before the
>> autoreconf call appears to make it work:
>> checking for mysql_ssl_set in -llibmariadb... no

Can you verify if the attached patch works?

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
mariadb.patch (application/octet-stream, 1 KB)
commit 97f5f3ef7a7f4adacd5d910d658974628974cb1d
Author: Timo Sirainen <[email protected]>
Date:   Wed Apr 1 15:22:16 2026 +0300

    m4: want_mysql.m4 - Fix detecting SSL support with libmariadb

diff --git a/m4/want_mysql.m4 b/m4/want_mysql.m4
index 7274708c63..2fc6a7cffe 100644
--- a/m4/want_mysql.m4
+++ b/m4/want_mysql.m4
@@ -24,7 +24,7 @@ AC_DEFUN([DOVECOT_WANT_MYSQL], [
         AC_MSG_NOTICE([building MySQL support with MariaDB])
 
         have_mysql=yes
-        mysql_driver="libmariadb"
+        mysql_driver="mariadb"
         MYSQL_LIBS="$MARIADB_LIBS"
         MYSQL_CFLAGS="$MARIADB_CFLAGS"
       ])
@@ -75,7 +75,7 @@ AC_DEFUN([DOVECOT_WANT_MYSQL], [
     found_sql_drivers="$found_sql_drivers mysql"
     AC_DEFINE(HAVE_MYSQL,, [Build with MySQL support])
 
-    dnl $mysql_driver is set to "mysqlclient" or "libmariadb" if
+    dnl $mysql_driver is set to "mysqlclient" or "mariadb" if
     dnl "$have_mysql" is not "no"
     AC_CHECK_LIB($mysql_driver, mysql_ssl_set, [
       AC_DEFINE(HAVE_MYSQL_SSL,, [