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

Bug#316283: warn about intra-source circular dependencies



Micha Lenk <micha@lenk.info> writes:
> On Wed, Jun 29, 2005 at 10:23:48PM +0200, Bill Allombert wrote:

>> I would like to propose that Lintian emits a warning when a source
>> package (or change files) include circular dependencies between the
>> generated packages.

> I would like to have this lintian warning proposed by Bill Allombert
> too. I started to code a litte, but didn't manage to work out how to put
> my code into a form that makes it usable as a lintian check. Thus I do
> appreciate any comment on how to achieve that.

> The attached perl script is an example of a very simple circular
> intra-source dependency check. It takes a .changes file as parameter,
> decodes which binary package files are involved, decodes their
> dependencies and recursively checks for each of them, whether they can
> be satisfied by the other binary packages and whether this would
> introduce a circular dependency.

> Please note that I intentionally decided to check the dependencies of
> the binary packages, and not the debian/control file in the source
> package. This way the script is able to discover circular dependencies
> where ${shlibs:Depends} is involved. This kind of somewhat hidden
> circular dependencies occured to me more than once, and I would love it,
> if lintian could warn me about it.

I don't think there's any way to do this check in lintian except against
the source control file before expansion of substvars without significant
restructuring of lintian.  Each binary package is checked independent of
all others (and indeed, lintian.d.o can't easily work any other way).

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>




Reply to: