'dynamic' options questions
Jeremy Messenger
mezz7 at cox.net
Tue Dec 7 11:08:24 PST 2004
On Tue, 7 Dec 2004 19:53:01 +0100, Stijn Hoop <stijn at win.tue.nl> wrote:
> Hi,
>
> I notice that there is a trend towards having ports autodetect software
> dependencies. While I appreciate this in the (common) desktop case, this
> does
> lead to some IMHO nasty inconsistencies while building packages to use
> for
> other computers; the order in which the ports get built interferes, or
> could
> even disable functionality while later on the 'correct' dependencies are
> installed.
>
> One such example that I just saw today, is net/gaim. From the Makefile:
>
> %%%
> .if ${HAVE_GNOME:Mevolutiondataserver}!=""
> USE_GNOME+= evolutiondataserver
> PLIST_SUB+= EVO=""
> .else
> CONFIGURE_ARGS+=--disable-gevolution
> PLIST_SUB+= EVO="@comment "
> .endif
> %%%
>
> Again, I do appreciate the idea behind this as I'm sure that users with
> evolution installed, who then proceed to install gaim using the port,
> will be
> pleased to see that they neatly blend functionality.
>
> In my package build jail this backfires though. And in this case there
> isn't
> even an option to turn the support on. And I think dosirak or pointyhat
> (which
> is it these days?) will never build support for evolution into gaim,
> right?
The best solution is to create a slave port, gaim-evolution or
gaim-whatever.
> So, I guess what I'm asking is:
>
> - what's the 'correct' way of doing auto-dependencies
This is correct way. If you want it to be add in the package, then just
add defined(PACKAGE_BUILDING) like this:
.if ${HAVE_GNOME:Mevolutiondataserver}!="" || defined(PACKAGE_BUILDING)
But, I don't think it's good idea and best to do is create a slave port
because not everybody want this feature.
Cheers,
Mezz
> - is the form in which there is no way of forcing such a dependency a bug
> (ie can I send-pr this example and any others I come across)
>
> And maybe even generalizing this to:
>
> - why are things like this off by default? (because in the common
> desktop case
> optimizing for size and gaining a few tens of MB is not really
> necessary
> IMHO)
>
> Thoughts?
>
> --Stijn
--
mezz7 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
More information about the freebsd-ports
mailing list