Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 10:34:35 +0100 (BST)
From:      hdm@mistral.co.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19259: Fix textproc/py-mxTextTools
Message-ID:  <20000614093435.AD044273@bizboz.mistral.co.uk>

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

>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




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