Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 06:34:55 -0700 (PDT)
From:      gabriel_ambuehl@root.li
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/20884: py-MySQLdb checksums are broken
Message-ID:  <20000827133455.D05B937B424@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         20884
>Category:       ports
>Synopsis:       py-MySQLdb checksums are broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 27 06:40:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gabriel Ambuehl
>Release:        4.1 STABLE
>Organization:
ROOT.LI
>Environment:
>Description:
The checksums of the py-MySQLdb are broken. The following should fix this.
>How-To-Repeat:
cd /usr/ports/databases/py-MySQLdb
make

>Fix:
# 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:
#
#	py-MySQLdb
#	py-MySQLdb/files
#	py-MySQLdb/files/md5
#	py-MySQLdb/patches
#	py-MySQLdb/patches/patch-aa
#	py-MySQLdb/Makefile
#	py-MySQLdb/pkg
#	py-MySQLdb/pkg/COMMENT
#	py-MySQLdb/pkg/DESCR
#	py-MySQLdb/pkg/PLIST
#
echo c - py-MySQLdb
mkdir -p py-MySQLdb > /dev/null 2>&1
echo c - py-MySQLdb/files
mkdir -p py-MySQLdb/files > /dev/null 2>&1
echo x - py-MySQLdb/files/md5
sed 's/^X//' >py-MySQLdb/files/md5 << 'END-of-py-MySQLdb/files/md5'
XMD5 (MySQLdb-0.2.2.tar.gz) = 660b2868484a619f5cfc60fd521c06be
END-of-py-MySQLdb/files/md5
echo c - py-MySQLdb/patches
mkdir -p py-MySQLdb/patches > /dev/null 2>&1
echo x - py-MySQLdb/patches/patch-aa
sed 's/^X//' >py-MySQLdb/patches/patch-aa << 'END-of-py-MySQLdb/patches/patch-aa'
X--- Setup.in.orig	Fri Jun 23 23:21:56 2000
X+++ Setup.in	Sat Jun 24 18:16:11 2000
X@@ -4,7 +4,7 @@
X # If you have dynamic MySQL libraries, they will need to be on your
X # LD_LIBRARY_PATH at runtime.
X # I find that 3.23 requires libz. It probably won't hurt earlier versions.
X-_mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lz
X+_mysql _mysqlmodule.c -I${LOCALBASE}/include/mysql -L${LOCALBASE}/lib/mysql -lmysqlclient -lz
X 
X # Uncomment for Windows
X #_mysql _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32
END-of-py-MySQLdb/patches/patch-aa
echo x - py-MySQLdb/Makefile
sed 's/^X//' >py-MySQLdb/Makefile << 'END-of-py-MySQLdb/Makefile'
X# New ports collection makefile for:	py-MySQLdb
X# Date created:				04 April 2000
X# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
X#
X# $FreeBSD: ports/databases/py-MySQLdb/Makefile,v 1.3 2000/06/24 15:39:13 sobomax Exp $
X#
X
XPORTNAME=	py-MySQLdb
XPORTVERSION=	0.2.2
XCATEGORIES=	databases python
XMASTER_SITES=	http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/
XDISTNAME=	MySQLdb-${PORTVERSION}
X
XMAINTAINER=	sobomax@FreeBSD.org
X
XBUILD_DEPENDS=	python:${PORTSDIR}/lang/python
XLIB_DEPENDS=	mysqlclient.6:${PORTSDIR}/databases/mysql322-client
XRUN_DEPENDS=	python:${PORTSDIR}/lang/python
X
XFETCH_BEFORE_ARGS=	-b
XALL_TARGET=	_mysqlmodule.o
X
Xpre-configure:
X	@${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/
X
Xdo-configure:
X	@cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
X
Xpost-build:
X	@-${LOCALBASE}/bin/python \
X		${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC} 2>/dev/null
X
Xpost-install:
X	@${INSTALL_DATA} \
X		${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples
X	@${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb
X	@${INSTALL_MAN} \
X		${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples
X.endif
X
X.include <bsd.port.mk>
END-of-py-MySQLdb/Makefile
echo c - py-MySQLdb/pkg
mkdir -p py-MySQLdb/pkg > /dev/null 2>&1
echo x - py-MySQLdb/pkg/COMMENT
sed 's/^X//' >py-MySQLdb/pkg/COMMENT << 'END-of-py-MySQLdb/pkg/COMMENT'
XAccess a MySQL database through Python
END-of-py-MySQLdb/pkg/COMMENT
echo x - py-MySQLdb/pkg/DESCR
sed 's/^X//' >py-MySQLdb/pkg/DESCR << 'END-of-py-MySQLdb/pkg/DESCR'
XYou can easily access a MySQL database through the Python MySQL module.
X
XThis module should be mostly compatible with an older interface written by
XJoe Skinner and others. However, the older version is 
X
X a) not thread-friendly (database operations could cause all other threads to
X    block),
X b) written for MySQL 3.21 (does not compile against newer versions without
X    patches),
X c) apparently not actively maintained.
X
XMySQLdb is a completely new module, distributed free of charge under a license
Xderived from the Python license. 
X
XWWW: http://dustman.net/andy/python/
END-of-py-MySQLdb/pkg/DESCR
echo x - py-MySQLdb/pkg/PLIST
sed 's/^X//' >py-MySQLdb/pkg/PLIST << 'END-of-py-MySQLdb/pkg/PLIST'
Xlib/python1.5/site-packages/MySQLdb.pyc
Xlib/python1.5/site-packages/_mysqlmodule.so
Xshare/doc/py-MySQLdb/MySQLdb-1.html
Xshare/doc/py-MySQLdb/MySQLdb-2.html
Xshare/doc/py-MySQLdb/MySQLdb-3.html
Xshare/doc/py-MySQLdb/MySQLdb-4.html
Xshare/doc/py-MySQLdb/MySQLdb-5.html
Xshare/doc/py-MySQLdb/MySQLdb-6.html
Xshare/doc/py-MySQLdb/MySQLdb-7.html
Xshare/doc/py-MySQLdb/MySQLdb-FAQ-1.html
Xshare/doc/py-MySQLdb/MySQLdb-FAQ-2.html
Xshare/doc/py-MySQLdb/MySQLdb-FAQ-3.html
Xshare/doc/py-MySQLdb/MySQLdb-FAQ.html
Xshare/doc/py-MySQLdb/MySQLdb-FAQ.sgml
Xshare/doc/py-MySQLdb/MySQLdb.html
Xshare/doc/py-MySQLdb/MySQLdb.sgml
Xshare/doc/py-MySQLdb/examples/README
Xshare/doc/py-MySQLdb/examples/dbtrainer0
Xshare/doc/py-MySQLdb/examples/dbtrainer1
Xshare/doc/py-MySQLdb/examples/dbtrainer2
Xshare/doc/py-MySQLdb/examples/dbtrainer3
Xshare/doc/py-MySQLdb/examples/dbtrainer4
Xshare/doc/py-MySQLdb/examples/test.sql
X@dirrm share/doc/py-MySQLdb/examples
X@dirrm share/doc/py-MySQLdb
END-of-py-MySQLdb/pkg/PLIST
exit




>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000827133455.D05B937B424>