ports/149252: [PATCH] databases/py-pylibmc: Restrict Python version to 2.5+
Greg Larkin
glarkin at FreeBSD.org
Tue Aug 3 21:20:07 UTC 2010
>Number: 149252
>Category: ports
>Synopsis: [PATCH] databases/py-pylibmc: 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:20:06 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:
pylibmc fails to build with Python forced to version 2.4:
copying build/lib.freebsd-8.0-RC2-i386-2.4/pylibmc.py -> /usr/local/lib/python2.4/site-packages
copying build/lib.freebsd-8.0-RC2-i386-2.4/_pylibmc.so -> /usr/local/lib/python2.4/site-packages
byte-compiling /usr/local/lib/python2.4/site-packages/pylibmc.py to pylibmc.pyc
SyntaxError: ('future feature with_statement is not defined',)
writing byte-compilation script '/tmp/tmp1TnhkC.py'
/usr/local/bin/python2.4 -O /tmp/tmp1TnhkC.py
SyntaxError: ('future feature with_statement is not defined',)
removing /tmp/tmp1TnhkC.py
I changed USE_PYTHON to 2.5+ to restrict the Python version.
Port maintainer (gslin at gslin.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- py25-pylibmc-1.1.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/py-pylibmc/Makefile,v
retrieving revision 1.5
diff -u -u -r1.5 Makefile
--- Makefile 6 Jul 2010 02:30:03 -0000 1.5
+++ Makefile 3 Aug 2010 21:17:35 -0000
@@ -17,7 +17,7 @@
LIB_DEPENDS= memcached:${PORTSDIR}/databases/libmemcached
MAKE_ENV+= LIBMEMCACHED="${LOCALBASE}"
-USE_PYTHON= yes
+USE_PYTHON= 2.5+
USE_PYDISTUTILS= yes
.include <bsd.port.mk>
--- py25-pylibmc-1.1.1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list