Bug 149253 - [PATCH] databases/py-dbf: Restrict Python version to 2.5+
Summary: [PATCH] databases/py-dbf: Restrict Python version to 2.5+
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 22:30 UTC by Greg Larkin
Modified: 2010-08-18 15:20 UTC (History)
1 user (show)

See Also:


Attachments
py-dbf-0.87.14.patch (447 bytes, patch)
2010-08-03 22:30 UTC, Greg Larkin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Larkin freebsd_committer freebsd_triage 2010-08-03 22:30:12 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-03 22:30:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Greg Larkin freebsd_committer freebsd_triage 2010-08-18 15:10:58 UTC
State Changed
From-To: open->closed

Committed.
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-08-18 15:11:09 UTC
glarkin     2010-08-18 14:10:54 UTC

  FreeBSD ports repository

  Modified files:
    databases/py-dbf     Makefile 
  Log:
  - Restrict USE_PYTHON to 2.5+ due to compilation errors with Python 2.4
  
  PR:             ports/149253
  Submitted by:   glarkin
  Approved by:    wen (via email)
  
  Revision  Changes    Path
  1.3       +1 -1      ports/databases/py-dbf/Makefile
_______________________________________________
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"