ports/149276: [PATCH] devel/py-dexml: Restrict Python version to 2.5+

Greg Larkin glarkin at FreeBSD.org
Wed Aug 4 14:50:08 UTC 2010


>Number:         149276
>Category:       ports
>Synopsis:       [PATCH] devel/py-dexml: 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:   Wed Aug 04 14:50:07 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-dexml fails to build correctly with Python 2.4 installed as the default
Python version:

byte-compiling /usr/local/lib/python2.4/site-packages/dexml/__init__.py to __init__.pyc
  File "/usr/local/lib/python2.4/site-packages/dexml/__init__.py", line 476
    equals = (lambda a, b: a == b) if cls.meta.case_sensitive else (lambda a, b: a.lower() == b.lower())
                                    ^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python2.4/site-packages/dexml/fields.py to fields.pyc
writing byte-compilation script '/tmp/tmpFxQTk0.py'
/usr/local/bin/python2.4 -O /tmp/tmpFxQTk0.py
  File "/usr/local/lib/python2.4/site-packages/dexml/__init__.py", line 476
    equals = (lambda a, b: a == b) if cls.meta.case_sensitive else (lambda a, b: a.lower() == b.lower())
                                    ^
SyntaxError: invalid syntax
removing /tmp/tmpFxQTk0.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:

--- py25-dexml-0.3.6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/py-dexml/Makefile,v
retrieving revision 1.5
diff -u -u -r1.5 Makefile
--- Makefile	1 Jun 2010 02:39:08 -0000	1.5
+++ Makefile	4 Aug 2010 14:42:30 -0000
@@ -14,7 +14,7 @@
 MAINTAINER=	wen at FreeBSD.org
 COMMENT=	A dead-simple Object-XML mapper for Python
 
-USE_PYTHON=		yes
+USE_PYTHON=		2.5+
 USE_PYDISTUTILS=	yes
 
 .include <bsd.port.mk>
--- py25-dexml-0.3.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list