[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Right way for calculating versioned dependencies?



On Tue, May 18, 2004 at 10:16:40PM -0700, Matt Zimmerman wrote:
> On Wed, May 19, 2004 at 12:02:48PM +1000, Andrew Pollock wrote:
> 
> > I've got a package that I want to declare a version dependency on another
> > package.
> > 
> > Currently the Depends: line is just ${shlibs:Depends}, and this is adding
> > unversioned dependencies fine, but for at least two of the packages it's
> > calculating I want to include a version number.
> 
> Why?  If the shlibs information is correct, ${shlibs:Depends} will be
> correct.  If the shlibs information is not correct, that should be fixed in
> the library package.

Hmm. What about this case? Package P is linked against library
package L. L has a bug which is fixed starting at a certain version, but
doesn't require an ABI change.

Since L doesn't change its ABI, does it need to change its shlibs?
Yet P might want to specify that it requires a certain version of L.

Depends: ${shlib:Depends}, L (>= blah)

results in duplicate dependencies, which lintian says is bad. (I'm not
sure why it's bad though.)

This happened with Xpdf and libt1-5 recently.

Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>



Reply to: