Zope ports with double python dependency

Hye-Shik Chang perky at i18n.org
Fri Jan 28 01:03:19 PST 2005


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


More information about the freebsd-ports mailing list