Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Math symbols with emerge -C
Date: Fri, 01 Jun 2007 10:50:05
Message-Id: 1180694568.5404.19.camel@blackwidow.nbk
1 On Fri, 2007-06-01 at 04:59 -0500, reader@×××××××.com wrote:
2
3 > > Question: do you have a gentoo-sources less than 2.6.20-r6 installed?
4 > > If not, then the output is appropriate (can't unmerge what you haven't
5 > > merged).
6 > >
7 >
8 > Yikes... I think you may have it, since `eix -I' reports:
9 >
10 > [...]
11 > Installed versions: 2.6.20-r6(2.6.20-r6))07:51:05 04/16/07()build symlink(
12 > Homepage: http://dev.gentoo.org/~dsd/genpatches
13 > Description: Full sources including the Gentoo patchset for the 2.6 kernel tree
14 >
15
16 I don't know eix, but the output seems to indicate that the only version
17 of gentoo-sources you have installed is 2.6.20-r6.
18
19 > I got the idea of emerge -C from the output of `ls -F /usr/src'
20 > CONFIG-linux-2.6.20-gentoo-r6 linux-2.6.17-gentoo-r8/
21 > CONFIG-orig-020707 linux-2.6.19-gentoo-r4/
22 > linux@ linux-2.6.20-gentoo-r6/
23 >
24
25 But that's totally irrelevant as to whether you have other versions of
26 gentoo-sources installed. All that probably indicates is that you *had*
27 them installed at one time, and probably unmerged them. The directories
28 likely still exist because other files exist in those directories that
29 were not part of the package (object files, .config files, depend files,
30 etc). When you unmerge a package it only removes the files belonging to
31 that package. If a directory was created by a package, but is not empty
32 when that package removes it's files, then portage does not remove that
33 directory (for fear of deleting something you wanted). If you don't
34 want it then, e.g.
35
36 # ls -a /usr/src/linux-2.6.17-gentoo-r8 |less
37 # rm -rf /usr/src/linux-2.6.17-gentoo-r8
38
39
40 > Note the earlier version trees at that address.
41 >
42 > I haven't installed or downloaded kernel sources outside of emerge
43 > (far as I can remember) so those are likely installed by emerge.
44 >
45 > My understanding of:
46 > root # emerge -vpC "<"gentoo-sources-2.6.20-r6
47 > is that it should uninstall any version less than 2.6.20-r6.
48 >
49
50 > Is that true or does that command only target the immediately prior
51 > version?
52 >
53
54 It will uninstall any *installed* version less than 2.6.20-r6.
55
56 > A little further testing shows that using an exact target also fails:
57 > root # emerge -vCp "="gentoo-sources-2.6.19-r4
58 >
59 > >>> These are the packages that would be unmerged:
60 >
61 > --- Couldn't find '=gentoo-sources-2.6.19-r4' to unmerge.
62 >
63 > So apparently emerge is not aware of the earlier versions in /usr/src.
64 >
65 Again, because apparently there is no earlier version installed (see
66 your eix output).
67 --
68 Albert W. Hopkins
69
70 --
71 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Math symbols with emerge -C reader@×××××××.com