On Fri, 2007-06-01 at 04:59 -0500, [EMAIL PROTECTED] wrote:

> > Question: do you have a gentoo-sources less than 2.6.20-r6 installed?
> > If not, then the output is appropriate (can't unmerge what you haven't
> > merged).
> >
> 
> Yikes... I think you may have it, since `eix -I'  reports:
> 
>     [...]
>      Installed versions:  2.6.20-r6(2.6.20-r6))07:51:05 04/16/07()build 
> symlink(
>      Homepage:            http://dev.gentoo.org/~dsd/genpatches
>      Description:         Full sources including the Gentoo patchset for the 
> 2.6 kernel tree
> 

I don't know eix, but the output seems to indicate that the only version
of gentoo-sources you have installed is 2.6.20-r6.

> I got the idea of emerge -C from the output of `ls -F /usr/src'
> CONFIG-linux-2.6.20-gentoo-r6  linux-2.6.17-gentoo-r8/
> CONFIG-orig-020707             linux-2.6.19-gentoo-r4/
> linux@                         linux-2.6.20-gentoo-r6/
> 

But that's totally irrelevant as to whether you have other versions of
gentoo-sources installed.  All that probably indicates is that you *had*
them installed at one time, and probably unmerged them.  The directories
likely still exist because other files exist in those directories that
were not part of the package (object files, .config files, depend files,
etc). When you unmerge a package it only removes the files belonging to
that package.  If a directory was created by a package, but is not empty
when that package removes it's files, then portage does not remove that
directory (for fear of deleting something you wanted).  If you don't
want it then, e.g.

  # ls -a /usr/src/linux-2.6.17-gentoo-r8 |less
  # rm -rf /usr/src/linux-2.6.17-gentoo-r8

 
> Note the earlier version trees at that address.
> 
> I haven't installed or downloaded kernel sources outside of emerge
> (far as I can remember) so those are likely installed by emerge.
> 
> My understanding of:  
>    root # emerge -vpC    "<"gentoo-sources-2.6.20-r6
> is that it should uninstall any version less than 2.6.20-r6.
> 

> Is that true or does that command only target the immediately prior
> version?
> 

It will uninstall any *installed* version less than 2.6.20-r6.

> A little further testing shows that using an exact target also fails:
>   root # emerge -vCp "="gentoo-sources-2.6.19-r4
> 
>   >>> These are the packages that would be unmerged:
> 
>   --- Couldn't find '=gentoo-sources-2.6.19-r4' to unmerge.
> 
> So apparently emerge is not aware of the earlier versions in /usr/src.
> 
Again, because apparently there is no earlier version installed (see
your eix output).
--
Albert W. Hopkins

-- 
[EMAIL PROTECTED] mailing list

Reply via email to