From owner-freebsd-ports@FreeBSD.ORG Sun Jun 18 10:15:26 2006 Return-Path: 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 1F76616A474 for ; Sun, 18 Jun 2006 10:15:26 +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 B716A43D45 for ; Sun, 18 Jun 2006 10:15:25 +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 85FD51379A; Sun, 18 Jun 2006 12:15:24 +0200 (CEST) Date: Sun, 18 Jun 2006 12:15:26 +0200 (CEST) From: Gerald Pfeifer To: Karel Miklav In-Reply-To: <449482C1.80401@lovetemple.net> Message-ID: References: <448EE6F0.3040003@siol.net> <449482C1.80401@lovetemple.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 10:15:26 -0000 On Sun, 18 Jun 2006, Karel Miklav wrote: >> Yes, GNAT should install into ${PREFIX}/bin as well, using the >> --program-suffix= option, like the lang/gcc ports are doing. > Ups, I merged two issues above. First is option --libdir, which has > a value of ${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/${PORTVERSION}. This > is a problem for Ada, as libraries get installed into very deep and > odd looking path. Yes, I can see this. The path is long even for other languages, because we have a duplication of ${CONFIGURE_TARGET}/${PORTVERSION} in some cases. The current --libdir option has the purpose to avoid conflicts among the lang/gcc* ports, due to various issues upstream. > Setting this option to ${PREFIX}/lib doesn't seem to change anything > for C and C++, but it helps Ada. Don't know about the other compilers > though. ${PREFIX}/lib won't work -- we'd get tons of conflicts between the various lang/gcc* ports, but I think I could change this to --libdir=${PREFIX}/lib/gcc${SUFFIX} instead. Would this help? > Binaries are another problem, as program name transformation does not > currently work for Ada. I'll see what I can do about it. If you could work this upstream, that would be great, thanks! (GCC 4.2 is still under development and GCC 4.1 is released and in bugfix mode. Such a fix may be appropriate for these two.) >>> 3. Is it OK to build in switches for excluding Objective C and C++? >> Depens which ports you have in mind. ;-) > galaxian-4.1.2 :)) :) > I didn't think about that. Look, I'd like to have Ada in GCC ports > in the end. There already is a FreeBSD port of GPL-ed GNAT, based on > GCC sources and patches prepared by AdaCore. Would it be acceptable if > I prepare ports named like gcc_gnatXY? These would mostly be copies of > gccXY ports with Ada included, and when matured, they could be merged > into GCC ports? I'd recommend to focus on a single version, but either way is fine with me -- just make sure not to create conflicts (same filenames used by two ports) with any of the existing lang/gcc* ports. Adding Ada support to one of the recent lang/gcc* ports, lang/gcc42 ideally at this point, with an option such was WITH_ADA sounds like a worthwhile idea. Perhaps you may want to start by using lang/gcc42 as a master port, similar to lang/gfortran? Gerald