Date: Tue, 3 Aug 2010 17:24:33 -0400 (EDT) From: Greg Larkin <glarkin@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: wen@FreeBSD.org Subject: ports/149253: [PATCH] databases/py-dbf: Restrict Python version to 2.5+ Message-ID: <201008032124.o73LOXeD067323@fbsd70.entropy.prv> Resent-Message-ID: <201008032130.o73LUCFQ071974@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 149253 >Category: ports >Synopsis: [PATCH] databases/py-dbf: Restrict Python version to 2.5+ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 03 21:30:12 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Greg Larkin >Release: FreeBSD 7.0-RELEASE i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD fbsd70.entropy.prv 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 >Description: py-dbf fails to byte-compile with the Python version forced to 2.4: byte-compiling /usr/local/lib/python2.4/site-packages/dbf/tables.py to tables.pyc File "/usr/local/lib/python2.4/site-packages/dbf/tables.py", line 1731 result._current = 0 if result else -1 ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.4/site-packages/dbf/_io.py to _io.pyc byte-compiling /usr/local/lib/python2.4/site-packages/dbf/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpJaSBOf.py' /usr/local/bin/python2.4 -O /tmp/tmpJaSBOf.py File "/ usr/local/lib/python2.4/site-packages/dbf/tables.py", line 1731 result._current = 0 if result else -1 ^ SyntaxError: invalid syntax removing /tmp/tmpJaSBOf.py USE_PYTHON is updated to require Python version 2.5+. This was noticed during a tinderbox build with the following options set: PYTHON_VERSION=python2.4 PYTHON_DEFAULT_VERSION=python2.4 Port maintainer (wen@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- py-dbf-0.87.14.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/databases/py-dbf/Makefile,v retrieving revision 1.2 diff -u -u -r1.2 Makefile --- Makefile 9 Jan 2010 13:44:45 -0000 1.2 +++ Makefile 3 Aug 2010 21:21:32 -0000 @@ -15,7 +15,7 @@ COMMENT= Pure python package for reading/writing dbf files USE_ZIP= yes -USE_PYTHON= yes +USE_PYTHON= 2.5+ USE_PYDISTUTILS= yes .include <bsd.port.mk> --- py-dbf-0.87.14.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008032124.o73LOXeD067323>