From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: gnatmake: "ada.numerics.real_arrays" is not a predefined library unit
Date: Mon, 21 Apr 2008 21:35:26 +0200
Date: 2008-04-21T21:35:26+02:00 [thread overview]
Message-ID: <87zlrnatmp.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 87bq436t1l.fsf@willow.rfc1149.net
Samuel Tardieu writes:
>>>>>> "Ludovic" == Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
>
> Ludovic> It's been in the back of my mind for a few months that I
> Ludovic> should build a shared libgnala.so, package it separately from
> Ludovic> libgnat-4.3.so, and arrange for it to depend on
> Ludovic> lapack. Patches to that effect are, of course, welcome and
> Ludovic> will be gratefully accepted.
>
> Maybe we can work out the shared/static issue in GCC sources. Patches
> welcome too there :)
Definitely; this is an area where all distributions would benefit.
However, Debian is a bit peculiar since it patches the library
building process (in gcc/ada/Makefile.in) heavily so as to build both
the zero-cost and setjump/longjump versions of the library. So, if I
produce a patch, someone will have to adjust it for upstream GCC.
> Concerning the distribution, why separate libgnala.so from libgnat?
> You don't need a dependency on lapack/blas, only a "suggests" or
> "recommends" if people want to build applications requiring annex g
> support. As far as compiled applications are concerned, the
> lapack/blas dependency will be recored as part of a regular Debian
> dependency.
"Suggests" or "Recommends" is not good enough because it would foil
the automatic dependency management Debian is renowned for. The
proper solution is to place libgnala.so in a separate package
(suggested or recommended by gnat-4.3) but that Depends on
(i.e. requires) lapack to be installed. This way, if someone builds a
package where they use Annex G, their package will automatically
depend on libgnala.so and, indirectly, on lapack. With your proposal,
this would not happen as lapack would be only recommended.
--
Ludovic Brenta.
next prev parent reply other threads:[~2008-04-21 19:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 11:34 gnatmake: "ada.numerics.real_arrays" is not a predefined library unit Reinert Korsnes
2008-04-21 12:28 ` Georg Bauhaus
2008-04-21 13:46 ` Ludovic Brenta
2008-04-21 17:01 ` Samuel Tardieu
2008-04-21 19:35 ` Ludovic Brenta [this message]
2008-04-21 20:35 ` Samuel Tardieu
2008-04-21 21:05 ` Ludovic Brenta
2008-04-22 20:13 ` Simon Wright
2008-04-21 21:34 ` Jerry
2008-04-22 10:46 ` Samuel Tardieu
2008-04-22 12:04 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox