py-MySQLdb depends on mysql323-client
Guy Middleton
guy at obstruction.com
Mon Aug 4 14:56:09 PDT 2003
On Mon, Aug 04, 2003 at 11:11:28PM +0200, Clement Laforet wrote:
> On Mon, 4 Aug 2003 16:45:37 -0400
> Guy Middleton <guy at obstruction.com> wrote:
>
> > py-MySQLdb depends on mysql323-client.
> >
> > This is inconvenient because I'm using mysql40. Could the py-MySQLdb package
> > be changed so that I can choose which version of MySQL to install? The
> > MySQLdb README file claims that it works with MySQL 4.0.
>
> can you try this patch ?
Yes! This does the trick perfectly (see below). Thanks very much.
-Guy
# make
===> Extracting for py-MySQLdb-0.9.2
>> Checksum OK for MySQL-python-0.9.2.tar.gz.
===> Patching for py-MySQLdb-0.9.2
===> Applying FreeBSD patches for py-MySQLdb-0.9.2
===> py-MySQLdb-0.9.2 depends on file: /usr/local/bin/python2.2 - found
===> py-MySQLdb-0.9.2 depends on shared library: mysqlclient.12 - found
===> Configuring for py-MySQLdb-0.9.2
===> Building for py-MySQLdb-0.9.2
running build
running build_py
creating build
creating build/lib.freebsd-5.1-RELEASE-i386-2.2
copying CompatMysqldb.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2
copying _mysql_exceptions.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2
creating build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/__init__.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/converters.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/connections.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/cursors.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/sets.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
copying MySQLdb/times.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb
creating build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.freebsd-5.1-RELEASE-i386-2.2/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.freebsd-5.1-RELEASE-i386-2.2
cc -DNDEBUG -O -pipe -mcpu=pentiumpro -D_THREAD_SAFE -fPIC -I/usr/local/include/mysql -I/usr/local/include/python2.2 -c _mysql.c -o build/temp.freebsd-5.1-RELEASE-i386-2.2/_mysql.o -O -pipe -march=pentium3
_mysql.c: In function `_mysql_ConnectionObject_info':
_mysql.c:1150: warning: assignment discards qualifiers from pointer target type
_mysql.c: In function `_mysql_ConnectionObject_stat':
_mysql.c:1379: warning: assignment discards qualifiers from pointer target type
cc -shared -lc_r build/temp.freebsd-5.1-RELEASE-i386-2.2/_mysql.o -L/usr/local/lib/mysql -lmysqlclient -lz -o build/lib.freebsd-5.1-RELEASE-i386-2.2/_mysql.so
#
More information about the freebsd-ports
mailing list