From owner-freebsd-ports@FreeBSD.ORG Mon Jun 7 15:27:57 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 949F816A4CE for ; Mon, 7 Jun 2004 15:27:57 +0000 (GMT) Received: from argent.heraldsnet.org (argent.heraldsnet.org [64.83.41.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 235E843D4C for ; Mon, 7 Jun 2004 15:27:57 +0000 (GMT) (envelope-from jtrigg@spamcop.net) Received: by argent.heraldsnet.org (Postfix, from userid 1001) id 79666427; Mon, 7 Jun 2004 11:27:52 -0400 (EDT) Date: Mon, 7 Jun 2004 11:27:52 -0400 From: Jim Trigg To: ports@freebsd.org Message-ID: <20040607152752.GD9227@spamcop.net> Mail-Followup-To: ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . 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 15:27:57 -0000 On Monday 7 June at 12:57:44 GMT, Ulrich Spoerlein wrote: > On Wed, 02.06.2004 at 14:58:40 -0700, Kris Kennaway wrote: > > > What do I need to tell to my Makefile to make a port depend on > > > Postgresql client, which was removed ? The client can be built with > > > -DWITHOUT_SERVER, but how do I do this from the Makefile; should I use a > > > custom script ? > > > > You can't (think about how users would add packages). For now -- until > > someone can redo the client/server split properly, in a way that > > doesn't break ports that try to use it -- you need to depend on the > > single postgresql package, > > 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.) Jim Trigg -- Jim Trigg, Lord High Everything Else O- /"\ \ / ASCII RIBBON CAMPAIGN Hostmaster, Huie Kin family website X HELP CURE HTML MAIL Verger, All Saints Church - Sharon Chapel / \