comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: One united Ada policy for all Linux distributions?
Date: Thu, 20 May 2010 06:49:36 -0400
Date: 2010-05-20T06:49:36-04:00	[thread overview]
Message-ID: <821vd6x2yn.fsf@stephe-leake.org> (raw)
In-Reply-To: 85i73nF41eU2@mid.individual.net

Björn Persson <bjorn@xn--rombobjrn-67a.se> writes:

> Dmitry A. Kazakov wrote:
>
>> Ideally gpr files should be installed where GPS,
>> gprbuild, gnatmake could look after them. GNAT GPL's GPS does it in
>> <GNAT-root>/lib/gnat. I think the policy should mandate a directory under
>> /usr/lib or /usr/include for all gpr files rather than project-dependent
>> directories.
>
> The question of where to store .gpr files is actually rather complicated. 
> The .gpr file for a library needs to point to architecture-specific library 
> files, which makes the .gpr file itself architecture-specific if the 
> location is hard-coded. For example, a multilib system may have a 32-bit 
> /usr/lib/lib<library>.so with .ali files in /usr/lib/<library>/, and a 64-
> bit /usr/lib64/lib<library>.so with .ali files in /usr/lib64/<library>/. It 
> would then need two different .gpr files, one pointing to /usr/lib/<library> 
> and the other to /usr/lib64/<library>. 

I gather Debian will need to address this issue when we support multilib.

> One might then try putting the .gpr files somewhere in /usr/lib* too,
> for example /usr/lib/gnat/<library>.gpr and
> /usr/lib64/gnat/<library>.gpr. That doesn't work however, because
> although Gnat can be configured to look for .gpr files in multiple
> directories, it will look in the same set of directories regardless of
> whether it's compiling for 32-bit or 64-bit mode, and use the first
> .gpr file with a matching name that it finds. 

That's a bug, which I would expect to be fixed in a true multilib aware gnat. 

-- 
-- Stephe



  reply	other threads:[~2010-05-20 10:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-17 10:29 One united Ada policy for all Linux distributions? Ludovic Brenta
2010-05-18  9:32 ` Ludovic Brenta
2010-05-18 10:04   ` Dmitry A. Kazakov
2010-05-18 10:19     ` Ludovic Brenta
2010-05-18 12:16       ` Dmitry A. Kazakov
2010-05-18 13:09         ` Ludovic Brenta
2010-05-18 14:00           ` Dmitry A. Kazakov
2010-05-19 13:24     ` Björn Persson
2010-05-20 10:49       ` Stephen Leake [this message]
2010-05-19 13:23   ` Björn Persson
2010-05-19 14:13     ` Dmitry A. Kazakov
2010-05-19 14:41       ` Ludovic Brenta
2010-05-19 14:47       ` Björn Persson
replies disabled

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