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

Re: [RFC] managing dependencies with levels



On Fri, May 18, 2001 at 02:00:30PM +0200, Arthur Korn wrote:
> Thierry Laronde schrieb:
> > level of package = max {level of dependencies} + 1
> 
> > The install tools simply has to install packages in increasing level
> > numbers. All packages having the same level can not, by definition, have any
> > circular dependencie, since this will mean that they depend on a package of
> > the same level thus that they have at a level of a greater value.
> 
> And that's exactly the problem, because dpkg allows circular
> dependencies. The following works:
> 
> Package: msyslog
> Depends: syslog-common
> 
> Package: syslog-common
> Depends: msyslog
> 
> If you try to calculate your "level" for those, you'll deadlock.

One thing I have missed in my previous answer was that what you actually say,
is that dpkg accepts that (I was thinking about the system, but not considering
the actual behavior of dpkg).

FWIW, Glenn McGrath has made some precious remarks, and I finally understand
that what you meant was that such a circular dependencies are legitim in the
debian packaging system.

Indeed, the type hierarchy applied strictly to Pre-Depends, when order do
import. Glenn has made some suggestions, and I think we will be able to have
something valid, with the type hierarchy slightly modified.

Just to close for the moment the thread, and to recognize that I haven't
catched your point.

Cheers,
-- 
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org/



Reply to: