comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Library file locations (was: Debian Policy for Ada, Second Edition)
Date: Sun, 19 Mar 2006 02:04:29 GMT
Date: 2006-03-19T02:04:29+00:00	[thread overview]
Message-ID: <N_2Tf.48898$d5.204943@newsb.telia.net> (raw)
In-Reply-To: <EM_Sf.934$ha2.765@reader1.news.jippii.net>

Tapio Kelloniemi wrote:
> Pascal Obry <pascal@obry.net> wrote:
> 
>>Ludovic Brenta a écrit :
>>
>>
>>>I am not aware of a GNAT default.  What is the default? And why does
>>>it not follow the GNAE?
>>
>>The scheme is something like:
>>
>>/opt/GNAT/<ver>
>> /bin                 <- binaries there
>> /lib/gnat/           <- project files there (GNAT looks there)
>> /lib/gnat/<project>  <- if needed sub-project files
>> /lib/<project>       <- .o .ali .a .so for <project>
>> /lib                 <- sym links to .a and .so above
>> /include/<project>   <- .ads/.adb for <project>
> 
> 
> GNAT people seemingly haven't read FHS. This is what it says about the
> include directory:
> "This  is  where all of the system's general-use include files for the C
> programming language should be placed."

It doesn't forbid putting non-C files there. FHS doesn't mention Ada, so 
the most logical thing to do is to treat .ads files like .h files.

> Non-C languages generally use lib, like Python and Ruby.

Python doesn't have a system with separate specifications and 
pre-compiled libraries. A Python module is contained in a single file, 
so the Python developers had to choose between include and lib. 
Apparently they chose lib. I would guess that the situation with Ruby is 
similar.

> I would like to raise the question publicly: where Ada-folks would like to put 
> their .adb and .ads files?

The scheme that Pascal posted looks good, although I'm not sure lib/gnat 
is the best choice for project files. It should of course be under /opt 
only when installed as a third-party package. When it's included in an 
OS distribution, /opt/GNAT/<ver> should be replaced with /usr.

-- 
Bj�rn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu



  reply	other threads:[~2006-03-19  2:04 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18  1:15 Debian Policy for Ada, Second Edition Ludovic Brenta
2006-03-18 13:36 ` Pascal Obry
2006-03-18 14:39   ` Ludovic Brenta
2006-03-18 16:32     ` Pascal Obry
2006-03-18 17:13       ` Ludovic Brenta
2006-03-18 19:10         ` Pascal Obry
2006-03-18 19:49           ` Georg Bauhaus
2006-03-18 21:16       ` Tapio Kelloniemi
2006-03-19  2:04         ` Björn Persson [this message]
2006-03-19  7:48           ` Library file locations (was: Debian Policy for Ada, Second Edition) Tapio Kelloniemi
2006-03-19 13:00             ` Björn Persson
2006-03-19 15:31             ` Pascal Obry
2006-03-19 16:48               ` Björn Persson
2006-03-19 20:21               ` Tapio Kelloniemi
2006-03-19 22:24                 ` Ludovic Brenta
2006-03-20  9:07                   ` Tapio Kelloniemi
2006-03-20 11:51                     ` Ludovic Brenta
2006-03-21 20:11                       ` Tapio Kelloniemi
2006-03-21 22:30                         ` Library file locations Ludovic Brenta
2006-03-22 11:57                         ` Library file locations (was: Debian Policy for Ada, Second Edition) Georg Bauhaus
2006-03-20  6:52                 ` Pascal Obry
2006-03-20  9:10                   ` Tapio Kelloniemi
replies disabled

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