From owner-freebsd-ports@FreeBSD.ORG Wed Jul 28 18:36:21 2010 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 0D04C1065672 for ; Wed, 28 Jul 2010 18:36:21 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward11.mail.yandex.net (forward11.mail.yandex.net [95.108.130.93]) by mx1.freebsd.org (Postfix) with ESMTP id 9452D8FC16 for ; Wed, 28 Jul 2010 18:36:20 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward11.mail.yandex.net (Yandex) with ESMTP id 378CC3ED03E4 for ; Wed, 28 Jul 2010 22:36:19 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1280342179; bh=DE+q7mhFlkH/0rHWrjPl/ULBHrtOH4bopZcuCvfd8Fk=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UZ1dlYKMDMRgcrvLX30OEcdGpRlszbbg8HFQlGTp1Li1G+/fKlzDtOTVkbmCPt1bd yYcB0OcoTV0qunU2/XHLCSQTSOXFfT44p/GMSCG3QhI4phzdeeJrX0tM01V8JTapdf eb5y3rF3wgMO61j9bSJBiXe3fXvSqk8l/D1n2TTc= Received: from smeshariki2.local (unknown [77.66.227.70]) by smtp13.mail.yandex.net (Yandex) with ESMTPSA id E61A741580A4 for ; Wed, 28 Jul 2010 22:36:18 +0400 (MSD) Message-ID: <4C507844.1060805@yandex.ru> Date: Wed, 28 Jul 2010 22:34:44 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <201007281800.47169.david@vizion2000.net> <201007281905.37732.david@vizion2000.net> <4C507323.3010600@yandex.ru> <201007281926.42521.david@vizion2000.net> In-Reply-To: <201007281926.42521.david@vizion2000.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Yandex-TimeMark: 1280342179 X-Yandex-Spam: 1 X-Yandex-Front: smtp13.mail.yandex.net Subject: Re: net-im/telepathy-haze Build fail 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, 28 Jul 2010 18:36:21 -0000 28.07.2010 22:26, David Southwell пишет: >> 28.07.2010 22:05, David Southwell пишет: >>>> 28.07.2010 21:57, Ruslan Mahmatkhanov пишет: >>>>> 28.07.2010 21:00, David Southwell пишет: >>>>>> Hi >>>>>> >>>>>> This is a python error. Is anyone sufficiently familiar with python to >>>>>> take a >>>>>> look at tools/glib-signals-marshall-gen.py. >>>>>> Is all the code in that script strict enough for python 3. >>>>>> >>>>>> David >>>>>> >>>>>> config.status: executing depfiles commands >>>>>> config.status: executing libtool commands >>>>>> ===> Building for telepathy-haze-0.3.6 >>>>>> gmake all-recursive >>>>>> gmake[1]: Entering directory >>>>>> `/usr/ports/net-im/telepathy-haze/work/telepathy- >>>>>> haze-0.3.6' >>>>>> Making all in tools >>>>>> gmake[2]: Entering directory >>>>>> `/usr/ports/net-im/telepathy-haze/work/telepathy- >>>>>> haze-0.3.6/tools' >>>>>> gmake[2]: Nothing to be done for `all'. >>>>>> gmake[2]: Leaving directory >>>>>> `/usr/ports/net-im/telepathy-haze/work/telepathy- >>>>>> haze-0.3.6/tools' >>>>>> Making all in extensions >>>>>> gmake[2]: Entering directory >>>>>> `/usr/ports/net-im/telepathy-haze/work/telepathy- >>>>>> haze-0.3.6/extensions' >>>>>> xsltproc --nonet --novalid --xinclude ../tools/identity.xsl \ >>>>>> all.xml> _gen/all.xml >>>>>> /usr/local/bin/python ../tools/glib-signals-marshal-gen.py >>>>>> _gen/all.xml> _gen/signals-marshal.list >>>>>> File "../tools/glib-signals-marshal-gen.py", line 49 >>>>>> print 'VOID:' + ','.join(rhs) >>>>>> ^ >>>>>> SyntaxError: invalid syntax >>>>> >>>>> As in gnome-terminal case you can patch it yourself like this: >>>>> print('VOID:' + ','.join(rhs)) >>>>> >>>>> instead >>>>> >>>>> print 'VOID:' + ','.join(rhs) >>>>> >>>>> but as i stated in my previous message, the wrong way is to use >>>>> python26 as your primary python version. >>>> >>>> the right way, i mean, or the wrong way is not to use python26 :) >>> >>> Here is an extract from my pkgdb from which you can see python26 is >>> installed on the system. If the port needs 26 surely should it not call >>> for it as a dependency rather than failiung because python31-3.1.2_1 is >>> present?? >>> >>> David >>> >>> dns1# pkg_info |grep python >>> python25-2.5.5_1 An interpreted object-oriented programming language >>> python26-2.6.5_1 An interpreted object-oriented programming language >>> python31-3.1.2_1 An interpreted object-oriented programming language >> >> And what your `python -V` tells? > python 3.1.2 > > Ok How do we deal with this? > Some apps need 3.1.2 -- > So maybe the ports using python should check for the environment and if > necessary force its own environment at build time with an appropriate setenv > call?? Is this not the correct procedure according to the porters handbook? > > David I believe by 'some apps' you mean applications that is not inside ports collection. So may be you create /usr/local/bin/python symlink to point on python2.6 as Chuck suggested and change #!/usr/bin/python string to #!/usr/bin/python3.1 in your applications. It's too much time will be passed until all the applications in ports tree migrate/be compatible with python3. -- Regards, Ruslan