From owner-freebsd-ports@FreeBSD.ORG Fri Jan 28 09:03:19 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 3CD9B16A4CE; Fri, 28 Jan 2005 09:03:19 +0000 (GMT) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E16B43D1D; Fri, 28 Jan 2005 09:03:18 +0000 (GMT) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id 6C68FA925; Fri, 28 Jan 2005 18:03:17 +0900 (KST) Date: Fri, 28 Jan 2005 18:03:16 +0900 From: Hye-Shik Chang To: Filippo Natali Message-ID: <20050128090316.GA60284@i18n.org> References: <41F7ADB8.4090305@widestore.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F7ADB8.4090305@widestore.net> X-Accept-Language: ko, en User-Agent: Mutt/1.5.6i cc: ports@freebsd.org cc: python@FreeBSD.org Subject: Re: 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: Fri, 28 Jan 2005 09:03:19 -0000 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