Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 12:27:28 +0200
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Joe Clarke <marcus@marcuscom.com>
Cc:        Glenn Johnson <glennpj@charter.net>, freebsd-gnome@FreeBSD.org
Subject:   Re: dependency question
Message-ID:  <3C4BED10.725FFBD3@FreeBSD.org>
References:  <20020120205118.GA447@gforce.johnson.home> <1011565282.28534.22.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Clarke wrote:
> 
> On Sun, 2002-01-20 at 15:51, Glenn Johnson wrote:
> > This is probably a rather basic question but since I could not find an
> > archive for the gnome list I have to ask.
> >
> > I have a port that I am working on that requires gtkhtml, gal, and
> > gnomeprint.  Now, if I am not mistaken, none of these are pulled in as
> > dependencies in the gnome meta port but are pulled in as dependencies
> > of ports that are called as part of the gnome meta port.  The port in
> > question uses the gnome environment and links in many gnome libraries.
> > Also, configure calls gnome-config, which is from gnomelibs.  I would
> > like to use the USE_GNOME make variable in the port Makefile and my
> > question is, do I need to explicitly include any of gtkhtml, gal, or
> > gnomeprint as dependencies or is USE_GNOME sufficient?
> 
> USE_GNOME will import what you need except for gnomeprint.  If your port
> doesn't need bonobo, you'll have to LIB_DEPENDS gnomeprint.  USE_GNOME
> will take care of environment for you as well.

There is another consideration, namely the problem with shared
directories under ${PREFIX}/share/gnome. Most GNOME packages use them
extensively to store their .desktop files, pixmaps, .omf files, help
files and so on, so that the dependencies should be constructed in a
way that ensures that a package that installs file(s) into shared
directory will be deleted before a package which "owns" that directory
(i.e. has an appropriate @dirrm in its pkg-plist).  Since most of
GNOME ports install their shortcuts into menu directory owned by
gnomecore all you should do it to define USE_GNOME. There is even a
tool called ports/Tools/scripts/gnomedepends.py, which inspects your
port's pkg-plist and tells you which packages should be put into its
dependency chain to warrant correct removal of shared dirts.

-Maxim
P.S. Joe, please consider refining this explanation and turn it into
another para in our FAQ. Tnx.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C4BED10.725FFBD3>