french/aster ignores PYTHON_VERSION= 2.6 ?

Anton Shterenlikht mexas at bristol.ac.uk
Tue Jul 26 17:08:11 UTC 2011


On Wed, Jul 20, 2011 at 06:22:31PM +0400, Ruslan Mahmatkhanov wrote:
> Anton Shterenlikht wrote on 20.07.2011 17:44:
> >On Wed, Jul 20, 2011 at 04:55:59PM +0400, Ruslan Mahmatkhanov wrote:
> 
> >>As far i understand PYTHON_VERSION hold value like 'python2.7', so you
> >>should correct this in your Makefile. Or just use USE_PYTHON = 2.6
> >
> >No, PYTHON_VERSION seems to be overwritten by something else.
> >I removed all but the PYTHON parts from the Makefile,
> >and get this:
> 
> 
> Yes, i see this in bsd.python.mk:
> # Define PYTHON_VERSION to override the
> # defaults that USE_PYTHON would give you.
> 
> But it seems not true. Here is my test Makefile:
> 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
> 
> I added python@ to cc, since it seems like bsd.python.mk bug to me (or 
> documentation bug).
> 
> -- 
> Regards,
> Ruslan

I've heard nothing back within a week.
Shall I submit a pr?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423


More information about the freebsd-ports mailing list