Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] building a binary distribution
Date: Mon, 20 Nov 2006 16:49:01
In Reply to: [gentoo-user] building a binary distribution by Sathish Vasudevaiah
1 Hi,
3 On Mon, 20 Nov 2006 21:38:52 +0000
4 Sathish Vasudevaiah <svholla@××××.net> wrote:
6 > As the mythtv box is very slow for compilations, is it possible to
7 > build a binary distribution for that configuration on a different
8 > fast machine ? Last time (Oct.2005) when the stage3 install was done,
9 > I had to put the CFLAGS as "march=i586 -m3dnow" for a stable system.
10 > How to do that in a binary distribution build?
12 On the machine that builds the binary distribution. I used to have a
13 chroot'ed gentoo on my "big iron" in which I maintained an unconfigured
14 Gentoo as binary distribution for some other machines. Later I realized
15 I didn't need ultra-fancy CFLAGs optimization, so I'm now using the
16 Gentoo system that is the main OS on that "big iron" for providing
17 binary packages, trading off a few CPU cycles for not doing all
18 possible optimization.
20 You have many options, but it certainly depends on what machines you
21 have for doing the compilation work. If their architecture doesn't
22 match that of the targeted machine, you can do cross-compiling, but
23 don't expect it to be an easy thing. If, however, architectures do
24 match (x64 is an exception, as it will run x86 code), you can:
25 - create a binary distribution in a chroot,
26 - use the OS on the big iron to provide binary packages (CFLAGs must be
27 set to lowest common denominator),
28 - mount the slow machine's filesystem on the fast machine (e.g. using
29 NFS) and chroot into it and update (OK, this won't necessarily create
30 a binary distribution).
32 -hwh
33 --
34 gentoo-user@g.o mailing list