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

Re: policy: library should not depend on virtual ada-compiler



On Thu, Nov 24, 2011 at 11:40:10PM +0100, Ludovic Brenta wrote:
> I think
> 
> Depends: gnat-x.y | ada-compiler
> 
> would be even better.  Note that lintian says: "depends on a virtual
> package without listing a real package as an alternative first."
> Alternatives are separated by | in Depends and Build-Depends lines.

Every gnat-*.* package does provide ada-compiler, so

"Depends: gnat, gnat-4.6 | ada-compiler" is satisfied with gnat (=4.4)
and gnat-4.4 installed.

"Depends: gnat | ada-compiler, gnat-4.6" is satisfied with gnat (=4.4)
and gnat-4.6 installed but not used by default.

If I understand well, we want to avoid both these situations.

I cannot see why the dependency has to be as strong as "Depends".
Depends:, Recommends: and Suggests: are equally highlighted in the
reverse-dependency search of aptitude, but Depends: may cause
problems.


Reply to: