On 24/09/2007, at 7:30 PM, Martin Costabel wrote:

Philip Lamb wrote:
Hi all,
I have a package I'm updating that depends on libgnome2 and libgnomeui2. When I run otool -L on the built binary, I see all the inherited gnome shared libraries. My question is, do I have to list every shared library from libgnome2 and libgnome2ui as a dependency of my package, or is it enough to have a depends: libgnome2-shlibs, libgnome2ui-shlibs and let the inherited depends be installed that way?

Technically speaking, you don't need to include the inherited dependencies. It's more a question of clarity and ease of maintenance. If you depend on indirect dependencies, your package can be broken by an update of libgnomeui2-shlibs, for example, on which you have no influence. Unless you Depend on a precise version of libgnomeui2-shlibs, which you usually don't want to, you would even have to make sure that there aren't other versions of that package around that lack some of your needed dependencies.

Concerning BuildDepends, the inclusion of inherited dependencies is mandatory, as long as Fink's InheritedBuildDepends mechanism is still in the state of a nice dream.


Martin,

Thanks very much for your answer.

It seems like this a real trap for maintainers.. especially when dependencies include complex stuff like GNOME. The documentation in this area doesn't really spell out what maintainers need to do, i.e. it should say something like:

"When a package you are building has BuildDepends, you need to look into the .info file of each and every one of the packages that are depended upon, and add their BuildDepends to your BuildDepends line.

I had a look at the docs on the wiki. This area looks like a real headache.

Regards,
Phil.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to