On Wed, Sep 09, 2009 at 09:51:16AM -0700, Steve Langasek wrote:
> On Wed, Sep 09, 2009 at 05:52:45PM +0200, Bill Allombert wrote:
> > Package: odbcinst
> > Version: 2.2.11-20
> > Severity: important
> 
> > Hello Steve,
> 
> > There is a circular dependency between odbcinst and odbcinst1debian1:
> 
> > odbcinst            :Depends: odbcinst1debian1 (>= 2.2.11-3)
> > odbcinst1debian1    :Depends: odbcinst
> 
> Yes, there is, and it's an unavoidable one (and not a bug).  odbcinst must
> be split out because shared library packages should not ship config files
> (especially non-conffile config files as we now do) or utilities; it must
> depend on odbcinst1debian1 because the utility uses this library; and the
> library package must depend on odbcinst because the library needs the config
> files.

Hello Steve,

I am concerned that the situation you mention is quite common and resolving it
this way will lead to a marked increase in the number of circular dependencies
in Debian.

Even in such situations, there are various ways to avoid the circular
dependency.

The first way: odbcinst1debian1 shlib could look like:
libodbcinst 1 odbcinst1debian1,odbcinst
This way every package linked against odbcinst1debian1 would also depend
on odbcinst, alleviating the need for odbcinst1debian1 itself to depend
on odbcinst.

The second way: Add a new package odbcinst-config that contains the
configuration files and set up the dependencies as follow:
odbcinst -> odbcinst1debian1 -> odbcinst-config

I am sure you can come up with a third, better, way.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to