comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Current statu of ASIS for GNAT 2012, please ?
Date: Sun, 02 Oct 2011 20:28:40 +0200
Date: 2011-10-02T20:28:40+02:00	[thread overview]
Message-ID: <87botztfhj.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 4e88a2f9$0$6627$9b4e6d93@newsspool2.arcor-online.net

Georg Bauhaus <rm.dash-bauhaus@futureapps.de> writes:
> On 02.10.11 18:38, Ludovic Brenta wrote:
>
>>> Somewhere on this long line you mentioned libaunit1-dev depending on
>>> GNAT 4.4; the package says it depends on ada-compiler.  Actually,
>>> AUnit v.1 indeed only needs an Ada compiler, no fancy configuration,
>>> Ada 95 should do.
>>
>> No.  Debian is a binary distribution and respects the Ada Reference
>> Manual regarding consistency of binary executables, in particular clause
>> 10.1.4(5).
>
> The consistency is cool as ever, but I don't think LRM 10.1.4(5)
> justifies anything ;-) After all, if we put GCC x.y.z in /where/ever,
> there is no problem regarding the LRM.  I will assume that it means
> much more work to have a switch for system compilers, and there might
> be little incentive to have two versions.

LRM 10.1.4(5) does not affect the sources, it affects the binaries
produced from (different versions of) the sources.  Debian is a binary
distribution, therefore it must obey 10.1.4(5) and this justifies the
Debian Policy for Ada regarding dependencies between binary packages.
Note that the .ali files in -dev packages are considered "binary" for
the purposes of this discussion, because they are the way GNAT uses to
obey LRM 10.1.4(5).

>>  Debian does this by stating and enforcing dependencies between
>> binary packages.
>
>> - gnat-4.4 and gnat-4.6 conflict with each other because they both
>>    provide /usr/bin/gnatmake et al.
>
> Ah, well, I have become used to switching between different versions
> of compilers and interpreters.

Yes.  It should be possible for Debian to provide several versions of
GNAT in parallel but I decided, long ago, that this would go against one
of my design goals, which is to make it possible to compile an Ada
program against all of the installed Ada libraries.  The consistency
rule implies that a program cannot be linked, directly or indirectly,
against two different versions of the GNAT run-time library.

You are entirely correct in the context of a source distribution such as
Gentoo or GNAT GPL Edition, however.  In a source distribution, you can
have as many compilers as you want; the price to pay for this is that
you must recompile everything each time you switch compilers, taking
into account that some versions of some libraries might be incompatible
with some versions of the compiler (see ASIS for one example).

-- 
Ludovic Brenta.



  reply	other threads:[~2011-10-02 18:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-28  9:56 Current statu of ASIS for GNAT 2012, please ? Yannick Duchêne (Hibou57)
2011-09-28 12:10 ` Yannick Duchêne (Hibou57)
2011-09-28 17:40   ` Ludovic Brenta
2011-09-28 21:21     ` Yannick Duchêne (Hibou57)
2011-09-29  6:44       ` Ludovic Brenta
2011-09-29 18:39         ` Yannick Duchêne (Hibou57)
2011-09-30 13:23           ` Ludovic Brenta
2011-09-30 22:11             ` Yannick Duchêne (Hibou57)
2011-10-01  9:11               ` Ludovic Brenta
2011-10-01 14:17                 ` Yannick Duchêne (Hibou57)
2011-10-01 16:12                   ` Ludovic Brenta
2011-10-01 16:34                     ` Ludovic Brenta
2011-10-02 18:41                     ` Yannick Duchêne (Hibou57)
2011-10-03  7:07                       ` Ludovic Brenta
2011-10-02 18:58                     ` Yannick Duchêne (Hibou57)
2011-10-02 10:29                   ` Georg Bauhaus
2011-10-02 16:38                     ` Ludovic Brenta
2011-10-02 17:44                       ` Georg Bauhaus
2011-10-02 18:28                         ` Ludovic Brenta [this message]
2011-09-29 12:57       ` Stephen Leake
2011-09-29 18:46         ` Yannick Duchêne (Hibou57)
2011-09-30 10:10           ` Stephen Leake
2011-09-30 13:29           ` Ludovic Brenta
2011-09-29 21:54       ` Simon Wright
2011-09-30  6:11         ` Ludovic Brenta
2011-10-01  6:39           ` Simon Wright
2011-10-01  9:01             ` Ludovic Brenta
2011-10-15 13:50             ` Simon Wright
2011-10-15 14:05               ` Ludovic Brenta
2011-10-15 14:36                 ` Simon Wright
2011-10-15  2:21 ` Lucretia
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox