The right way to depend on a package's extra feature

Stijn Hoop stijn at win.tue.nl
Fri Aug 5 07:37:35 GMT 2005


On Fri, Aug 05, 2005 at 03:35:01AM -0400, Adam Weinberger wrote:
> Stijn Hoop wrote:
> >On Fri, Aug 05, 2005 at 03:10:10AM -0400, Adam Weinberger wrote:
> >>I have that same problem with deskutils/gourmet. It needs a metakit 
> >>built with python support, but python support is disabled by default. 
> >>You can see what I've done as a kludge in deskutils/gourmet/Makefile, 
> >>but the best solution would be to separate metakit into a master/slave
> >>port thing so you can just depend on metakit-python and be done with it.
> >
> >This is not the _best_ thing to do though, as other ports may depend
> >on the master port, in turn requiring both the master and the slave
> >port to be installed. This in turn leads to a knob to select the
> >'right' port for a piece of software, which is not always present.
> >
> >I.e. I have both devel/svk and devel/subversion installed. Now, I need
> >devel/subversion because other software depends on it, so I build it
> >with perl bindings by myself. However, devel/svk insists on depending
> >on devel/subversion-perl because it wants the perl bindings -> not
> >good...
> 
> But if devel/subversion-perl only contains the perl-enabled stuff that 
> devel/subversion doesn't, then devel/svk can just depend on 
> devel/subversion-perl, which can in turn depend on devel/subversion.

Yeah, and right after I wrote this e-mail I realized that there's
something fishy about this, because dependencies are not checked using
port names but using files in the FS; so devel/svk should realize
devel/subversion was built with perl bindings even if I did that by
myself.

I need more coffee I guess, this is not an issue if the ports work
properly. Sorry for the noise!

--Stijn

-- 
Beware of he who would deny you access to information. For in his heart
he thinks himself your master.
		-- Sid Meier, "Sid Meier's Alpha Centauri"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050805/addc063c/attachment.bin


More information about the freebsd-ports mailing list