From nobody@FreeBSD.org  Mon Aug  3 16:00:30 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 487611065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Aug 2009 16:00:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3649D8FC2F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Aug 2009 16:00:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n73G0UHB091295
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 3 Aug 2009 16:00:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n73G0TVC091294;
	Mon, 3 Aug 2009 16:00:29 GMT
	(envelope-from nobody)
Message-Id: <200908031600.n73G0TVC091294@www.freebsd.org>
Date: Mon, 3 Aug 2009 16:00:29 GMT
From: Wen Heping <wenheping@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [Patch]print/py-reportlab:welcome python2.6
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137396
>Category:       ports
>Synopsis:       [Patch]print/py-reportlab:welcome python2.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    perky
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 03 16:10:00 UTC 2009
>Closed-Date:    Fri Aug 14 19:52:50 UTC 2009
>Last-Modified:  Fri Aug 14 20:00:19 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->perky 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Aug 3 16:10:12 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137396 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Aug 14 19:52:49 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137396 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/137396: commit references a PR
Date: Fri, 14 Aug 2009 19:52:46 +0000 (UTC)

 miwi        2009-08-14 19:52:36 UTC
 
   FreeBSD ports repository
 
   Modified files:
     print/py-reportlab   Makefile pkg-plist 
   Log:
   - Fix warnings with python 2.6
   
   PR:             137396
   Submitted by:   Wen Heping <wenheping@gmail.com>
   Approved by:    maintianer timeout
   
   Revision  Changes    Path
   1.29      +2 -1      ports/print/py-reportlab/Makefile
   1.20      +2 -0      ports/print/py-reportlab/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
