Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2014 17:14:16 GMT
From:      Michael Gmelin <freebsd@grem.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187666: databases/py-MySQLdb: SSL support broken
Message-ID:  <201403171714.s2HHEGlG093964@cgiserv.freebsd.org>
Resent-Message-ID: <201403171720.s2HHK02F029652@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187666
>Category:       ports
>Synopsis:       databases/py-MySQLdb: SSL support broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 17 17:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Michael Gmelin
>Release:        10.0-RELEASE
>Organization:
Grem Equity GmbH
>Environment:
FreeBSD srv18 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Due to "HAVE_OPENSSL" no longer being emitted by mysql-config, py-MySQLdb and all the version specific ports (py-MySQLdb55 etc.) don't support SSL anymore, even though the underlying mysql client library does support it.

The attached patch to _mysql.c fixes this (this should go to files etc., I'm in quite a hurry, so this is really only the patch itself, not a patch for the port skeleton).

It has been taken from upstream:
http://sourceforge.net/p/mysql-python/svn/656/
>How-To-Repeat:
Install and connect to mysql using ssl.
>Fix:
Attached patch.

Patch attached with submission follows:

--- databases/py-MySQLdb55/work/MySQL-python-1.2.3/_mysql.c~      2010-06-17 07:21:56.000000000 +0000
+++ databases/py-MySQLdb55/work/MySQL-python-1.2.3/_mysql.c       2014-03-17 17:07:21.277236517 +0000
@@ -102,6 +102,10 @@
 #define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
 #endif
 
+#if MYSQL_VERSION_ID >= 50500
+#define HAVE_OPENSSL 1
+#endif
+ 
 PyObject *
 _mysql_Exception(_mysql_ConnectionObject *c)
 {


>Release-Note:
>Audit-Trail:
>Unformatted:



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