[Bug 220224] [PATCH] mail/postfix-current with mysql80-server

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 23 09:20:58 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220224

            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 at FreeBSD.org
          Reporter: mayr at pharmastulln.de
          Keywords: patch
             Flags: maintainer-feedback?(ohauer at FreeBSD.org)
          Assignee: ohauer at FreeBSD.org

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

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

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

I added a few more lines to the file to for mysql >= 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 >= 50023
+#if MYSQL_VERSION_ID >= 80000
+    if (dict_mysql->tls_verify_cert != -1)
+       mysql_options(host->db, MYSQL_OPT_SSL_MODE,
+                     &dict_mysql->tls_verify_cert);
+#elif MYSQL_VERSION_ID >= 50023
     if (dict_mysql->tls_verify_cert != -1)
        mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
                      &dict_mysql->tls_verify_cert);

##############################################################################

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


More information about the freebsd-ports-bugs mailing list