From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 9 17:10:27 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8840E16A4DF for ; Wed, 9 Feb 2005 17:10:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B24F943D54 for ; Wed, 9 Feb 2005 17:10:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j19HAQ4F014297 for ; Wed, 9 Feb 2005 17:10:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j19HAQFk014296; Wed, 9 Feb 2005 17:10:26 GMT (envelope-from gnats) Date: Wed, 9 Feb 2005 17:10:26 GMT Message-Id: <200502091710.j19HAQFk014296@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Marcus Grando Subject: Re: ports/77284: Update port: databases/py-MySQLdb new default options X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marcus Grando List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 17:10:27 -0000 The following reply was made to PR ports/77284; it has been noted by GNATS. From: Marcus Grando To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/77284: Update port: databases/py-MySQLdb new default options Date: Wed, 09 Feb 2005 15:04:54 -0200 This is a multi-part message in MIME format. --------------090209090900020600050208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Update port: databases/py-MySQLdb new default options - Change default mysql lib to libmysqlclient_r. WITHOUT_MYSQLCLIENT_R=yes use libmysqlclient. - Update very old pkg-descr Attached -- Marcus Grando Grupos Internet S/A marcus(at)corp.grupos.com.br --------------090209090900020600050208 Content-Type: text/plain; name="py-MySQLdb.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="py-MySQLdb.patch" diff -ruN py-MySQLdb.old/Makefile py-MySQLdb/Makefile --- py-MySQLdb.old/Makefile Tue Feb 8 20:14:31 2005 +++ py-MySQLdb/Makefile Wed Feb 9 14:59:57 2005 @@ -27,12 +27,13 @@ @${ECHO} "" @${ECHO} "You may use the following build options:" @${ECHO} "" - @${ECHO} " WITH_MYSQLCLIENT_R=yes Use mysqlclient_r lib" + @${ECHO} " WITHOUT_MYSQLCLIENT_R=yes Don't use mysqlclient_r lib" + @${ECHO} " but is not guarantee thread-safe." + @${ECHO} "" + @${ECHO} " Default use mysqlclient_r" @${ECHO} "" -.if defined(WITH_MYSQLCLIENT_R) -MAKE_ENV+= mysqlclient="mysqlclient_r" -.else +.if defined(WITHOUT_MYSQLCLIENT_R) MAKE_ENV+= mysqlclient="mysqlclient" .endif diff -ruN py-MySQLdb.old/pkg-descr py-MySQLdb/pkg-descr --- py-MySQLdb.old/pkg-descr Sat May 8 01:17:38 2004 +++ py-MySQLdb/pkg-descr Wed Feb 9 15:00:46 2005 @@ -1,15 +1,17 @@ -You can easily access a MySQL database through the Python MySQL module. +Python interface to MySQL -This module should be mostly compatible with an older interface written by -Joe Skinner and others. However, the older version is +MySQLdb is an interface to the popular MySQL database server for Python. +The design goals are: - a) not thread-friendly (database operations could cause all other threads to - block), - b) written for MySQL 3.21 (does not compile against newer versions without - patches), - c) apparently not actively maintained. +- Compliance with Python database API version 2.0 +- Thread-safety +- Thread-friendliness (threads will not block each other) +- Compatibility with MySQL-3.22 and later -MySQLdb is a completely new module, distributed free of charge under a license -derived from the Python license. +This module should be mostly compatible with an older interface +written by Joe Skinner and others. However, the older version is +a) not thread-friendly, b) written for MySQL 3.21, c) apparently +not actively maintained. No code from that version is used in +MySQLdb. MySQLdb is free software. WWW: http://sourceforge.net/projects/mysql-python/ --------------090209090900020600050208--