Archive

Archive for October 12th, 2007

Turning a simple chroot into a binpkg repository

October 12th, 2007

OK, since Alex asked me last Sunday what exactly needs to be done to turn a simple chroot (or even a bloody box) into a binpkg producing environment, here’s a little howto ….

First, lets start from a freshly unpacked stage3.

catalyst/x86 stage3-amd64-hardened # chroot . /bin/bash --login
# Now, make sure you turn on FEATURES=buildpkg (and setup anything else you need, like CFLAGS, LDFLAGS, whatever)
linux # echo 'FEATURES="buildpkg"' >> /etc/make.conf

With that single change you’re basically nearly finished with setting up the whole thing, the remaining things are just

  1. Making sure the binary packages get to a web-enabled (either ftp or http) box, from where you’re going to fetch the binary packages to their target
  2. Make sure you use binary packages on the target systems by default

But first, we’re gonna need to emerge something within that freshly created build chroot.

# Let's emerge some packages
linux # emerge -e world -q
... (some minutes/hours/days later)
linux #

Read more…

Gentoo, Life ,