ports/159215: Mk/bsd.python.mk: PYTHON_VERSION is ignored
Anton Shterenlikht
mexas at bristol.ac.uk
Tue Jul 26 20:40:06 UTC 2011
>Number: 159215
>Category: ports
>Synopsis: Mk/bsd.python.mk: PYTHON_VERSION is ignored
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 26 20:40:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Anton Shterenlikht
>Release: FreeBSD 9.0-CURRENT ia64
>Organization:
University of Bristol
>Environment:
System: FreeBSD mech-cluster241.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r221488: Thu May 5 12:39:44 BST 2011 root at mech-cluster241.men.bris.ac.uk:/usr/obj/usr/src/sys/TZAV ia64
>Description:
I noticed that french/aster has in Makefile:
.if ${ARCH} == "amd64"
# python 2.7 causes process runaway
PYTHON_VERSION= 2.6
which is ignored, the build proceeds with 2.7 and runs away.
Ruslan Mahmatkhanov <cvs-src at yandex.ru> then did this test:
mrk at smeshariki2$ cat Makefile
PORTNAME= blah
DISTVERSION= 1.0
CATEGORIES= misc
COMMENT= Some dumb port for testing
USE_PYTHON= yes
.include<bsd.port.pre.mk>
.if ${ARCH} == "i386"
PYTHON_VERSION= "python2.6"
.endif
.include<bsd.port.post.mk>
mrk at smeshariki2$ make depends
===> blah-1.0 depends on file: /usr/local/bin/python2.7 - found
===> blah-1.0 depends on file: /usr/local/bin/python2.7 - found
mrk at smeshariki2$ uname -p
i386
Perhaps the documentation is incorrect.
>How-To-Repeat:
Try to request specific python version
with PYTHON_VERSION= in a port's Makefile,
and see if it's acknowledged.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list