From owner-freebsd-ports Thu May 14 17:10:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA15797 for freebsd-ports-outgoing; Thu, 14 May 1998 17:10:04 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA15714 for ; Thu, 14 May 1998 17:09:53 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.8/8.8.7) id KAA16264 for ports@freebsd.org; Fri, 15 May 1998 10:12:43 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199805150012.KAA16264@cimlogic.com.au> Subject: Supporting multiple architectures in ports To: ports@FreeBSD.ORG Date: Fri, 15 May 1998 10:12:43 +1000 (EST) X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org How is this done? I now have FreeBSD/Alpha installed on a disk running mostly code from the FreeBSD tree. Only those things that are kernel internal specific are retained from NetBSD. Today I tried for the first time to build a port - ssh, which is supposed to work on NetBSD/Alpha, and therefore FreeBSD/Alpha too if I've got enough of the 64-bit bugs fixed. It seems to me that there are three types of ports: 1. Ports built from sources that know __FreeBSD__ and can be patched to respond to i386 and __alpha__ if required and if they don't already. 2. Ports which contain sources that might build on more than one architecture, but some sort of support (like devices) is not available for some reason. 3. Binary ports that only work on one architecture. >From what I can see, many ports fit into 1. No problem there. But what about those in 2 and 3? We need some way of saying "this is specific to there architectures..." and have make compare ${MACHINE_ARCH} to decide is the build machine is of them. Thoughts? -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message