Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2017 09:20:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220224] [PATCH] mail/postfix-current with mysql80-server
Message-ID:  <bug-220224-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220224

            Bug ID: 220224
           Summary: [PATCH] mail/postfix-current with mysql80-server
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ohauer@FreeBSD.org
          Reporter: mayr@pharmastulln.de
          Keywords: patch
             Flags: maintainer-feedback?(ohauer@FreeBSD.org)
          Assignee: ohauer@FreeBSD.org

If databases/mysql80-server is usedand postfix-current is compiled with mys=
ql
support, building postfix-current fails in the file src/global/dict_mysql.c=
=20

MYSQL_OPT_SSL_VERIFY_SERVER_CERT needs to be replaced by MYSQL_OPT_SSL_MODE
to fix this problem.

See =3D=3D> https://dev.mysql.com/worklog/task/?id=3D9091 for details.

I added a few more lines to the file to for mysql >=3D 8.0.

Maybe a postfix developer can add this Patch in the postfix-source ?

###########################################################################=
###

--- dict_mysql.org      2017-06-23 10:25:56.580165000 +0200
+++ dict_mysql.c        2017-06-23 10:14:55.081609000 +0200
@@ -656,7 +656,11 @@
                      dict_mysql->tls_key_file, dict_mysql->tls_cert_file,
                      dict_mysql->tls_CAfile, dict_mysql->tls_CApath,
                      dict_mysql->tls_ciphers);
-#if MYSQL_VERSION_ID >=3D 50023
+#if MYSQL_VERSION_ID >=3D 80000
+    if (dict_mysql->tls_verify_cert !=3D -1)
+       mysql_options(host->db, MYSQL_OPT_SSL_MODE,
+                     &dict_mysql->tls_verify_cert);
+#elif MYSQL_VERSION_ID >=3D 50023
     if (dict_mysql->tls_verify_cert !=3D -1)
        mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
                      &dict_mysql->tls_verify_cert);

###########################################################################=
###

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220224-13>