From owner-freebsd-ports-bugs@freebsd.org Fri Jun 23 09:20:58 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59B3DDA056B for ; Fri, 23 Jun 2017 09:20:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 473CA7E5B1 for ; Fri, 23 Jun 2017 09:20:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5N9Kvh8003399 for ; Fri, 23 Jun 2017 09:20:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 220224] [PATCH] mail/postfix-current with mysql80-server Date: Fri, 23 Jun 2017 09:20:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mayr@pharmastulln.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ohauer@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2017 09:20:58 -0000 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.=