2008/6/10 Alexander Vlasov <[EMAIL PROTECTED]>:
> Bart Smaalders wrote:
>> Alexander Vlasov wrote:
>>
>>> Hello,
>>>
>>> I've tried to analyze packages' dependencies and noticed interesting
>>> thing, which os easier to show than to explain in words:
>>>
>>> ---
>>> Processing SUNWgnome-search-tool
>>>
>>> Declared deps: SUNWgnome-config; SUNWgnome-vfs; SUNWgnome-libs;
>>> SUNWgnome-panel; SUNWgnome-base-libs; SUNWcsl
>>>
>>> Calculated by ldd: SUNWdbus; SUNWlxml or openoffice; SUNWgnome-libs;
>>> SUNWgnome-panel; SUNWgnome-component; openoffice or SUNWfreetype2;
>>> SUNWgnome-audio; SUNWgnome-vfs; SUNWgnome-base-libs; SUNWxwrtl or
>>> SUNWxorg-clientlibs; SUNWdbus-bindings; SUNWxwrtl or SUNWxwplt;
>>> SUNWlibms; SUNWopenssl; SUNWfontconfig; SUNWmlib; SUNWzlib;
>>> SUNWgnome-config; SUNWpng; SUNWxwrtl or SUNWxwice; SUNWlexpt; SUNWcsl;
>>> SUNWlibpopt
>>> ---
>>>
>>> maybe all those low-level libraries would be installed anyway to satisfy
>>> dependencies of high-level libraries -- I don't know, haven't traversed
>>> dependency tree yet. But I want to clarify dependency policy:
>>> Should package declare dependency on all other packages it uses or only
>>> to high-level ones?
>>>
>>>
>>
>> Packages should never specify the transitive closure of their dependencies;
>> rather, they should declare their own direct dependencies.  IPS will
>>
>
> OK. Please explain what "direct dependencies" means, because binaries
> from gnome-search-tool _do_ depend directly (ldd for me is quite direct
> dependency)
> Do you mean "package should declare minimal possible set of
> dependencies, transitive closure of which will be superset of real
> dependencies"?

...put another way:

Package A contains "foo"

foo uses the liballeg api functions (alleg_init, etc.) in its code.

The ldd output for foo shows that it also links against libraries such
as libGL, etc.

However, when creating Package A you should only declare your
dependency on liballeg because libGL is not used in foo's code
directly -- it is used by liballeg.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to