From owner-freebsd-ports@FreeBSD.ORG Wed Jul 20 13:44:06 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C2E8106564A for ; Wed, 20 Jul 2011 13:44:06 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id BCB148FC16 for ; Wed, 20 Jul 2011 13:44:05 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1QjX4G-0004OF-QM; Wed, 20 Jul 2011 14:44:04 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QjX4G-00001m-Jk; Wed, 20 Jul 2011 14:44:04 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p6KDi4XL097537; Wed, 20 Jul 2011 14:44:04 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p6KDi43g097536; Wed, 20 Jul 2011 14:44:04 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 20 Jul 2011 14:44:04 +0100 From: Anton Shterenlikht To: Ruslan Mahmatkhanov Message-ID: <20110720134404.GA96487@mech-cluster241.men.bris.ac.uk> References: <20110720124017.GA94898@mech-cluster241.men.bris.ac.uk> <4E26D05F.908@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E26D05F.908@yandex.ru> User-Agent: Mutt/1.4.2.3i Cc: Anton Shterenlikht , freebsd-ports@freebsd.org Subject: Re: french/aster ignores PYTHON_VERSION= 2.6 ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2011 13:44:06 -0000 On Wed, Jul 20, 2011 at 04:55:59PM +0400, Ruslan Mahmatkhanov wrote: > Anton Shterenlikht wrote on 20.07.2011 16:40: > >french/aster has in the Makefile: > > > >.if ${ARCH} == "amd64" > ># python 2.7 causes process runaway > >PYTHON_VERSION= 2.6 > >.endif > > > >I get the same on ia64, so I changed it to: > > > >.if ${ARCH} == "amd64" || ${ARCH} == "ia64" > ># python 2.7 causes process runaway > >PYTHON_VERSION= 2.6 > >.endif > > > >But still 2.7 is used: > > > ># grep python ./work/aster-full-src-10.3.0/config.log > > /usr/local/bin/python2.7 setup.pyo test > ># > > > >Why? > > > >Thanks > >Anton > > > > 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: # pwd /usr/ports/french/aster # cat Makefile USE_BISON= build USE_PYTHON= yes HAS_CONFIGURE= yes REINPLACE_ARGS= -i "" .include PYTHON_VERSION="python2.6" USE_PYTHON = 2.6 test: echo ${PYTHON_VERSION} echo ${PYTHON_CMD} # make test echo python2.7 python2.7 echo /usr/local/bin/python2.7 /usr/local/bin/python2.7 # -- 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