Source tree and ports tree on Linux file system?
freebsd at edvax.de
Thu Nov 14 14:25:35 UTC 2013
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).
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions