ports/149275: [PATCH] devel/bpython: Restrict Python version to 2.5+

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


>Number:         149275
>Category:       ports
>Synopsis:       [PATCH] devel/bpython: 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:
bpython fails to configure with Python 2.4 installed as the default
Python version:

===>   bpython-py24-0.9.6.2 depends on file: /usr/local/bin/easy_install-2.4 - found
===>   bpython-py24-0.9.6.2 depends on file: /usr/local/bin/python2.4 - found
===>  Configuring for bpython-py24-0.9.6.2
  File "setup.py", line 51
    scripts = ([] if using_setuptools else ['data/bpython', 
                   ^
SyntaxError: invalid syntax
*** Error code 1
Stop in /a/ports/devel/bpython.

USE_PYTHON has been updated to restrict the version to 2.5+

This was noticed in a tinderbox build with the following options set:
PYTHON_VERSION=python2.4
PYTHON_DEFAULT_VERSION=python2.4

Port maintainer (yzlin at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- bpython-py25-0.9.6.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/bpython/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile	9 Mar 2010 13:40:32 -0000	1.1
+++ Makefile	4 Aug 2010 14:38:26 -0000
@@ -16,7 +16,7 @@
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>=0:${PORTSDIR}/textproc/py-pygments
 
-USE_PYTHON=	yes
+USE_PYTHON=	2.5+
 USE_PYDISTUTILS=	easy_install
 
 MAN1=		bpython.1
--- bpython-py25-0.9.6.2.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list