ports/149253: [PATCH] databases/py-dbf: Restrict Python version to 2.5+
Greg Larkin
glarkin at FreeBSD.org
Tue Aug 3 21:30:13 UTC 2010
>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 at 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:
More information about the freebsd-ports-bugs
mailing list