comp.lang.ada
 help / color / mirror / Atom feed
From: Tapio Kelloniemi <spam18@thack.org>
Subject: Re: Library file locations (was: Debian Policy for Ada, Second Edition)
Date: Sun, 19 Mar 2006 07:48:52 GMT
Date: 2006-03-19T07:48:52+00:00	[thread overview]
Message-ID: <E18Tf.983$5g6.74@reader1.news.jippii.net> (raw)
In-Reply-To: N_2Tf.48898$d5.204943@newsb.telia.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]

Bj�rn Persson <spam-away@nowhere.nil>
>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.

Generic bodies also go there and at least Debian requires that all .adb files
must be installed to this directory. Also putting Ada files to 
include/<project> may result in having both .h and .ad? files in the same 
directory, which may not be very comfortable. However, share/<project> is not 
better, since the project may use share for something else and because .ad?
files may not be architecture independent data.

>> 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.

Python has precompiled modules, with .pyc extension and they are kept in the 
same directories as the original source code.

>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.

GNAT should look for project files in /usr/local as well, but I'm
afraid this will not be done. Perhaps the project file directory should be 
changed to share/gnat.

-- 
Tapio



  reply	other threads:[~2006-03-19  7:48 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         ` Library file locations (was: Debian Policy for Ada, Second Edition) Björn Persson
2006-03-19  7:48           ` Tapio Kelloniemi [this message]
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