Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2011 21:30:38 +0100 (BST)
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/159215: Mk/bsd.python.mk: PYTHON_VERSION is ignored
Message-ID:  <201107262030.p6QKUctt059831@mech-cluster241.men.bris.ac.uk>
Resent-Message-ID: <201107262040.p6QKe5Cb039932@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@yandex.ru> then did this test:

mrk@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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107262030.p6QKUctt059831>