From owner-freebsd-questions@FreeBSD.ORG Thu Nov 14 14:25:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70F8D15A for ; Thu, 14 Nov 2013 14:25:35 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38EF62F1B for ; Thu, 14 Nov 2013 14:25:35 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id A8CC0277FA; Thu, 14 Nov 2013 15:25:33 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rAEEPLaK002038; Thu, 14 Nov 2013 15:25:21 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 14 Nov 2013 15:25:21 +0100 From: Polytropon To: "Thomas Mueller" Subject: Re: Source tree and ports tree on Linux file system? Message-Id: <20131114152521.3bdf5d75.freebsd@edvax.de> In-Reply-To: <62.0E.02506.E30B4825@cdptpa-oedge01> References: <62.0E.02506.E30B4825@cdptpa-oedge01> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 14:25:35 -0000 On Thu, 14 Nov 2013 11:13:02 +0000, Thomas Mueller wrote: > Can FreeBSD build from source with source tree on Linux ext2fs > partition, and subsequently compile ports from such partition, > using USB-stick installation of FreeBSD 9.x? > > That would be useful if FreeBSD Ethernet driver doesn't work. > > This is mainly a matter of curiosity, since I used a NetBSD-current > amd64 installation, where the Ethernet driver worked, with > subversion built from pkgsrc. > > In this latter case, file system was ffsv2 aka UFS2. I think the /usr/src and /usr/ports tree can be "read only" when they are "sourced" for building purposes. It's just important where /usr/obj and the working directories for stuff from /usr/ports are mapped to. If you have more than enough RAM, you can make a memory disk and locate them there. Otherwise, using a UFS partition (wherever it is actually located) sounds better. The ports collection allows setting a "working directory prefix" to move the creation of files out of /usr/ports. Pay attention to also deal with /usr/ports/distfiles (where the source archives are stored) and /usr/ports/packages (if you're going to build packages). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...