From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 6 00:04:28 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0F55106564A for ; Tue, 6 Dec 2011 00:04:28 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (pancho.soaustin.net [76.74.250.40]) by mx1.freebsd.org (Postfix) with ESMTP id 85A668FC12 for ; Tue, 6 Dec 2011 00:04:28 +0000 (UTC) Received: by mail.soaustin.net (Postfix, from userid 502) id C10D65619E; Mon, 5 Dec 2011 17:57:00 -0600 (CST) Date: Mon, 5 Dec 2011 17:57:00 -0600 From: Mark Linimon To: Oleksandr Tymoshenko Message-ID: <20111205235700.GC18310@lonesome.com> References: <4ED6FD47.6050704@bluezbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ED6FD47.6050704@bluezbox.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-embedded@freebsd.org Subject: Re: Ports cross-compilation X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 00:04:28 -0000 On Wed, Nov 30, 2011 at 08:06:31PM -0800, Oleksandr Tymoshenko wrote: > - Different sets of patches are required for cross-compilation and > native build (use PATCHFILES?) Yes, probably PATCHFILES. > - Create bare-bone version of bsd.port.mk called bsd.xdev.mk. It > should contain target called "xpackage" that would manage > dependencies, install port to ${BUILDROOT}, generate package-related > files and create a package. No package registration. We have a lot of > stuff in bsd.port.mk that could be reused - > fetch/checksum/dependencies. Writing them from scratch makes no sense. Well, the problem would be keeping bsd.xdev.mk in sync with bsd.port.mk. It would almost instantly go stale -- despite people's perceptions, a lot of changes do go into it. Fixing might be more tractable than you think, but probably only just a little :-) As observed earlier, pkgng will fix numerous sins in bsd.port.mk. mcl