comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT for Debian
Date: 24 Jul 2003 22:58:37 +0100
Date: 2003-07-24T22:58:37+01:00	[thread overview]
Message-ID: <x7vhe5bsi2a.fsf@smaug.pushface.org> (raw)
In-Reply-To: bfpi2j$831$1@naig.caltech.edu

George Shapovalov <georges@its.caltech.edu> writes:

> Chris M. Moore wrote:
> > It seems cleaner, less work and more maintainable to build gnat as
> 
> Well, this seems all nice and sound, but there are such things as FHS and
> LSB, and in this case GNAE, which pretty much define what goes where. Of
> course when you build it on your own you are free to screw your system as
> you wish ;) (even then FHS says you should put it under /usr/local).
> However if we are talking about a package for a respectable distribution
> (such as Gentoo or Debian ;)) placing this stuff under /opt is
> inappropriate (this one is reserved for biary packages). Sometimes there is
> really no easy way around and one is forced to bundle a package in a way it
> is built, however even then it should go under /usr/lib/$PkgName and proper
> symlinks should be created (and possibly docs moved to proper place.., well
> may be there will be something else as well :)).
> Randhol is definitely free to do as he wishes, however I would expect Debian
> devs to take the position similar to what he demonstrated just now. And
> finally, wouldn't you like to use a properly built and installed package
> ;)?

It used to be most inadvisable to let GNAT installations anywhere near
your standard path (if you wanted to be able to rebuild your kernel,
for example). Not good if gcc turns out to be 2.8.1!

So you clearly need something like gnatgcc.

But you must be very careful where the gcc-lib/i686-whatever-linux
stuff goes -- not on top of your working standard compiler.

So you need a clean way of putting the GNAT builds (especially if you
have more than one) in places where they can't be mistaken and will
never end up on your path.

I choose /opt because if didn't seem like a bad idea; if it was, I am
very sorry. /usr/lib/gnat-3.15p (for example) would be a perfectly
good place, or /usr/local/gnat-3.15p.

You could easily then install gnatgcc and friends by symlinks in
/usr/local/bin (say).

The point of my gnatfe is to do effectively just that but in a way
that you can alter the compiler actually used by changing an
environment variable, which is effectively the prefix you built the
compiler with.

From my point of view, it means that I get the standard source tree,
apply the standard patches, configure --prefix=/opt/3.15p (say), build
& install.

I quite realize that if you're building a package for people to
install & use on the other side of the world without handholding,
things may look different!



  reply	other threads:[~2003-07-24 21:58 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 18:56 GNAT for Debian Francisco Javier Loma Daza
2003-07-21 19:51 ` Samuel Tardieu
2003-07-22  0:12 ` David Holm
2003-07-22  9:03   ` Preben Randhol
2003-07-22 11:55     ` David Holm
2003-07-22 12:16       ` Preben Randhol
2003-07-22 14:53         ` David Holm
2003-07-23 10:00           ` Preben Randhol
2003-07-23 10:25             ` Preben Randhol
2003-07-23 10:56             ` David Holm
2003-07-23 11:03               ` Preben Randhol
2003-07-23 11:50                 ` David Holm
2003-07-23 12:14                   ` Preben Randhol
2003-07-23 12:26                     ` David Holm
2003-07-23 12:30                       ` Preben Randhol
2003-07-24  8:50                   ` Chris M. Moore
2003-07-24  9:13                     ` Preben Randhol
2003-07-24  9:14                       ` Preben Randhol
2003-07-24 11:44                       ` Chris M. Moore
2003-07-24 11:47                         ` Preben Randhol
2003-07-24 15:54                           ` Chris M. Moore
2003-07-24 21:12                             ` George Shapovalov
2003-07-24 21:58                               ` Simon Wright [this message]
2003-07-25  1:39                                 ` George Shapovalov
2003-07-25  6:41                                   ` Ludovic Brenta
2003-07-25 10:54                                     ` Preben Randhol
2003-07-25 10:59                                       ` Preben Randhol
2003-07-25 10:58                                     ` Preben Randhol
2003-07-25 12:35                                     ` Samuel Tardieu
2003-07-26 10:01                                       ` Ludovic Brenta
2003-07-26 10:12                                         ` Samuel Tardieu
2003-07-26  3:36                                     ` Warren W. Gay VE3WWG
2003-07-26  8:51                                       ` Samuel Tardieu
2003-07-25  6:39                                 ` Preben Randhol
2003-07-25  6:55                                   ` Ludovic Brenta
2003-07-25  6:33                             ` Preben Randhol
2003-07-23 18:09               ` Matthew Woodcraft
2003-07-23 18:40                 ` Ludovic Brenta
2003-07-22  8:05 ` Georg Bauhaus
2003-07-22  9:02 ` Preben Randhol
2003-07-22 14:54   ` Francisco Javier Loma Daza
2003-07-22 15:37     ` Samuel Tardieu
2003-07-23 10:01       ` Preben Randhol
2003-07-23 10:08         ` Samuel Tardieu
2003-07-23 10:49           ` Preben Randhol
2003-07-23 10:58             ` Preben Randhol
2003-07-25 11:41         ` Jérôme Marant
2003-07-25 12:05           ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox