From owner-freebsd-ports@FreeBSD.ORG  Sat Jun 17 14:56:48 2006
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
X-Original-To: ports@freebsd.org
Delivered-To: freebsd-ports@FreeBSD.ORG
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9741716A474
	for <ports@freebsd.org>; Sat, 17 Jun 2006 14:56:48 +0000 (UTC)
	(envelope-from gerald@pfeifer.com)
Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at
	[128.131.111.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 363AC43D48
	for <ports@freebsd.org>; Sat, 17 Jun 2006 14:56:48 +0000 (GMT)
	(envelope-from gerald@pfeifer.com)
Received: from acrux.dbai.tuwien.ac.at (acrux [128.131.111.60])
	by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 0F2F213794;
	Sat, 17 Jun 2006 16:56:42 +0200 (CEST)
Date: Sat, 17 Jun 2006 16:56:46 +0200 (CEST)
From: Gerald Pfeifer <gerald@pfeifer.com>
To: Karel Miklav <karel.miklav@siol.net>
In-Reply-To: <448EE6F0.3040003@siol.net>
Message-ID: <Pine.LNX.4.61.0606171430560.16636@acrux.dbai.tuwien.ac.at>
References: <448EE6F0.3040003@siol.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: ports@freebsd.org
Subject: Re: GCC with GNAT Ada compiler
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jun 2006 14:56:48 -0000

On Tue, 13 Jun 2006, Karel Miklav wrote:
> 1. why gcc41 installs binaries in ${PREFIX}/ bin/?

Among others, this way, users do not have to modify their PATH (and
other settings) which as you noted is necessary with the approach you
described for your GNAT port.

> Isn't this a problem if multiple compilers are installed?

It's not.  I've carefully ensured, by means of proper configuration
options and several bug reports and pushes upstream, that all our
recent lang/gcc ports (gcc33, gcc34, gcc40, gcc41, and gcc42) install
conflict free, with the exception of gcc41 and gcc42 if Java is used.

> 2. with default configure parameters Ada library
> gets installed into ${PREFIX}/lib/gcc/
> i386-portbld-freebsd6.1/4.1.2/gcc/
> i386-portbld-freebsd6.1/4.1.2/. Would it be
> OK for other compilers to configure with
> --bindir=${PREFIX}/bin/gcc41? Maybe this is
> a GNAT bug and should be fixed?

Yes, GNAT should install into ${PREFIX}/bin as well, using the
--program-suffix= option, like the lang/gcc ports are doing.

> 3. Is it OK to build in switches for excluding Objective C and C++?

Depens which ports you have in mind. ;-)  It's probably not worth in
terms of disk space and build time to do this for the regular lang/gcc
ports.  These already are quite complex, plus by installing one of these
without C++, for example, you'd cause problems for other ports using 
this one as a build dependency.

Gerald