comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Library file locations (was: Debian Policy for Ada, Second Edition)
Date: Sun, 19 Mar 2006 23:24:48 +0100
Date: 2006-03-19T23:24:48+01:00	[thread overview]
Message-ID: <87hd5u843z.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 53jTf.1195$T84.794@reader1.news.jippii.net

Tapio Kelloniemi <spam18@thack.org> writes:
[...] 
> However GCC searches for header files in /usr/include and
> /usr/local/include even when it is installed under /opt. If some
> other behaviour is desired, GCC specs must be modified. So either
> GNAT should also use the same specs machanism as the rest of GCC (we
> agree that GNAT should behave the same way as other compilers in
> GCC?) or it should:
> 
> - Search from /usr/local if and only if it will be installed to /usr.
> and/or
> - Provide an easy way for system administrators to change the project search 
>   path. Perhaps a file like ada_project_path could be added to lib/gcc/*/* 
>   where ada_object_path and ada_source_path files may also reside.

The Debian Policy for Ada says that each library must provide a
project file called /usr/share/ada/adainclude/LIBRARY.gpr.

I intend to have the system Ada compiler look for project files in
that directory by default.

Each user can, in addition, have project files anywhere they please,
and define ADA_PROJECT_PATH so GNAT will find them automatically.
They can also "with" any project file by means of its fully-qualified
file name if they so wish.

In particular, /usr/local is, by definition, for use by the system
administrator, and therefore falls outside the scope of any policy
defined by the operating system.  If you want GNAT to look in some
particular subdirectory of /usr/local, then use ADA_PROJECT_PATH or
"with" the fully qualified file name of your project files.

So, what exactly is the problem?

-- 
Ludovic Brenta.



  reply	other threads:[~2006-03-19 22:24 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
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 [this message]
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