From owner-freebsd-ports@FreeBSD.ORG Mon Aug 18 18:31:04 2003 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 C971737B401 for ; Mon, 18 Aug 2003 18:31:04 -0700 (PDT) Received: from hueymiccailhuitl.mtu.ru (hueytecuilhuitl.mtu.ru [195.34.32.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83A0C43F3F for ; Mon, 18 Aug 2003 18:31:03 -0700 (PDT) (envelope-from sem@ciam.ru) Received: from ciam.ru (ppp134-118.dialup.mtu-net.ru [62.118.134.118]) by hueymiccailhuitl.mtu.ru (Postfix) with ESMTP id E52EE1CA270; Tue, 19 Aug 2003 05:31:00 +0400 (MSD) (envelope-from sem@ciam.ru) Message-ID: <3F417DDC.3060501@ciam.ru> Date: Tue, 19 Aug 2003 05:31:08 +0400 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.3) Gecko/20030309 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: Kris Kennaway References: <3F4037B9.1010604@ciam.ru> <20030818051533.GA70270@rot13.obsecurity.org> <3F40CC65.1000204@ciam.ru> <20030818195930.GB73409@rot13.obsecurity.org> <3F4131D8.2070101@ciam.ru> <20030818201546.GA73716@rot13.obsecurity.org> <3F414B89.6090304@ciam.ru> <20030818224002.GA74570@rot13.obsecurity.org> In-Reply-To: <20030818224002.GA74570@rot13.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: depend on feature (was: Apache dependence) 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: Tue, 19 Aug 2003 01:31:05 -0000 Kris Kennaway wrote: > If you don't override the default value the situation is no different > to now. It probably won't actually install a second version of > apache, because the *_DEPENDS should be on a file that is common to > all versions of apache, but it might record the wrong package > dependency information when registering the port installation. We can implement depending on a FEATURE (common idea of lev@freebsd.org concretized by me): Some port climes itself as feature provider by setting FEATURE variable. E.g. FEATURE=apache This feature save with port or separately in PKG_DBDIR. A port depend on this feature claims it with *_DEPENDS. E.g. BUILD_DEPENDS=apache We can recognize it with ":dir" part absent. The port system looks for this feature, found appropriated port and records dependency information there. Merits is obvious. Fully backward compatible. Cost: need patch pkg_install and bsd.port.mk. What do you think? ---- Sem.