From owner-freebsd-ports@FreeBSD.ORG Wed Jan 26 14:48:42 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3AAD16A4CE; Wed, 26 Jan 2005 14:48:42 +0000 (GMT) Received: from w1001.widhost.net (w1001.widhost.net [209.235.192.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65CDE43D4C; Wed, 26 Jan 2005 14:48:42 +0000 (GMT) (envelope-from filippo.natali@widestore.net) Received: from mx0.hq.widestore.net (mx0.hq.widestore.net [212.97.46.42]) by w1001.widhost.net (Postfix) with ESMTP id 7496E2121F; Wed, 26 Jan 2005 09:48:41 -0500 (EST) Received: from [192.168.1.1] (cagnina.hq.widestore.net [192.168.1.1]) by mx0.hq.widestore.net (Postfix) with ESMTP id E31AE59; Wed, 26 Jan 2005 15:48:24 +0100 (CET) Message-ID: <41F7ADB8.4090305@widestore.net> Date: Wed, 26 Jan 2005 15:48:24 +0100 From: Filippo Natali Organization: Widestore.Net User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit cc: perky@FreeBSD.org Subject: Zope ports with double python dependency X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 14:48:42 -0000 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