From owner-freebsd-ports Wed Jun 14 2:40:11 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8833637C13A for ; Wed, 14 Jun 2000 02:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA76248; Wed, 14 Jun 2000 02:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from exchange.mistral.co.uk (gate.mistral.co.uk [195.184.225.3]) by hub.freebsd.org (Postfix) with ESMTP id 5A1C937BEE4 for ; Wed, 14 Jun 2000 02:34:48 -0700 (PDT) (envelope-from hdm@mistral.co.uk) Received: from bizboz.mistral.co.uk ([195.184.225.25]) by exchange.mistral.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id M3QBA038; Wed, 14 Jun 2000 10:28:39 +0100 Received: by bizboz.mistral.co.uk (Postfix, from userid 1000) id AD044273; Wed, 14 Jun 2000 10:34:35 +0100 (BST) Message-Id: <20000614093435.AD044273@bizboz.mistral.co.uk> Date: Wed, 14 Jun 2000 10:34:35 +0100 (BST) From: hdm@mistral.co.uk Reply-To: hdm@mistral.co.uk To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19259: Fix textproc/py-mxTextTools Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19259 >Category: ports >Synopsis: Fis for textproc/py-mxTextTools >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 14 02:40:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dominic Mitchell >Release: FreeBSD 4.0-RELEASE i386 >Organization: Mistral Internet >Environment: FreeBSD bizboz.mistral.co.uk 4.0-RELEASE FreeBSD 4.0-RELEASE #2: Tue Jun 13 09:24:01 BST 2000 root@bizboz.mistral.co.uk:/usr/src/sys/compile/BIZBOZ i386 Current ports. >Description: When installed, py-mxTextTools doesn't work. try doing: % python -c "import TextTools" And you'll get a stack trace claiming that it can't find "FS". This is because it's part of the package that isn't (yet) publically available. The workaround is to install the shared library in a directory, and use an __init__.py to make it look like it works. :-) >How-To-Repeat: See above. >Fix: Here'srthe patch: diff -urN /usr/ports/textproc/py-mxTextTools/Makefile py-mxTextTools/Makefile --- /usr/ports/textproc/py-mxTextTools/Makefile Wed Apr 26 22:21:05 2000 +++ py-mxTextTools/Makefile Sun Jun 11 08:41:44 2000 @@ -23,6 +23,7 @@ PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5 TEXTTOOLSDIR= ${PYTHONSCRIPTDIR}/site-packages/TextTools +MXTEXTTOOLSDIR= ${PYTHONSCRIPTDIR}/site-packages/mxTextTools DOCDIR= ${PREFIX}/share/doc/py-mxTextTools EXAMPLEDIR= ${PREFIX}/share/examples/py-mxTextTools @@ -32,13 +33,18 @@ do-configure: @(cd ${WRKSRC} && ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot) -post-install: +do-install: + @${MKDIR} ${MXTEXTTOOLSDIR} + ${INSTALL_DATA} ${WRKSRC}/mxTextTools.so ${MXTEXTTOOLSDIR} + ${INSTALL_DATA} ${WRKSRC}/__init__.py ${MXTEXTTOOLSDIR} @${MKDIR} ${TEXTTOOLSDIR} ${INSTALL_DATA} ${WRKDIR}/TextTools/*.py ${TEXTTOOLSDIR} @${MKDIR} ${TEXTTOOLSDIR}/Constants ${INSTALL_DATA} ${WRKDIR}/TextTools/Constants/*.py ${TEXTTOOLSDIR}/Constants - @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${TEXTTOOLSDIR} - @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${TEXTTOOLSDIR} + @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py \ + ${TEXTTOOLSDIR} ${MXTEXTTOOLSDIR} + @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py \ + ${TEXTTOOLSDIR} ${MXTEXTTOOLSDIR} @${MKDIR} ${EXAMPLEDIR} ${INSTALL_DATA} ${WRKDIR}/TextTools/Examples/* ${EXAMPLEDIR} .if !defined(NOPORTDOCS) diff -urN /usr/ports/textproc/py-mxTextTools/pkg/PLIST py-mxTextTools/pkg/PLIST --- /usr/ports/textproc/py-mxTextTools/pkg/PLIST Wed May 26 08:53:18 1999 +++ py-mxTextTools/pkg/PLIST Sun Jun 11 08:41:03 2000 @@ -14,8 +14,12 @@ lib/python1.5/site-packages/TextTools/__init__.py lib/python1.5/site-packages/TextTools/__init__.pyc lib/python1.5/site-packages/TextTools/__init__.pyo -lib/python1.5/site-packages/mxTextTools.so @dirrm lib/python1.5/site-packages/TextTools +lib/python1.5/site-packages/mxTextTools/mxTextTools.so +lib/python1.5/site-packages/mxTextTools/__init__.py +lib/python1.5/site-packages/mxTextTools/__init__.pyc +lib/python1.5/site-packages/mxTextTools/__init__.pyo +@dirrm lib/python1.5/site-packages/mxTextTools share/doc/py-mxTextTools/mxTextTools.html @dirrm share/doc/py-mxTextTools share/examples/py-mxTextTools/HTML.py >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message