Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2009 16:00:29 GMT
From:      Wen Heping <wenheping@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137396: [Patch]print/py-reportlab:welcome python2.6
Message-ID:  <200908031600.n73G0TVC091294@www.freebsd.org>
Resent-Message-ID: <200908031610.n73GA1Cb024566@freefall.freebsd.org>

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

>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@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:



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