Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root
Date: Thu, 22 Oct 2015 04:36:02
Message-Id: 562867A7.3010108@gentoo.org
In Reply to: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root by Joakim Tjernlund
1 On 10/21/2015 09:47 AM, Joakim Tjernlund wrote:
2 > I have enabled @sets and @profile in my own profile and if I add
3 > some pkg to either my new set or @profile in ROOT=PORTAGE_CONFIGROOT=/
4 > then emerge -aNDuv world notices this and pulls in the new pkg.
5 >
6 > Then I clone / to /my/new/root and add a pkg @profile or my set
7 > ROOT=/my/new/root PORTAGE_CONFIGROOT=/my/new/root emerge -aNDuv world nothing happens.
8 >
9 > This feels like @profile and @sets looks in ROOT=PORTAGE_CONFIGROOT=/
10 > instead of ROOT=PORTAGE_CONFIGROOT=/my/new/root
11 >
12 > if I in my new ROOT(/my/new/root) add pkg to the @system set it works.
13 >
14 > Does this make sense to you?
15 >
16 > Jocke
17 >
18
19 Are there any special details about your set configuration that we might
20 need to consider? The following strace command seems to show that
21 load_emerge_config uses the correct world file when the ROOT variable is
22 set:
23
24 $ ROOT=/mnt/gentoo strace python -c 'from _emerge.actions import
25 load_emerge_config;
26 load_emerge_config().target_config.setconfig.getSetAtoms("world")' 2>&1
27 | grep world
28 stat("/usr/lib64/python3.4/site-packages/_emerge/create_world_atom.py",
29 {st_mode=S_IFREG|0644, st_size=4414, ...}) = 0
30 stat("/usr/lib64/python3.4/site-packages/_emerge/create_world_atom.py",
31 {st_mode=S_IFREG|0644, st_size=4414, ...}) = 0
32 open("/usr/lib64/python3.4/site-packages/_emerge/__pycache__/create_world_atom.cpython-34.pyc",
33 O_RDONLY|O_CLOEXEC) = 4
34 read(4, "# required by @world (argument)\n"..., 8192) = 8192
35 read(4, "# required by @world (argument)\n"..., 8192) = 8192
36 stat("/mnt/gentoo/var/lib/portage/world", {st_mode=S_IFREG|0644,
37 st_size=14364, ...}) = 0
38 stat("/mnt/gentoo/var/lib/portage/world", {st_mode=S_IFREG|0644,
39 st_size=14364, ...}) = 0
40 open("/mnt/gentoo/var/lib/portage/world", O_RDONLY|O_CLOEXEC) = 4
41 stat("/mnt/gentoo/var/lib/portage/world_sets", {st_mode=S_IFREG|0644,
42 st_size=0, ...}) = 0
43 stat("/mnt/gentoo/var/lib/portage/world_sets", {st_mode=S_IFREG|0644,
44 st_size=0, ...}) = 0
45 open("/mnt/gentoo/var/lib/portage/world_sets", O_RDONLY|O_CLOEXEC) = 4
46 stat("/mnt/gentoo/var/lib/portage/world", {st_mode=S_IFREG|0644,
47 st_size=14364, ...}) = 0
48 stat("/mnt/gentoo/var/lib/portage/world", {st_mode=S_IFREG|0644,
49 st_size=14364, ...}) = 0
50 open("/mnt/gentoo/var/lib/portage/world", O_RDONLY|O_CLOEXEC) = 4
51 stat("/mnt/gentoo/var/lib/portage/world_sets", {st_mode=S_IFREG|0644,
52 st_size=0, ...}) = 0
53 stat("/mnt/gentoo/var/lib/portage/world_sets", {st_mode=S_IFREG|0644,
54 st_size=0, ...}) = 0
55 open("/mnt/gentoo/var/lib/portage/world_sets", O_RDONLY|O_CLOEXEC) = 4
56 --
57 Thanks,
58 Zac

Replies

Subject Author
Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root Joakim Tjernlund <joakim.tjernlund@×××××××××.se>