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

Re: RFS: dbusada



On 03/07/2012 10:50 AM, Ludovic Brenta wrote:
> Reto Buerki wrote:
>>> * Build-Depend on gnat in addition to gnat-4.6
>>
>> I don't exactly understand the rationale for this rule. In contrast to
>> other packages the gnatgcc command is not needed to build dbusada. And I
>> explicitly Build-Depend on the upcoming default compiler gnat-4.6 so ABI
>> compatibility to other Ada packages is guaranteed.
> 
> In section 4:
> 
> "Rule: Package ‘gnat’ is the default Ada compiler for Debian. All packages
> containing Ada programs or libraries SHALL use this compiler."
> 
> This rule makes it explicit that the package 'gnat-4.6' is NOT the default
> Ada compiler; the package 'gnat' is.

And the package description of 'gnat' is:
"This is an empty package that depends on the default Ada compiler for
 Debian, which is part of the GNU Compiler Collection."

gnat currently depends on gnat-4.6, making it the 'current' default Ada
compiler.

I see no real (besides policy compliance) benefit here for depending on
gnat in addition to gnat-4.6. The dbusada package defines that it needs
exactly gnat-4.6 to build and that every package that depends on dbusada
MUST also use this compiler.

> And in 5.2.1:
> 
> "Rule: the -dev package SHALL Depend: on the packages gnat and gnat-X.Y.
> 
> Rationale: depending on both packages ensures that only the default Ada
> compiler can be used to build programs depending on the library, pursuant
> to The Debian Ada compiler."

If a library -dev package depends on gnat-4.6, programs depending on
this library can only be built with gnat-4.6 because the different
versions of gnat-X.Y already conflict. The current Conflict line of
gnat-4.6:

Conflicts: gnat (<< 4.1), gnat-3.1, gnat-3.2, gnat-3.3, gnat-3.4,
gnat-3.5, gnat-4.0, gnat-4.1, gnat-4.2, gnat-4.3, gnat-4.4

How to use a compiler other than gnat-4.6 in a program depending on dbusada?


Reply to: