[31502] trunk/dports/python/py25-mysql
stechert at macports.org
stechert at macports.org
Sun Nov 25 22:03:34 PST 2007
Revision: 31502
http://trac.macosforge.org/projects/macports/changeset/31502
Author: stechert at macports.org
Date: 2007-11-25 22:03:33 -0800 (Sun, 25 Nov 2007)
Log Message:
-----------
allow py25-mysql to build on Leopard, fixes #13078, sorry for the long delay - just got around to installing Leopard this weekend
Modified Paths:
--------------
trunk/dports/python/py25-mysql/Portfile
Added Paths:
-----------
trunk/dports/python/py25-mysql/files/patch-_mysql.c
Modified: trunk/dports/python/py25-mysql/Portfile
===================================================================
--- trunk/dports/python/py25-mysql/Portfile 2007-11-26 05:54:57 UTC (rev 31501)
+++ trunk/dports/python/py25-mysql/Portfile 2007-11-26 06:03:33 UTC (rev 31502)
@@ -15,7 +15,7 @@
master_sites sourceforge:mysql-python
distname MySQL-python-${version}
checksums md5 532268f02870bea18c1d465e88afff30
-patchfiles patch-setup_posix.py
+patchfiles patch-setup_posix.py patch-_mysql.c
depends_lib-append port:mysql5 port:py25-setuptools
Added: trunk/dports/python/py25-mysql/files/patch-_mysql.c
===================================================================
--- trunk/dports/python/py25-mysql/files/patch-_mysql.c (rev 0)
+++ trunk/dports/python/py25-mysql/files/patch-_mysql.c 2007-11-26 06:03:33 UTC (rev 31502)
@@ -0,0 +1,23 @@
+--- _mysql.c.orig 2007-02-27 18:35:56.000000000 -0800
++++ _mysql.c 2007-11-25 21:54:09.000000000 -0800
+@@ -34,9 +34,6 @@
+ #else
+ #include "my_config.h"
+ #endif
+-#ifndef uint
+-#define uint unsigned int
+-#endif
+ #include "mysql.h"
+ #include "mysqld_error.h"
+ #include "errmsg.h"
+@@ -481,8 +478,8 @@
+ #endif
+ char *host = NULL, *user = NULL, *passwd = NULL,
+ *db = NULL, *unix_socket = NULL;
+- uint port = MYSQL_PORT;
+- uint client_flag = 0;
++ unsigned int port = MYSQL_PORT;
++ unsigned int client_flag = 0;
+ static char *kwlist[] = { "host", "user", "passwd", "db", "port",
+ "unix_socket", "conv",
+ "connect_timeout", "compress",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071125/da307399/attachment-0001.html
More information about the macports-changes
mailing list