From owner-freebsd-ports@FreeBSD.ORG Mon Aug 4 14:56:09 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38C8137B401 for ; Mon, 4 Aug 2003 14:56:09 -0700 (PDT) Received: from chaos.obstruction.com (CPE00e018983b2f-CM013349903124.cpe.net.cable.rogers.com [24.156.200.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE63943F93 for ; Mon, 4 Aug 2003 14:56:07 -0700 (PDT) (envelope-from guy-dated-1062626219.8ad4a2@obstruction.com) Received: from chaos.obstruction.com (localhost [127.0.0.1]) by chaos.obstruction.com (Postfix) with ESMTP id ACF8D5C20 for ; Mon, 4 Aug 2003 17:56:59 -0400 (EDT) Received: by chaos.obstruction.com (tmda-sendmail, from uid 1000); Mon, 04 Aug 2003 17:56:59 -0400 (EDT) Date: Mon, 4 Aug 2003 17:56:49 -0400 To: Clement Laforet Message-ID: <20030804215649.GA80234@chaos.obstruction.com> References: <20030804204537.GA30771@chaos.obstruction.com> <20030804231128.2eb3c9ae.sheepkiller@cultdeadsheep.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030804231128.2eb3c9ae.sheepkiller@cultdeadsheep.org> User-Agent: Mutt/1.4.1i From: Guy Middleton X-Delivery-Agent: TMDA/0.80 (Determine) cc: ports@FreeBSD.org Subject: Re: py-MySQLdb depends on mysql323-client X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guy Middleton List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 21:56:09 -0000 On Mon, Aug 04, 2003 at 11:11:28PM +0200, Clement Laforet wrote: > On Mon, 4 Aug 2003 16:45:37 -0400 > Guy Middleton 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 #