ports/137396: [Patch]print/py-reportlab:welcome python2.6
Wen Heping
wenheping at gmail.com
Mon Aug 3 16:10:01 UTC 2009
>Number: 137396
>Category: ports
>Synopsis: [Patch]print/py-reportlab:welcome python2.6
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 03 16:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Wen Heping
>Release: FreeBSD 8.0-Current
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb8.wenjing.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Mar 22 22:12:06 CST 2009 root at fb8.wenjing.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Since "with" is keyword in Python2.6 now, we could not
use "with" as the variable name.
It could fix the build error of print/py-reportlab itself
and fix the run error of ports which require print/py-reportlab,
such as openerp-server.
Thanks to Peter Pieczora.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2009-08-03 23:51:17.000000000 +0800
+++ Makefile 2009-08-03 23:51:17.000000000 +0800
@@ -7,7 +7,7 @@
PORTNAME= reportlab
PORTVERSION= 1.21.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= print python
MASTER_SITES= http://www.reportlab.org/ftp/ \
ftp://ftp.reportlab.org/ \
@@ -34,6 +34,7 @@
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py
+ @${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py
.include <bsd.port.pre.mk>
--- pkg-plist.orig 2009-08-03 23:51:17.000000000 +0800
+++ pkg-plist 2009-08-03 23:51:17.000000000 +0800
@@ -210,6 +210,8 @@
%%PYTHON_SITELIBDIR%%/reportlab/graphics/widgets/signsandsymbols.pyc
%%PYTHON_SITELIBDIR%%/reportlab/graphics/widgets/signsandsymbols.pyo
%%PYTHON_SITELIBDIR%%/reportlab/lib/PyFontify.py
+%%PYTHON_SITELIBDIR%%/reportlab/lib/PyFontify.pyc
+%%PYTHON_SITELIBDIR%%/reportlab/lib/PyFontify.pyo
%%PYTHON_SITELIBDIR%%/reportlab/lib/__init__.py
%%PYTHON_SITELIBDIR%%/reportlab/lib/__init__.pyc
%%PYTHON_SITELIBDIR%%/reportlab/lib/__init__.pyo
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list