Date: Tue, 19 Aug 2003 05:31:08 +0400 From: Sergey Matveychuk <sem@ciam.ru> To: Kris Kennaway <kris@obsecurity.org> Cc: ports@freebsd.org Subject: depend on feature (was: Apache dependence) Message-ID: <3F417DDC.3060501@ciam.ru> In-Reply-To: <20030818224002.GA74570@rot13.obsecurity.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F417DDC.3060501>