head 1.7; access; symbols pkgsrc-2013Q2:1.7.0.10 pkgsrc-2013Q2-base:1.7 pkgsrc-2012Q4:1.7.0.8 pkgsrc-2012Q4-base:1.7 pkgsrc-2011Q4:1.7.0.6 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q2:1.7.0.4 pkgsrc-2011Q2-base:1.7 pkgsrc-2009Q4:1.7.0.2 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q2:1.6.0.2 pkgsrc-2009Q2-base:1.6 pkgsrc-2008Q4:1.5.0.6 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.4 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.2 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.4.0.40 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.38 pkgsrc-2008Q1:1.4.0.36 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.34 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.32 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.30 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.28 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.7 date 2009.09.22.13.09.30; author tron; state dead; branches; next 1.6; 1.6 date 2009.05.24.10.51.18; author tron; state Exp; branches; next 1.5; 1.5 date 2008.08.06.17.16.49; author mjl; state dead; branches; next 1.4; 1.4 date 2003.06.06.10.36.38; author jmmv; state Exp; branches; next 1.3; 1.3 date 2003.04.21.20.25.13; author cjep; state Exp; branches; next 1.2; 1.2 date 2003.04.13.14.28.53; author cjep; state Exp; branches; next 1.1; 1.1 date 2002.01.29.14.39.39; author drochner; state Exp; branches; next ; desc @@ 1.7 log @Update "py-mysqldb" package to version 1.2.3rc1 (1.2.3c1). Changes since 1.2.2: - Add a test for connection.ping() - Fix #2061583: Ignore any non-numeric portion of client and server version numbers. - Fix for bug #2479317 (patch #2496558) by kylev. Make some time handling stuff more consistent. - Backport some new trunk tests - Move tests into their own directory to parallel trunk - Short-term fix for bug #2671682. - Add nose.collector as test_suite - We missed one more 2.6-warning generating exception - Fix bug 1808476 for OSX compilation, ported from trunk. - don't leak special-case tuples (present in unicode modes) - Updated ez_setup.py to latest version. - Found one more old-style raise. Should fix #2122496. - Found one more Set reference. - Change raise to use the modern syntax for Python 3.0 compatibility. - Remove more deprecated Set usage. Refs #2156977. - More documentation updates. - Documentation and package data updates - Fix #2001855: Don't use ez_setup; just use setuptools direction. - Fix #2156977: Use frozenset as the base for DBAPISet. Only tested for Python 2.5. - Fix bug #2137599: Better regex for parsing INPUT statements. Passes unit tests but has not been thoroughly tested. - Remove versioned python name from package as egg packaging also does this. This package now works with the "python26" package. @ text @$NetBSD: patch-aa,v 1.6 2009/05/24 10:51:18 tron Exp $ --- _mysql.c.orig 2007-02-28 02:35:56.000000000 +0000 +++ _mysql.c 2009-05-24 11:47:17.000000000 +0100 @@@@ -34,7 +34,7 @@@@ #else #include "my_config.h" #endif -#ifndef uint +#if !defined(uint) && !defined(__APPLE__) #define uint unsigned int #endif #include "mysql.h" @ 1.6 log @Fix build under Mac OS X (Leopard?). @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update py-mysqldb to 1.2.2. Changes are too many to list since the previous version was from 2002. @ text @d1 13 a13 79 $NetBSD: patch-aa,v 1.4 2003/06/06 10:36:38 jmmv Exp $ --- setup.py.orig Thu Jul 18 14:55:36 2002 +++ setup.py Thu Nov 14 15:36:03 2002 @@@@ -11,7 +11,7 @@@@ NO = 0 # set this to YES if you have the thread-safe mysqlclient library -thread_safe_library = YES +thread_safe_library = NO # You probably don't have to do anything past this point. If you # do, please mail me the configuration for your platform. Don't @@@@ -23,14 +23,10 @@@@ mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient" # include files and library locations should cover most platforms -include_dirs = [ - '/usr/include/mysql', '/usr/local/include/mysql', - '/usr/local/mysql/include/mysql' - ] -library_dirs = [ - '/usr/lib/mysql', '/usr/local/lib/mysql', - '/usr/local/mysql/lib/mysql' - ] +mysqlprefix = '@@MYSQLPREFIX@@' +mysqlrtprefix = '@@MYSQLRTPREFIX@@' +include_dirs = [mysqlprefix + '/include/mysql'] +library_dirs = [mysqlprefix + '/lib/mysql'] # MySQL-3.23 and newer need libz libraries = [mysqlclient, "z"] @@@@ -38,7 +34,7 @@@@ # On some platorms, this can be used to find the shared libraries # at runtime, if they are in a non-standard location. Doesn't # work for Linux gcc. -runtime_library_dirs = [] +runtime_library_dirs = [mysqlrtprefix + '/lib/mysql'] # This can be used to force linking against static libraries. extra_objects = [] @@@@ -48,38 +44,6 @@@@ extra_compile_args = [] extra_link_args = [] -if sys.platform == "netbsd1": - include_dirs = ['/usr/pkg/include/mysql'] - library_dirs = ['/usr/pkg/lib/mysql'] -elif sys.platform in ("freebsd4", "openbsd3"): - LOCALBASE = os.environ.get('LOCALBASE', '/usr/local') - include_dirs = ['%s/include/mysql' % LOCALBASE] - library_dirs = ['%s/lib/mysql' % LOCALBASE] -elif sys.platform == "sunos5": # Solaris 2.8 + gcc - runtime_library_dirs.append('/usr/local/lib:/usr/openwin/lib:/usr/dt/lib') - extra_compile_args.append("-fPIC") -elif sys.platform == "win32": # Ugh - include_dirs = [r'c:\mysql\include'] - library_dirs = [r'c:\mysql\lib\opt'] - libraries = [mysqlclient, 'zlib', 'msvcrt', 'libcmt', - 'wsock32', 'advapi32'] - extra_objects = [r'c:\mysql\lib\opt\mysqlclient.lib'] -elif sys.platform == "cygwin": - include_dirs = ['/c/mysql/include'] - library_dirs = ['/c/mysql/lib'] - extra_compile_args.append('-DMS_WIN32') -elif sys.platform[:6] == "darwin": # Mac OS X - include_dirs.append('/sw/include') - library_dirs.append('/sw/lib') - extra_link_args.append('-flat_namespace') -elif sys.platform == 'linux2' and os.environ.get('HOSTTYPE') == 'alpha': - libraries.extend(['ots', 'cpml']) -elif os.name == "posix": # UNIX-ish platforms not covered above - pass # default should work -else: - raise "UnknownPlatform", "sys.platform=%s, os.name=%s" % \ - (sys.platform, os.name) - long_description = \ """Python interface to MySQL-3.23 @ 1.4 log @Fix substitution of mysql prefix in the setup.py script. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2003/04/21 20:25:13 cjep Exp $ @ 1.3 log @RCS tag @ text @d1 1 a1 1 $NetBSD$ d25 2 a26 2 +mysqlprefix = '/usr/pkg' +mysqlrtprefix = '/usr/pkg' @ 1.2 log @Update of database/py-mysqldb to 0.9.2. Changes since 0.9.1 include: * Bugs fixed, including segfault problem with Python 1.5.2 * Take advantage of GC memory allocator in Python 2.2 * cursor.execute(query) with no arguments leaves the original query string alone. * Mac OS X tidy ups. * Memory leak fixes. * cursor.executemany() fixes. * Other fixes (see the CHANGELOG file for details) From PR#19056 from MLH. Note that we assume the client library is not thread safe as per 0.9.1. @ text @d1 1 @ 1.1 log @update to 0.9.1, in response to PR pkg/15054 by jgoerzen@@complete.org @ text @d1 4 a4 5 $NetBSD$ --- setup.py.orig Wed Oct 17 05:17:30 2001 +++ setup.py Tue Jan 29 15:29:27 2002 @@@@ -18,53 +18,13 @@@@ d6 7 d15 40 a54 19 -if sys.platform in ("linux-i386", "linux2"): # most Linux - include_dirs = ['/usr/include/mysql'] - library_dirs = ['/usr/lib/mysql'] - libraries = [mysqlclient, "z"] - runtime_library_dirs = [] - extra_objects = [] -elif sys.platform in ("freebsd4", "openbsd2"): - include_dirs = ['/usr/local/include/mysql'] - library_dirs = ['/usr/local/lib/mysql'] - libraries = [mysqlclient, "z"] - runtime_library_dirs = [] - extra_objects = [] -elif sys.platform == "sunos5": # Solaris 2.8 - include_dirs = ['/usr/local/mysql/include/mysql'] - library_dirs = ['/usr/local/mysql/lib/mysql'] - libraries = [mysqlclient, "z"] - runtime_library_dirs = ['/usr/local/lib:/usr/openwin/lib:/usr/dt/lib'] - extra_objects = [] -elif sys.platform == "win32": a58 1 - runtime_library_dirs = [] d60 12 a71 19 -elif sys.platform == "darwin1": # Mac OS X - include_dirs = ['/usr/local/mysql/include/mysql'] - library_dirs = ['/usr/local/mysql/lib/mysql'] - libraries = [mysqlclient, "z"] - runtime_library_dirs = [] - extra_objects = [] -elif os.name == "posix": # most Linux/UNIX platforms - include_dirs = ['/usr/include/mysql'] - library_dirs = ['/usr/lib/mysql'] - # MySQL-3.23 needs libz - libraries = [mysqlclient, "z"] - # On some platorms, this can be used to find the shared libraries - # at runtime, if they are in a non-standard location. Doesn't - # work for Linux gcc. - ## runtime_library_dirs = library_dirs - runtime_library_dirs = [] - # This can be used on Linux to force use of static mysqlclient lib - ## extra_objects = ['/usr/lib/mysql/libmysqlclient.a'] - extra_objects = [] d75 1 a75 8 +mysqlprefix = '@@MYSQLPREFIX@@' +mysqlrtprefix = '@@MYSQLRTPREFIX@@' +include_dirs = [mysqlprefix + '/include/mysql'] +library_dirs = [mysqlprefix + '/lib/mysql'] +libraries = [mysqlclient, "z"] +runtime_library_dirs = [mysqlrtprefix + '/lib/mysql'] +extra_objects = [] a77 8 @@@@ -93,7 +53,8 @@@@ author = "Andy Dustman", author_email = "andy@@dustman.net", license = "GPL", - platforms = "ALL", +# "platforms" doesn't work for Python 2.0.x +# platforms = "ALL", url = "http://sourceforge.net/projects/mysql-python", a78 1 # Description of the modules and packages in the distribution @