From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 4 06:52:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 755DE1065673; Tue, 4 Mar 2008 06:52:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 3FBEB8FC39; Tue, 4 Mar 2008 06:52:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m246pTXW058919; Mon, 3 Mar 2008 23:51:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 03 Mar 2008 23:51:28 -0700 (MST) Message-Id: <20080303.235128.41690803.imp@bsdimp.com> To: doconnor@gsoft.com.au From: Warner Losh In-Reply-To: <200803041701.36466.doconnor@gsoft.com.au> References: <20080303.224256.635730757.imp@bsdimp.com> <200803041701.36466.doconnor@gsoft.com.au> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: Comments on pmake diffs for building on Linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 06:52:00 -0000 From: "Daniel O'Connor" Subject: Re: Comments on pmake diffs for building on Linux Date: Tue, 4 Mar 2008 17:01:28 +1030 > On Tue, 4 Mar 2008, M. Warner Losh wrote: > > Greetings, > > > > here's a set of diffs that will allow FreeBSD's usr.bin/make to build > > on Linux. I'm sure they are gross, and I don't plan to commit them > > (at least not all of them), but I thought I'd post them here to see > > what people think. > > > > I think that the extra config.h includes, the errc -> errx patches > > and the Makefile.dist patches may be good for the tree. The rest may > > not meet FreeBSD's source tree policies. > > > > Comments? > > I did this a while ago when porting some of our code to Linux because it > builds with pmake.. > > Your patches are much nicer than mine however :) I was in a hurry, since I thought I could do it in a half hour and that was faster than explaining things... > The tailq stuff could be shoved into a linux.h or some such.. So it's > more obvious what it's for and why it's there. I resisted creating a linux.h, but we'll likely need something akin to it. When I did some Mac OS X experimentation, I had extensions to legacy to smooth over the rough edges, but it is too early here. Warner