Re: Where to place Ada (Gnat) libraries
Matthew Woodcraft [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: I have a question: whydo we have to keep .adb files in the package since .ads files are meant to contain the interface? (well, indeed except from generics). I don't know that we 'have to', but one reason to do so is that gnat can inline subprograms across unit boundaries (-gnatn switch), but naturally it needs access to the .adb file to do so. This is irrelevant unless the package in question actually marks some subprograms as inline, of course. So, better add .adb files in case I guess. -- Jérôme Marant http://marant.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where to place Ada (Gnat) libraries
David Starner [EMAIL PROTECTED] writes: On Thu, Apr 18, 2002 at 10:47:54PM +0100, Ian Sharpe wrote: Is there a Debian-preferred location for .ali files (etc) produced by the Gnat Ada compiler? The pattern seems to be: .a/.so files in /usr/lib .ali files in /usr/lib/xxx .ads/.adb files in /usr/include/xxx where xxx is the package that the library is a part of. If that's what the pattern is, then that's what you probably do. There is no formal standard for where Ada pieces go. I've thought about starting a debian-ada mailing list, which would be a fine place to argue out all the details for a possible Ada policy or details to add to Debian Policy. Yes please. I'm currently interested in Ada and I might release some packages some day. Cheers, -- Jérôme Marant http://marant.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where to place Ada (Gnat) libraries
Ian Sharpe [EMAIL PROTECTED] wrote: Is there a Debian-preferred location for .ali files (etc) produced by the Gnat Ada compiler? The pattern seems to be: .a/.so files in /usr/lib .ali files in /usr/lib/xxx .ads/.adb files in /usr/include/xxx where xxx is the package that the library is a part of. The current packages aren't entirely consistent. libasis keeps the .ads and .adb files in /usr/lib/asis/ along with the .ali files. It might also be worth looking at Florian Weimer's proposed 'GNU Ada Environment Specification'[1], which proposes a different layout, with .ads and .adb files under /usr/{lib,share}/ada/adainclude, and .ali and .a files under /usr/lib/adalib. I believe this structure comes from the Ada for Linux Team's RPMs, by Jürgen Pfeifer [2]. -M- [1] http://cert.uni-stuttgart.de/files/fw/gnae.html [2] http://www.gnuada.org/alt.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where to place Ada (Gnat) libraries
Matthew Woodcraft [EMAIL PROTECTED] writes: Ian Sharpe [EMAIL PROTECTED] wrote: Is there a Debian-preferred location for .ali files (etc) produced by the Gnat Ada compiler? The pattern seems to be: .a/.so files in /usr/lib .ali files in /usr/lib/xxx .ads/.adb files in /usr/include/xxx where xxx is the package that the library is a part of. The current packages aren't entirely consistent. libasis keeps the .ads and .adb files in /usr/lib/asis/ along with the .ali files. It might also be worth looking at Florian Weimer's proposed 'GNU Ada Environment Specification'[1], which proposes a different layout, with .ads and .adb files under /usr/{lib,share}/ada/adainclude, and .ali and .a files under /usr/lib/adalib. I have a question: whydo we have to keep .adb files in the package since .ads files are meant to contain the interface? (well, indeed except from generics). -- Jérôme Marant http://marant.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where to place Ada (Gnat) libraries
[EMAIL PROTECTED] wrote: I have a question: whydo we have to keep .adb files in the package since .ads files are meant to contain the interface? (well, indeed except from generics). I don't know that we 'have to', but one reason to do so is that gnat can inline subprograms across unit boundaries (-gnatn switch), but naturally it needs access to the .adb file to do so. This is irrelevant unless the package in question actually marks some subprograms as inline, of course. -M- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Where to place Ada (Gnat) libraries
On Thu, Apr 18, 2002 at 10:47:54PM +0100, Ian Sharpe wrote: Is there a Debian-preferred location for .ali files (etc) produced by the Gnat Ada compiler? The pattern seems to be: .a/.so files in /usr/lib .ali files in /usr/lib/xxx .ads/.adb files in /usr/include/xxx where xxx is the package that the library is a part of. If that's what the pattern is, then that's what you probably do. There is no formal standard for where Ada pieces go. I've thought about starting a debian-ada mailing list, which would be a fine place to argue out all the details for a possible Ada policy or details to add to Debian Policy. -- David Starner - [EMAIL PROTECTED] It's not a habit; it's cool; I feel alive. If you don't have it you're on the other side. - K's Choice (probably referring to the Internet) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]