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 19:41:54
Message-Id: 1430941307.27859.116.camel@transmode.se
In Reply to: Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT by Joakim Tjernlund
1 On Wed, 2015-05-06 at 19:13 +0000, Joakim Tjernlund wrote:
2 > On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote:
3 > > On 05/06/15 09:54, Joakim Tjernlund wrote:
4 > > > I am trying to rebuild an old cross sysroot and I got problems.
5 > > > I cannot make emerge to select my old ebuilds in an overlay over those
6 > > > in /usr/portage.
7 > > >
8 > > > What new is since last time I did this is /etc/portage/repos.conf/
9 > > > I suspect emerge always reads /etc/portage/repos.conf/ no matter
10 > > > what I set PORTAGE_CONFIGROOT / ROOT to ?
11 > > >
12 > > > Jocke
13 > > >
14 > >
15 > > It instantiates 2 config instances, one using /etc/portage/repos.conf
16 > > (for build time DEPEND) and another one using
17 > > $PORTAGE_CONFIGROOT/etc/portage/repos.conf (for run time {P,R}DEPEND).
18 > > You can see that it's joined with PORTAGE_CONFIGROOT in the
19 > > load_repository_config function:
20 > >
21 > > https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/repository/config.py?id=0f191113cccd049e11fdbe
22 > > 73
23 > > 493eb1efbf4bf89e#n971
24 >
25 > I see, doesn't this prevent exactly what I want to do?
26 >
27 > I can't see why this should be needed, it only creates a mess, another example:
28 > I tried to specify exact version of my old binutils and while that worked, portage wanted
29 > to pull in a newer binutils-config from the hosts master gentoo repo and
30 > thus the build failed.
31 >
32 > If a someone really wants this behaviour, he can just add the hosts master repo
33 > in his PORTAGE_CONFIGROOT IMHO
34 >
35
36 Is there a way to make portage to prefer ebuilds from an overlay/other repo even if the master
37 repo has newer versions?
38
39 Jocke

Replies