From owner-freebsd-ports@FreeBSD.ORG Fri Dec 8 22:25:20 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99DB416A403; Fri, 8 Dec 2006 22:25:20 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1544E43CA3; Fri, 8 Dec 2006 22:24:19 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.8/8.13.8/NETPLEX) with ESMTP id kB8MPJxJ013739; Fri, 8 Dec 2006 17:25:19 -0500 (EST) Date: Fri, 8 Dec 2006 17:25:18 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Karel Miklav In-Reply-To: <4579D524.6010206@siol.net> Message-ID: References: <4579D524.6010206@siol.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Fri, 08 Dec 2006 17:25:19 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: ports@freebsd.org, bsam@freebsd.org Subject: Re: How to break the bootstrapping chain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 22:25:20 -0000 On Fri, 8 Dec 2006, Karel Miklav wrote: > I'm trying to maintain the gnat-gcc* Ada compiler ports, > currently there are gnat-gcc34 and 41. I'd like to > introduce newer versions, and retire experimental 34, > which is built from an ancient binary which requires > FreeBSD 4 compatibility. I'd like to know: > > 1. what do I have to do that gnat-gcc packages will > appear on FreeBSD FTP sites? > > 2. can I use one of FreeBSD packages to bootstrap > others or do I have to somehow provide my own > binary? > > In case I was not clear enough: the GNAT compiler can > only be bootstrapped with another GNAT. If I base the > procedure on a FreeBSD package, I can no longer provide > the port for that package ... or do I? Damn, who > invented this chicken and egg thing :) You'll have to do the same thing as the lang/gnat port and provide your own bootstrapping compiler. No matter what you do (*), it will require FreeBSD-X compat. AFAIK, we are currently supporting FreeBSD 5, 6, and 7, so the bootstrap should be based on FreeBSD-5, so it can work for 6 and 7 as well. If it is based on 6 or 7, then it will not be able to work on the other two. (*) The only way you can avoid this, is to provide 3 different bootstrap compilers (one for 5, 6, and 7) and teach the port to depend on the appropriate bootstrapper. -- DE