Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
Date: Sat, 21 Sep 2013 11:46:48
Message-Id: 523D8725.2030007@gmail.com
In Reply to: Re: [gentoo-user] re: emerge --depclean [gentoo-sources] by "Randolph Maaßen"
1 On 09/21/2013 02:02 PM, Randolph Maaßen wrote:
2 > Hi,
3 >
4 > 2013/9/21 Alexander Kapshuk <alexander.kapshuk@×××××.com>:
5 >> emerge --depclean wants to remove the gentoo-sources for my old kernel
6 >> [sys-kernel/gentoo-sources-3.8.13] which I want to hang on to for the
7 >> time being.
8 >>
9 >> Is there a way to instruct emerge not to remove them?
10 >>
11 >> emerge(1)
12 >> Packages that are part of the world set will always be kept. They can be
13 >> manually added to this set with emerge --noreplace <atom>.
14 >>
15 >> If I understood the instruction above, 'emerge --noreplace
16 >> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
17 >> /var/lib/portage/world_sets, which it didn't seem to do.
18 > No, this it the wrong file. the file /var/lib/portage/world is THE
19 > world set, it contains all packages you emerged manually (and with
20 > --noreplace).
21 > The file /var/lib/portage/world_sets can contain the name of other
22 > sets that should be included into the world.
23 >
24 >> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
25 >> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
26 >> !!! Please check ebuild(5) for full details.
27 >>
28 >>
29 >> box0=; ls -l `pwd`/world*
30 >> -rw-r--r-- 1 root portage 920 Sep 20 20:45 /var/lib/portage/world
31 >> -rw-r--r-- 1 root portage 0 Sep 20 20:45 /var/lib/portage/world_sets
32 >>
33 >> Or is it a matter of defining something like this:
34 >> CONFIG_PROTECT_MASK="/usr/src/linux-3.8.13-gentoo"
35 >> in /etc/portage/make.conf?
36 >>
37 >>
38 >> Any pointers would be much appreciated.
39 >>
40 >
41 >
42 Understood.
43
44 Thanks.