Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 18:03:16 +0900
From:      Hye-Shik Chang <perky@i18n.org>
To:        Filippo Natali <filippo.natali@widestore.net>
Cc:        python@FreeBSD.org
Subject:   Re: Zope ports with double python dependency
Message-ID:  <20050128090316.GA60284@i18n.org>
In-Reply-To: <41F7ADB8.4090305@widestore.net>
References:  <41F7ADB8.4090305@widestore.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 26, 2005 at 03:48:24PM +0100, Filippo Natali wrote:
> Hi,
> 
> since the import of 2.4 as default python version, Zope ports which
> depend from python extensions fail to build on pointyhat.
> 
> The reason is a double python dependency: Zope ports need python 2.3
> (enforced in bsd.python.mk if USE_ZOPE is defined), but python 2.4
> is also added as dependency if the port requires a python extension.
> 
> for instance in www/zope-portaltransforms:
> 
> # make package-depends-list | grep py
> python-2.3.4_3 /usr/ports/lang/python23 lang/python23
> py24-docutils-0.3.7 /usr/ports/textproc/py-docutils textproc/py-docutils
> python-2.4 /usr/ports/lang/python lang/python
> 
> this leads to a "depend object" error on pointyhat, because it first
> adds py24-docutils package, then tries to build zope-portaltransforms
> which needs py23-docutils.
> 
> A workaround could be the use of .MAKEFLAGS to propagate PYTHON_VERSION
> to dependencies. Adding
> 
> .MAKEFLAGS=    PYTHON_VERSION=python2.3
> 
> to zope-portaltransforms Makefile leads to:
> 
> # make package-depends-list | grep py
> python-2.3.4_3 /usr/ports/lang/python23 lang/python23
> py23-docutils-0.3.7 /usr/ports/textproc/py-docutils textproc/py-docutils
> 
> I don't like this solution, but I haven't yet found something better.
> 

I have examined several idea to solve the problem, but I couldn't
find better one than yours.  It's not so neat but working.  :)
I'll fix it in bsd.python.mk.  Thanks for suggesting!


Hye-Shik



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