Date: Tue, 26 Jul 2011 18:07:22 +0100 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Ruslan Mahmatkhanov <cvs-src@yandex.ru> Cc: Anton Shterenlikht <mexas@bristol.ac.uk>, python@freebsd.org, freebsd-ports@freebsd.org Subject: Re: french/aster ignores PYTHON_VERSION= 2.6 ? Message-ID: <20110726170722.GA47901@mech-cluster241.men.bris.ac.uk> In-Reply-To: <4E26E4A7.50207@yandex.ru> References: <20110720124017.GA94898@mech-cluster241.men.bris.ac.uk> <4E26D05F.908@yandex.ru> <20110720134404.GA96487@mech-cluster241.men.bris.ac.uk> <4E26E4A7.50207@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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 > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110726170722.GA47901>