Building BinToo

i'd like to share the knowledge and the files and settings i use to build BinToo with every body so if you want to build your own gentoo you can use them to get ride of the problems associated with USE flags and make.conf settings.

first extract the stage3 file to new formatted partition and the portage tree like this:
cd /new/part
tar -jxpf stage3-file.tar.bz2
tar -jxf portage-tree.tar.bz2 -C usr

next we need to prepare the new system for chrooting like this:
mount --bind /proc proc
mount --bind /dev dev
cp /etc/resolv.conf etc
nano -w etc/fstab #edit your mount points
nano -w etc/make.conf #you can use the following make.conf

---make.conf i use in the first stage of building the system:
CFLAGS="-Os -mtune=i486 -pipe"
CHOST="i486-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS='~x86'
FEATURES='buildpkg parallel-fetch'
EMERGE_DEFAULT_OPTS=" --with-bdeps y"
DISTDIR="/media/MH/gen2/distfiles"
PKGDIR="/media/MH/gen2/sys-pkgs"

------

Note that i use different folders to save the distfiles and the resulting binary packages so they will be out of the root partition .

now you can chroot to the new system like this:
chroot ./

set the root password by running:
passwd

update the portage cache and the system environment like this:
emerge --metadata && env-update && source /etc/profile

now i allways merge grub, gentoolkit, gentoo-sources and build the kernel by running:
emerge grub gentoolkit gentoo-sources && genkernel --symlink all

then do a bootstrap by running :
/usr/portage/scripts/bootstrap.sh

then do as the bootstrap advice you by running:
emerge -e system

optional: you can make a backup of your system now

To Be continued ...

about binaries

hello bro mohamed,
i have a question about the binaries in bintoo, can i install them in my gentoo ? and how?

thnx..

sure, you can

copy the packages folder from the DVD iso to the PKGDIR folder default is /usr/portage/packages the emerge -avk PKG should show [binary ] in front of the available binary pkgs.

or add these to your make.conf

PORTAGE_BINHOST="http://ftp-osl.osuosl.org/pub/bintoo/2007.3/packages/"

if you want to use the 2007.1 pkgs replace 2007.3 with 2007.1 .
at the end run:
emerge -avgk PKG should get the packages info. then print some thing like this:

[binary ] pkg-category/pkg-name USE="blah blah blah" nMB download.

just if the binpkg available.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.