ports/117650: [patch] deskutils/narval fix python byte-compiling error preventing make package

pietro cerutti gahr at gahr.ch
Tue Oct 30 00:00:07 UTC 2007


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



More information about the freebsd-ports-bugs mailing list