Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 95 16:51 MET DST
From:      nils@guru.ims.uni-stuttgart.de (Cornelis van der Laan)
To:        asami@cs.berkeley.edu, jmz@cabri.obs-besancon.fr
Cc:        jkh@time.cdrom.com, jmacd@FreeBSD.org, ports@freefall.cdrom.com
Subject:   Re: g77 port
Message-ID:  <m0s4Uuk-0003VaC@guru.ims.uni-stuttgart.de>

next in thread | raw e-mail | index | archive | help
> > By the way, I'm not sure how I feel about this port installing itself
> > in /usr/libexec and /usr/bin.  I thought we were trying to keep ports
> > in /usr/local and /usr/X11R6 so when the user upgrades the OS, she can
> > just pack up those directories and reinstall.

I know this, I don't like it either. But: both gnat and g77 are 
integral parts of the gcc compiler and gcc's standard searchpath for
compiler backends is /usr/libexec. Hence I decided to put gnat1 and
f771 there or at least install a symlink there pointing to the real
places. Installing the ports in a separate hierarchy like /usr/local
means to generate two gcc driver programs called gnat and g77 which
know about the proper location of their backends. (OK, one called gcc
if you like, but then you have /usr/bin/gcc and /usr/local/bin/gcc
which are not drivers for different versions of gcc but for the same 
version, hence one of them is slack. Also, using /usr/local/bin/gcc won't 
find the cc1 backend to compile the c-files needed when linking ada 
programs.)

How about patching the gcc driver to look in two paths for the backends?
First it could search /usr/libexec and then /usr/local/lib. Or tell it
(as long as gnat and g77 are not part of the FreeBSD release) to look
for those two backends in ${PREFIX}/lib, whatever the consensus about 
${PREFIX} is. This would solve all problems, but that's not my part of 
work, that's to be done by the gcc maintainers.

> > Josh, can you change this so that it installs in /usr/local/libexec
> > and /usr/local/bin?

>Or better: in ${PREFIX}/libexec and ${PREFIX}/bin ;-) (should be easy)

It's trivial and annotated in the Makefile, but see above...

> > Satoshi

>Jean-Marc.

Nils
----------------------------------------------------------------
Cornelis van der Laan -- nils@ims.uni-stuttgart.de
                      -- nils@guru.stgt.sub.org
# echo Knusper Knusper Knaeuschen > /etc/nologin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0s4Uuk-0003VaC>