From owner-freebsd-ports@FreeBSD.ORG Mon Jun 7 19:51:23 2004 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 3EEA916A4CE for ; Mon, 7 Jun 2004 19:51:23 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id F364043D1F for ; Mon, 7 Jun 2004 19:51:22 +0000 (GMT) (envelope-from eta@lclark.edu) Received: from [192.168.0.103] (c-24-21-18-195.client.comcast.net[24.21.18.195]) by comcast.net (sccrmhc12) with SMTP id <20040607195119012001k4rne>; Mon, 7 Jun 2004 19:51:20 +0000 From: Eric Anholt To: Michael Edenfield In-Reply-To: <20040607193423.GA47326@wombat.localnet> References: <20040607152752.GD9227@spamcop.net> <20040607165933.GB765@galgenberg.net> <20040607193423.GA47326@wombat.localnet> Content-Type: text/plain Message-Id: <1086637879.779.8.camel@leguin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 07 Jun 2004 12:51:20 -0700 Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: RFC: Re-work pkgdep/DEPORIGIN? 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: Mon, 07 Jun 2004 19:51:23 -0000 On Mon, 2004-06-07 at 12:34, Michael Edenfield wrote: > * Ulrich Spoerlein [040607 13:09]: > > On Mon, 07.06.2004 at 11:27:52 -0400, Jim Trigg wrote: > > > > The real fix is IMHO not to blindly record the dependancy provided in > > > > the Makefile. That is: > > > > > > > LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7-client > > > > > > > will record databases/postgresql7 as dependancy, no matter what package > > > > actually provided the libpq.so.3 in the first place. Postgres is not the > > > > only place where this is wrong, lang/php4 has the same problems. Most > > > > Ports require www/mod_php which I dont have installed. Instead I'm using > > > > lang/php4 with WITH_APACHE. > > > > > > The real fix IMHO is to use a strategy similar to what Debian Linux > > > uses: instead of depending on specific ports, depend on capabilities. > > > So for example, www/horde2 would depend on webphp, and lang/php4 and > > > www/mod_php4 would each provide webphp. (I don't know the postgres port > > > family as well, so I can't readily give an example using it.) > > > > I don't know the specific debian facilities, but isn't this overkill? > > There are mostly two or three ports that come into consideration when satisfying > > a dependancy (postgresql and postgresql-client, or lang/php4 and > > www/mod_php4, or linux_base-{6,7,8}). Most of the times these are even > > slave ports (I think), so providing elaborate capabilities management is > > One very huge example of this problem, however, I suspect will start > cropping up a lot in the near future: both x11/XFree86-4-libraries and > x11/xorg-libraries provide the X11 libraries, but bsd.port.mk encodes a > dependancy on the XF86 version. This means every time I install an X > app I need to run pkgdb -F to fix the dependancies. > > --K In this specific case, we're going to have a switch in bsd.port.mk to select which of the X implementations you are using. It still isn't nearly as nice as the capabilities way of doing things, but we should fix the need for pkgdbing soon. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org