Subject: pkg/19056: update databases/mysqldb to 0.9.2
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlh@goathill.org>
List: netbsd-bugs
Date: 11/14/2002 16:19:50
>Number: 19056
>Category: pkg
>Synopsis: update databases/mysqldb to 0.9.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Nov 14 14:21:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: MLH
>Release: NetBSD 1.6J
>Organization:
none
>Environment:
System: NetBSD tiamat.goathill.org 1.6J NetBSD 1.6J (GENERIC) #0: Fri Nov 1 14:55:15 UTC 2002 autobuild@tgm.daemon.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
update databases/mysqldb to 0.9.2
>How-To-Repeat:
>Fix:
Note that 'platforms = "ALL",' was not removed as with previous
version. Possibly it should be removed here also., but I don't
know the history of the problem and don't see any adverse effects.
shar file with changes to current :
=====================================================
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ./Makefile
# ./distinfo
# ./patches
# ./patches/patch-aa
#
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD: Makefile
X
XDISTNAME= MySQL-python-0.9.2
XPKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.2
XCATEGORIES= databases
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysql-python/}
X
XMAINTAINER= tsarna@netbsd.org
XHOMEPAGE= http://sourceforge.net/projects/mysql-python
XCOMMENT= MySQL interface for Python
X
XUSE_BUILDLINK2= yes
XPYDISTUTILSPKG= yes
XPY_PATCHPLIST= yes
X
Xpost-patch:
X ${SED} -e "s|@MYSQLPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
X -e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
X <${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp
X ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
X
X.include "../../databases/mysql-client/buildlink2.mk"
X.include "../../lang/python/extension.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD: distinfo
X
XSHA1 (MySQL-python-0.9.2.tar.gz) = b6959ee5e28847e557229ddc318b097f10144ff2
XSize (MySQL-python-0.9.2.tar.gz) = 64258 bytes
XSHA1 (patch-aa) = 383e8a856409e12d0c145bb40348efa9d65ce5e3
END-of-./distinfo
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X+++ setup.py Thu Nov 14 15:36:03 2002
X@@ -11,7 +11,7 @@
X NO = 0
X
X # set this to YES if you have the thread-safe mysqlclient library
X-thread_safe_library = YES
X+thread_safe_library = NO
X
X # You probably don't have to do anything past this point. If you
X # do, please mail me the configuration for your platform. Don't
X@@ -23,14 +23,10 @@
X mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"
X
X # include files and library locations should cover most platforms
X-include_dirs = [
X- '/usr/include/mysql', '/usr/local/include/mysql',
X- '/usr/local/mysql/include/mysql'
X- ]
X-library_dirs = [
X- '/usr/lib/mysql', '/usr/local/lib/mysql',
X- '/usr/local/mysql/lib/mysql'
X- ]
X+mysqlprefix = '/usr/pkg'
X+mysqlrtprefix = '/usr/pkg'
X+include_dirs = [mysqlprefix + '/include/mysql']
X+library_dirs = [mysqlprefix + '/lib/mysql']
X
X # MySQL-3.23 and newer need libz
X libraries = [mysqlclient, "z"]
X@@ -38,7 +34,7 @@
X # On some platorms, this can be used to find the shared libraries
X # at runtime, if they are in a non-standard location. Doesn't
X # work for Linux gcc.
X-runtime_library_dirs = []
X+runtime_library_dirs = [mysqlrtprefix + '/lib/mysql']
X
X # This can be used to force linking against static libraries.
X extra_objects = []
X@@ -48,38 +44,6 @@
X extra_compile_args = []
X extra_link_args = []
X
X- include_dirs = ['/usr/pkg/include/mysql']
X- library_dirs = ['/usr/pkg/lib/mysql']
X- LOCALBASE = os.environ.get('LOCALBASE', '/usr/local')
X- include_dirs = ['%s/include/mysql' % LOCALBASE]
X- library_dirs = ['%s/lib/mysql' % LOCALBASE]
X- extra_compile_args.append("-fPIC")
X- libraries = [mysqlclient, 'zlib', 'msvcrt', 'libcmt',
X- 'wsock32', 'advapi32']
X- include_dirs = ['/c/mysql/include']
X- library_dirs = ['/c/mysql/lib']
X- extra_compile_args.append('-DMS_WIN32')
X- include_dirs.append('/sw/include')
X- library_dirs.append('/sw/lib')
X- extra_link_args.append('-flat_namespace')
X- libraries.extend(['ots', 'cpml'])
X- pass # default should work
X- raise "UnknownPlatform", "sys.platform=%s, os.name=%s" % \
X- (sys.platform, os.name)
X-
X long_description = \
X """Python interface to MySQL-3.23
X
END-of-./patches/patch-aa
exit
>Release-Note:
>Audit-Trail:
>Unformatted: