Pare Down Dependencies from Gnome

Tom McLaughlin tmclaugh at sdf.lonestar.org
Sun Apr 2 02:32:59 UTC 2006


On Sat, 2006-04-01 at 11:44 -0800, Jason C. Wells wrote:
> I am having a hard time tracking down how some dependencies get hooked 
> into the gnome2 port.  I am looking for the equivalent of the NO_* 
> options in /usr/src/Makefile.inc1 if such a thing exists.
> 
> Where does one start if one wants to pare down gnome2 port dependencies?
> 

Use the x11/gnome2-lite metaport like I do in my jails which only need a
bare minimum.

> Specifically, I would like to chop these dependencies out of gnome2:
> 
> evolution

It's a part of Gnome as determined by the Gnome developers.  The Gnome
metaports are based on what upstream considers a part of Gnome.

> heimdal

x11/gnome2 does not rely on the heimdal port by default.  It sounds like
somewhere along the way you set an option in a port or something in
make.conf is triggering heimdal to be sucked in.

Here we go, gnomevfs2 has this:

.if exists(${LOCALBASE}/lib/libkrb5.so)
LIB_DEPENDS+=   krb5:${PORTSDIR}/security/heimdal
.endif

A simple solution would be to check for ${LOCALBASE}/lib/libhdb.so to
rely on security/heimdal and ${LOCALBASE}/lib/libkdb5.so to rely on
security/krb5.  I picked these simply because they are unique to either
port.  At most it should simply quiet pkgdb.  (see below too.)

> openldap22

I tried searching to see what port specifically pulled this in and after
a long while searching I got bored.  It takes under 3 minutes for the
port to build and doesn't exactly take up a lot of room.  Maybe some
ports respect WITHOUT_LDAP, I don't know.

> samba-libsmbclient

There is WITHOUT_SAMBA to prevent gnomevfs2 from pulling in the client.
Possibly other ports respect this.

> 
> Evolution has a RUN_DEPENDS dependency in the makefile but the others 
> don't appear in the gnome2 makefile.

They're indirect dependencies.  openldap is a dependency of something
which is a dependency of something else ... which is a dependency of
gnome2

> 
> The listed dependencies are a big hurking deal.  I don't use LDAP.  I 
> run MIT kerberos, which conflicts with Heimdal.

If you have security/krb5 installed then gnome dependencies should build
against it without installing heimdal.  If that doesn't happen then
point out the offending port so it can be fixed.

>   Simply building them in 
> would require extra work my part.  I was looking at installing various 
> gnome ports piece by piece rather than use the metaport but I still ran 
> into this problem when I got to gnomepanel.  I'd rather not build too 
> much extra stuff into gnome if I can help it.
> 
> Thanks,
> Jason C. Wells
> 
Thanks,
Tom
-- 
| tmclaugh at sdf.lonestar.org             tmclaugh at FreeBSD.org |
| FreeBSD                                   http://www.FreeBSD.org |
| BSD#                    http://www.mono-project.com/Mono:FreeBSD |



More information about the freebsd-ports mailing list