Date: Mon, 7 Jun 2004 11:27:52 -0400 From: Jim Trigg <jtrigg@spamcop.net> To: ports@freebsd.org Subject: Re: RFC: Re-work pkgdep/DEPORIGIN? Message-ID: <20040607152752.GD9227@spamcop.net>
next in thread | raw e-mail | index | archive | help
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 / \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040607152752.GD9227>