Gentoo Archives: gentoo-dev

From: Luca Barbato <lu_zero@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [GSoC2012] Cross Container Support Project
Date: Sat, 24 Mar 2012 20:58:30
Message-Id: 4F6E3525.3070402@gentoo.org
In Reply to: Re: [gentoo-dev] [GSoC2012] Cross Container Support Project by Brian Harring
1 On 23/03/12 04:16, Brian Harring wrote:
2 > On Fri, Mar 23, 2012 at 01:46:17PM +0300, Alexey Shvetsov wrote:
3 >> Hi!
4 >>
5 >> Well i have 2 arm lxc containers on amd64 machine. Its works good if
6 >> qemu support most of needed cross arch instructions
7 >
8 > I'd be curious how much of that is native, vs emulated. The hybrid
9 > approach of scratchbox/obs has some definite gains.
10 >
11 > If we had a clean way to mark which can be native (toolchain), the
12 > perf gain is definitely worth the work...
13
14 the rough part is mostly making so portage knows the paths and have the
15 bind-mount game working, the alternative way is to build the native part
16 by unpacking the cross packages and the build system packages there
17
18
19 so
20
21 / <- emulated
22 /etc/ld.so.conf.d/native
23 /usr/${nativehost}/
24 /usr/${emulatedhost}/
25
26 and then you need to trick portage a bit
27
28 Sounds gory already? =)
29
30 lu
31
32 --
33
34 Luca Barbato
35 Gentoo/linux
36 http://dev.gentoo.org/~lu_zero