Gentoo Archives: gentoo-portage-dev

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

Replies

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