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 Path: g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Library file locations (was: Debian Policy for Ada, Second Edition) References: <441C3610.9000902@obry.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Sun, 19 Mar 2006 02:04:29 GMT NNTP-Posting-Host: 83.250.106.90 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1142733869 83.250.106.90 (Sun, 19 Mar 2006 03:04:29 CET) NNTP-Posting-Date: Sun, 19 Mar 2006 03:04:29 CET Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:3443 Date: 2006-03-19T02:04:29+00:00 List-Id: Tapio Kelloniemi wrote: > Pascal Obry 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/ >> /bin <- binaries there >> /lib/gnat/ <- project files there (GNAT looks there) >> /lib/gnat/ <- if needed sub-project files >> /lib/ <- .o .ali .a .so for >> /lib <- sym links to .a and .so above >> /include/ <- .ads/.adb for > > > 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/ should be replaced with /usr. -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu