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] repos.conf location w.r.t PORTAGE_CONFIGROOT
Date: Wed, 06 May 2015 22:45:42
Message-Id: 1430952335.27859.159.camel@transmode.se
In Reply to: Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT by Zac Medico
1 On Wed, 2015-05-06 at 15:16 -0700, Zac Medico wrote:
2 > On 05/06/15 14:57, Joakim Tjernlund wrote:
3 > > On Wed, 2015-05-06 at 14:36 -0700, Zac Medico wrote:
4 > > > On 05/06/15 14:30, Joakim Tjernlund wrote:
5 > > > > On Wed, 2015-05-06 at 13:30 -0700, Zac Medico wrote:
6 > > > > > On 05/06/15 13:22, Joakim Tjernlund wrote:
7 > > > > > > On Wed, 2015-05-06 at 12:54 -0700, Zac Medico wrote:
8 > > > > > > > On 05/06/15 12:41, Joakim Tjernlund wrote:
9 > > > > > > > > On Wed, 2015-05-06 at 19:13 +0000, Joakim Tjernlund wrote:
10 > > > > > > > > > On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote:
11 > > > > > > > > > > On 05/06/15 09:54, Joakim Tjernlund wrote:
12 > > > > > > > > > > > I am trying to rebuild an old cross sysroot and I got problems.
13 > > > > > > > > > > > I cannot make emerge to select my old ebuilds in an overlay over those
14 > > > > > > > > > > > in /usr/portage.
15 > > > > > > > > > > >
16 > > > > > > > > > > > What new is since last time I did this is /etc/portage/repos.conf/
17 > > > > > > > > > > > I suspect emerge always reads /etc/portage/repos.conf/ no matter
18 > > > > > > > > > > > what I set PORTAGE_CONFIGROOT / ROOT to ?
19 > > > > > > > > > > >
20 > > > > > > > > > > > Jocke
21 > > > > > > > > > > >
22 > > > > > > > > > >
23 > > > > > > > > > > It instantiates 2 config instances, one using /etc/portage/repos.conf
24 > > > > > > > > > > (for build time DEPEND) and another one using
25 > > > > > > > > > > $PORTAGE_CONFIGROOT/etc/portage/repos.conf (for run time {P,R}DEPEND).
26 > > > > > > > > > > You can see that it's joined with PORTAGE_CONFIGROOT in the
27 > > > > > > > > > > load_repository_config function:
28 > > > > > > > > > >
29 > > > > > > > > > > https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/repository/config.py?id=0f1911
30 > > > > > > > > > > 13cc
31 > > > > > > > > > > cd04
32 > > > > > > > > > > 9e11
33 > > > > > > > > > > fdbe
34 > > > > > > > > > > 73
35 > > > > > > > > > > 493eb1efbf4bf89e#n971
36 > > > > > > > > >
37 > > > > > > > > > I see, doesn't this prevent exactly what I want to do?
38 > > > > > > > > >
39 > > > > > > > > > I can't see why this should be needed, it only creates a mess, another example:
40 > > > > > > > > > I tried to specify exact version of my old binutils and while that worked, portage wanted
41 > > > > > > > > > to pull in a newer binutils-config from the hosts master gentoo repo and
42 > > > > > > > > > thus the build failed.
43 > > > > > > > > >
44 > > > > > > > > > If a someone really wants this behaviour, he can just add the hosts master repo
45 > > > > > > > > > in his PORTAGE_CONFIGROOT IMHO
46 > > > > > > > > >
47 > > > > > > >
48 > > > > > > > Maybe emerge --root-deps=rdeps is what you are looking for. This will
49 > > > > > > > cause it to ignore DEPEND.
50 > > > > > >
51 > > > > > > That is not the same is it? if I "emerge ncurses" it will build ncurses but still
52 > > > > > > take the ebuild from the hosts master since it is newer version.
53 > > > > > >
54 > > > > > > I realize now that I can change what repos are searched by using
55 > > > > > > PORTAGE_REPOSITORIES=/my/own/repos.conf/
56 > > > > > > but I still find the default behaviour very confusing and I don't see that it is useful.
57 > > > > >
58 > > > > > The idea is that you have separate repositories configured for each
59 > > > > > ROOT. If it's satisfying a build-time DEPEND that will be installed into
60 > > > > > ROOT=/, then it's supposed to use the repositories configured for ROOT=/.
61 > > > >
62 > > > > I see, but in my case I only install into my sysroot so I don't want this behaviour.
63 > > >
64 > > > So, why don't you use the --root-deps option?
65 > >
66 > > Just did(and --root-deps=rdeps too) and it didn't work, still wants to use
67 > > my newer hosts pkgs. :(
68 >
69 > It shouldn't do that. It sounds like maybe the [gentoo] config
70 > from/usr/share/portage/config/repos.conf is the source of your problems,
71 > since you $PORTAGE_CONFIGROOT config will always inherit that. Would
72 > that be consistent with your observations?
73
74 Moving that file out of the way changed things, now I got I profile error:
75 !!! Unable to parse profile: '/etc/portage/make.profile'
76 !!! ParseError: Parent 'gentoo:default/linux/amd64/13.0' not found:
77 '/var/lib/layman/transmode/profiles/gentoo64-server/parent'
78 !!! Your current profile is invalid. If you have just changed your profile
79 !!! configuration, you should revert back to the previous configuration.
80 !!! Allowed actions are limited to --help, --info, --search, --sync, and
81 !!! --version.
82
83 Which I think is a problem in my cross env.
84 Strange though that it fell into my hosts profile though.
85
86 Jocke

Replies

Subject Author
Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT Joakim Tjernlund <joakim.tjernlund@×××××××××.se>