Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2007 23:52:43 GMT
From:      pietro cerutti <gahr@gahr.ch>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/117650: [patch] deskutils/narval fix python byte-compiling error preventing make package
Message-ID:  <200710292352.l9TNqhZZ004499@www.freebsd.org>
Resent-Message-ID: <200710300000.l9U0078U032691@freefall.freebsd.org>

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

>Number:         117650
>Category:       ports
>Synopsis:       [patch] deskutils/narval fix python byte-compiling error preventing make package
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 30 00:00:06 UTC 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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