From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,de92eb048dc3c019 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Sun, 19 Mar 2006 16:28:33 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Library file locations (was: Debian Policy for Ada, Second Edition) References: <441D793F.5030308@obry.net> <53jTf.1195$T84.794@reader1.news.jippii.net> Date: Sun, 19 Mar 2006 23:24:48 +0100 Message-ID: <87hd5u843z.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:uajJTUG/CtotjvktiOh0XAWcrZI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.242.181 X-Trace: sv3-0AHUOvWWeRRLl+zJ0XGXFsOguVhYxqRGs9CDqd2dAJnJm+e1qTvo58QLSteWsoOL+k0jggi5n3GuL3K!2+VzK3ZPvPrwRBG0PdSUcrehXMopBLT50LKzyRFyd+qbqBSiSeMcMA1X+TXOPeB38hCTFNTD2TA= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3471 Date: 2006-03-19T23:24:48+01:00 List-Id: Tapio Kelloniemi 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.