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 18:38:51 +0200
Date: 2011-10-02T18:38:51+02:00	[thread overview]
Message-ID: <87fwjbtkkk.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 4e883d20$0$7615$9b4e6d93@newsspool1.arcor-online.net

Georg Bauhaus writes:
> On 01.10.11 16:17, Yannick Duchêne (Hibou57) wrote:
>> I tried, as you suggested, to install a Debian Sid within a chroot
>> environement, which was not better: there is either libaunit3, which
>> does not come with required AUnit files such as aunit.gpr, or either
>> libaunit1-dev, which provides a aunit.gpr among others required
>> files, but which unfortunately depends on GNAT 4.4... and bahm,
>> conflict.
>
> 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).  Debian does this by stating and enforcing dependencies
between binary packages.  In this case:

- libaunit3 (the binary shared library package) depends on libgnat-4.4
- libaunit1-dev (the development package) depends on all of
  ada-compiler, gnat and gnat-4.4.  This is because the -dev package
  contains .ali files that encode dependencies to the .ali files in the
  gnat-4.4 run-time library.

Furthermore:

- gnat-4.4 and gnat-4.6 conflict with each other because they both
  provide /usr/bin/gnatmake et al.

Therefore, it is impossible to install both libaunit1-dev and
libasis2010-dev, because libaunit1-dev depends on gnat-4.4 while
libasis2010-dev depends on gnat-4.6.  This impossibility is intentional
and by design; it only reflects the fact that the .ali files in the -dev
packages are incompatible with each other.

It is these package dependencies, rendered necessary by the binary
nature of Debian, that cause problems for Yannick.

BTW, I uploaded libaunit2-dev, which depends on gnat-4.6, yesterday
evening.  It should reach Debian unstable in a few days at most.
Yannick, patience is your ally :)

> v.1 of AUnit is portable, pure Ada. For use with GNAT, it has been
> sufficient in the past to put a GNAT project file in some convenient
> place, or use one's own directories, or not use a project file at all!
> Just make the files accessible to the compiler.  (AUnit v.1 came when
> there was no project configuration description language yet.)

Yes, it is quite easy to copy the sources of aunit in a directory
outside of Debian's package-controlled files (i.e. anywhere under
$HOME), add a simple project file, and compile AUnit into any program.

-- 
Ludovic Brenta.



  reply	other threads:[~2011-10-02 16:38 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 [this message]
2011-10-02 17:44                       ` Georg Bauhaus
2011-10-02 18:28                         ` Ludovic Brenta
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