Zope ports with double python dependency

Filippo Natali filippo.natali at widestore.net
Wed Jan 26 06:48:42 PST 2005


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.

Filippo


More information about the freebsd-ports mailing list