From nobody@FreeBSD.org  Mon Oct 29 23:52:44 2007
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 C5F1916A417
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Oct 2007 23:52:44 +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 B9B7913C4B3
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Oct 2007 23:52:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9TNqibv004504
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Oct 2007 23:52:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9TNqhZZ004499;
	Mon, 29 Oct 2007 23:52:43 GMT
	(envelope-from nobody)
Message-Id: <200710292352.l9TNqhZZ004499@www.freebsd.org>
Date: Mon, 29 Oct 2007 23:52:43 GMT
From: pietro cerutti <gahr@gahr.ch>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] deskutils/narval fix python byte-compiling error preventing make package
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117650
>Category:       ports
>Synopsis:       [patch] deskutils/narval fix python byte-compiling error preventing make package
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 30 00:00:06 UTC 2007
>Closed-Date:    Mon Nov 05 15:54:54 UTC 2007
>Last-Modified:  Mon Nov  5 16:00:03 UTC 2007
>Originator:     pietro cerutti
>Release:        6.2-STABLE
>Organization:
Bern University of Applied Sciences
>Environment:
FreeBSD gahrtop.localhost 6.2-STABLE FreeBSD 6.2-STABLE #3: Wed Oct 24 08:30:39 CEST 2007     root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034  i386
>Description:
deskutils/narval fails to byte-compile the apycot.py module because the import line "from __future__ import generators" requires to appear at the beginning of the file (before metadata).
>How-To-Repeat:
cd /usr/ports/deskutils/narval && make package
>Fix:
Add this file as files/patch-apycot:

--- apycot.py.orig	2007-10-30 00:46:40.000000000 +0100
+++ apycot.py	2007-10-30 00:47:51.000000000 +0100
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+from __future__ import generators
+
 """Apycot_ extenstions for narval acceptance tests
 
 .. _Apycot: http://www.logilab.org/projects/apycot
@@ -44,8 +46,6 @@
 __revision__ = '$Id: autotest.py,v 1.2 2002/08/14 11:47:37 syt Exp $'
 __docformat__ = "restructuredtext en"
 
-from __future__ import generators
-
 import sys
 import re
 import traceback


>Release-Note:
>Audit-Trail:

From: Pietro Cerutti <gahr@gahr.ch>
To: bug-followup@FreeBSD.org,  gahr@gahr.ch
Cc:  
Subject: Re: ports/117650: [patch] deskutils/narval fix python byte-compiling
 error preventing make package
Date: Sat, 03 Nov 2007 23:54:13 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig31F14A583F4488614FF192C6
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 Here's the patch (forget about the messed-up crap above..):
 
 http://www.gahr.ch/FreeBSD/patches/117650_narval_patch-apycot.py
 
 --=20
 Pietro Cerutti
 
 PGP Public Key:
 http://gahr.ch/pgp
 
 
 --------------enig31F14A583F4488614FF192C6
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQFHLPwZwMJqmJVx944RCm25AJwPG7daIrsjTUHvZ+Cai2xqe1YwngCfQzvl
 Od1ltMKzAIZJkimUVJurINk=
 =ZvbG
 -----END PGP SIGNATURE-----
 
 --------------enig31F14A583F4488614FF192C6--
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Mon Nov 5 12:24:48 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117650 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Mon Nov 5 15:54:53 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/117650: commit references a PR
Date: Mon,  5 Nov 2007 15:54:30 +0000 (UTC)

 miwi        2007-11-05 15:54:25 UTC
 
   FreeBSD ports repository
 
   Added files:
     deskutils/narval/files patch-apycot.py 
   Log:
   - Fix python byte-compiling error preventing make package
   
   PR:             117650
   Submitted by:   pointyhat
                   Pietro Cerutti <gahr@gahr.ch>
   Approved by:    portmgr (pav)
   
   Revision  Changes    Path
   1.1       +20 -0     ports/deskutils/narval/files/patch-apycot.py (new)
 _______________________________________________
 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:
