The code listing 2.2 on http://www.gentoo.org/doc/en/gentoo-freebsd.xml should be wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-fbsd-20051005.tar.bz2 instead of just wget http://gentoo.osuosl.org/experimental/x86/freebsd/stage3-x86-fbsd-20051005.tar.bz2 Reproducible: Always Steps to Reproduce:
Also, you should really reorder code listing 2.2 to # cd /mnt/gfbsd/ # wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-fbsd-20051005.tar.bz2 # tar -jxvpf stage3-x86-fbsd-20051005.tar.bz2 There's no reason to download the stage to a ram drive that might not be big enough and copy it to another location, when it could be downloaded to the right location in the first place.
And to finish code listing 2.2 off, there's no reason to make a root/ dir, since it's in the tarball. Moving on to code listing 2.3, it should be /mnt/gfbsd/usr/local/portage since we're not it the chroot env yet, as the doc also states above (where it by the way should be "which you th[e]n extract to [/mnt/gfbsd]/usr/local/portage"). The directory doesn't exist however, so # mkdir /mnt/gfbsd/usr/local/portage is needed. I also wonder why /mnt/gfbsd is used instead of /mnt/gentoo, the dir is made on a ram disk anyway, and the latter makes the install closer to the normal procedure. Code listing 2.4: There is missing the step # cp /etc/resolv.conf /mnt/gfbsd/etc/ to make any resolving in the chroot work. Code listing 2.5: Setting CHOST in /etc/make.conf should not be necessary, as it is set in the profile. The /etc/make.conf from the lastest tarball (as of writing this) sets PORTDIR="/var/portage/cvs/gentoo-x86" which works, but differs from the normal location of /usr/portage. No reason for that. Deleting the line in /etc/make.conf sets PORTDIR to /usr/portage/ as it's in the profile. As alternative to code listing 2.6, the following could be used # cd / # wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2 # tar xjf portage-latest.tar.bz2 -C /usr/
Thanks for all that feedback Simon! After talking to Flameeyes on #gentoo-bsd, nearly all your changes have foun their way into the new doc, the only exception being CHOST, which Diego recommends to put into /etc/make.conf for completeness' sake.