Gentoo Archives: gentoo-portage-dev

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: "gentoo-portage-dev@l.g.o" <gentoo-portage-dev@l.g.o>
Subject: Re: [gentoo-portage-dev] cross emerge pulls in my hosts gentoo repo
Date: Fri, 23 Oct 2015 07:14:06
Message-Id: 1445584436.31293.129.camel@transmode.se
In Reply to: Re: [gentoo-portage-dev] cross emerge pulls in my hosts gentoo repo by Zac Medico
1 On Thu, 2015-10-22 at 18:58 -0700, Zac Medico wrote:
2 > On 10/22/2015 12:24 AM, Joakim Tjernlund wrote:
3 > > In my cross sysroot I have:
4 > > [DEFAULT]
5 > > main-repo = tm-cusfpv3
6 > >
7 > > [tm-cusfpv3]
8 > > location = /usr/local/portage/tm-cusfpv3/
9 > > masters =
10 > > priority = 500
11 > > auto-sync = no
12 > >
13 > > Still "sudo powerpc-g2.20-linux-gnu-emerge -d -ep sys-libs/pam" pulls in
14 > > my hosts gentoo repo:
15 >
16 > Note that emerge -e has known issues with ROOT:
17 >
18 > https://bugs.gentoo.org/show_bug.cgi?id=239114
19 >
20 > > ....
21 > > (sys-libs/ncurses-5.9-r5:0/5::tm-cusfpv3, installed in '/usr/powerpc-g2.20-linux-gnu/') (no children)
22 > > (sys-libs/pam-1.2.1:0/0::tm-cusfpv3, ebuild scheduled for merge to '/usr/powerpc-g2.20-linux-gnu/')
23 > > depends on
24 > > (sys-auth/pambase-20150213:0/0::tm-cusfpv3, ebuild scheduled for merge to '/usr/powerpc-g2.20-linux
25 > > -gnu/')
26 > > (runtime_post)
27 > > (virtual/libintl-0-r2:0/0::gentoo, ebuild scheduled for merge to '/usr/powerpc-g2.20-linux-gnu/')
28 > > (runtime)
29 > > ...
30 > >
31 > > feels much like there is a hardcoded search for gentoo
32 >
33 > No, there's nothing hardcoded about the gentoo repo.
34 >
35 > > and it will even fallback
36 > > to my hosts /etc/portage/repos.conf
37 >
38 > Yes, but only for DEPEND (also HDEPEND if you use EAPI 5-hdepend) which
39
40 I am not using EAPI 5-hdepend
41
42 > is installed to ROOT=/ by default (unless you use the --root-deps option).
43
44 I am, crossdev's emerge wrapper uses emerge --root-deps=rdeps
45
46 >
47 > > Both ROOT and PORTAGE_CONFIGROOT are set to point at my cross sysroot
48 >
49 > Since ROOT=/ is used to satisfy DEPEND, the configuration for
50 > PORTAGE_CONFIGROOT=/ is still loaded even when you have set ROOT and
51 > PORTAGE_CONFIGROOT to some other location.
52
53 hmm, this is very confusing. As is powerpc-g2.20-linux-gnu-emerge will pull
54 the virtual/libintl-0-r2 into my sysroot because it is newer than what I have in
55 my local gentoo repo config. This should not happen I think when using --root-deps=rdeps
56 or --root-deps only, it will break the sysroot sooner or later.
57
58 Jocke