Gentoo Archives: gentoo-embedded

From: Dave Bender <codehero@×××××.com>
To: Ned Ludd <solar@g.o>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Emerging into SYSROOT causes packages to install in host system
Date: Mon, 28 Apr 2008 17:29:41
Message-Id: 1fe498980804281029m36874a83yba52aba5d456f6fd@mail.gmail.com
In Reply to: Re: [gentoo-embedded] Emerging into SYSROOT causes packages to install in host system by Ned Ludd
1 Ned,
2 That is exactly the behaviour I see when I try to emerge other
3 packages like Xorg or cups on my server system. A year ago, I heard
4 the workaround is to determine all dependencies of a package and then
5 emerge each one with no-deps. That doesn't seem to be in the handbook
6 however.
7
8 Dave
9
10 On Mon, Apr 28, 2008 at 12:54 PM, Ned Ludd <solar@g.o> wrote:
11 >
12 >
13 > On Mon, 2008-04-28 at 05:45 -0400, Mike Frysinger wrote:
14 > > On Sunday 27 April 2008, Dave Bender wrote:
15 > > > I am attempting to cross compile x86 packages on an x86_64 host. In
16 > > > particular, when I attempt to emerge baselayout-2 into my SYSROOT path,
17 > > > emerge wants to emerge baselayout-2 into my host system. PORTAGE_CONFIGROOT
18 > > > is also set to the SYSROOT, so I do not understand why for example,
19 > > > package.mask on my host system is taken into account at all when emerge
20 > > > determines dependencies.
21 > > > I am following the instructions in Chapter 5 of the Embedded Gentoo
22 > > > Handbook to the letter and do not understand why this behaviour is
23 > > > occurring.
24 > >
25 > > please post the exact commands as well as resulting output. us guessing at
26 > > what exactly you're doing simply causes confusion and wastes yours and our
27 > > time.
28 >
29 > Mike, actually I think I know the bug he is hitting.
30 > If portage sees that you have a dep not installed on / even if you pass
31 > ROOT=/somedir SYSCONFIG=/usr/$CTARGET ARCH=arm CHOST=arm-something
32 > emerge -pvq someapp ; you will get
33 > [ebuild N ] app-foo/bar
34 > [ebuild N ] app-foo/bar $ROOT
35 >
36 > So if you are using a wrapper and blindly start merging.. Cross compiled
37 > shit will end up on / despite you not asking for it. Zac says this is
38 > current expected behavior but I'd outright call it the most fscked up
39 > portage behavior ever along with the recent INSTALL_MASK= no longer
40 > working when using -K
41 >
42 >
43 --
44 gentoo-embedded@l.g.o mailing list

Replies