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: a07f3367d7,a19f7b11143e52d2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: One united Ada policy for all Linux distributions? References: <8b775424-6d49-4fc1-8f9d-f1837d75371e@e21g2000vbl.googlegroups.com> <15rwx3bkqj8p9$.18lm12fadj9m7$.dlg@40tude.net> <85i73nF41eU2@mid.individual.net> Date: Thu, 20 May 2010 06:49:36 -0400 Message-ID: <821vd6x2yn.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:0TtCkdYyP9Ta06uItqE2AmPyMYI= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 8a8ce4bf51446e197caa706698 X-Original-Bytes: 2631 Xref: g2news2.google.com comp.lang.ada:11794 Date: 2010-05-20T06:49:36-04:00 List-Id: Björn Persson writes: > Dmitry A. Kazakov wrote: > >> Ideally gpr files should be installed where GPS, >> gprbuild, gnatmake could look after them. GNAT GPL's GPS does it in >> /lib/gnat. I think the policy should mandate a directory under >> /usr/lib or /usr/include for all gpr files rather than project-dependent >> directories. > > The question of where to store .gpr files is actually rather complicated. > The .gpr file for a library needs to point to architecture-specific library > files, which makes the .gpr file itself architecture-specific if the > location is hard-coded. For example, a multilib system may have a 32-bit > /usr/lib/lib.so with .ali files in /usr/lib//, and a 64- > bit /usr/lib64/lib.so with .ali files in /usr/lib64//. It > would then need two different .gpr files, one pointing to /usr/lib/ > and the other to /usr/lib64/. I gather Debian will need to address this issue when we support multilib. > One might then try putting the .gpr files somewhere in /usr/lib* too, > for example /usr/lib/gnat/.gpr and > /usr/lib64/gnat/.gpr. That doesn't work however, because > although Gnat can be configured to look for .gpr files in multiple > directories, it will look in the same set of directories regardless of > whether it's compiling for 32-bit or 64-bit mode, and use the first > .gpr file with a matching name that it finds. That's a bug, which I would expect to be fixed in a true multilib aware gnat. -- -- Stephe