* [gentoo-user] Math symbols with emerge -C
@ 2007-05-31 23:09 reader
2007-06-01 7:50 ` Albert Hopkins
0 siblings, 1 reply; 4+ messages in thread
From: reader @ 2007-05-31 23:09 UTC (permalink / raw
To: gentoo-user
I always stumble around endlessly whenever I attempt to use math
symbols in emerge commands.
To Neil B and others who have patiently explained this to me on
several occasions... I can only plead deep seated idiocy but I'm not
getting why this happens.
I want to `unmerge' (-C) versions of gentoo-sources prior to -2.6.20-r6
However this fails:
root # emerge -vpC "<"gentoo-sources-2.6.20-r6
>>> These are the packages that would be unmerged:
--- Couldn't find '<gentoo-sources-2.6.20-r6' to unmerge.
>>> No packages selected for removal by unmerge
==================================================
However the same command run in `install' mode works:
root # emerge -vp "<"gentoo-sources-2.6.20-r6
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] sys-kernel/gentoo-sources-2.6.20-r5 \
USE="-build -symlink" 42,570 kB
As expected the next lower package is offered.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Math symbols with emerge -C
2007-05-31 23:09 [gentoo-user] Math symbols with emerge -C reader
@ 2007-06-01 7:50 ` Albert Hopkins
[not found] ` <87myzkq9ld.fsf@newsguy.com>
0 siblings, 1 reply; 4+ messages in thread
From: Albert Hopkins @ 2007-06-01 7:50 UTC (permalink / raw
To: gentoo-user
On Thu, 2007-05-31 at 19:09 -0400, reader@newsguy.com wrote:
> I always stumble around endlessly whenever I attempt to use math
> symbols in emerge commands.
>
> To Neil B and others who have patiently explained this to me on
> several occasions... I can only plead deep seated idiocy but I'm not
> getting why this happens.
>
>
> I want to `unmerge' (-C) versions of gentoo-sources prior to -2.6.20-r6
>
> However this fails:
>
> root # emerge -vpC "<"gentoo-sources-2.6.20-r6
>
> >>> These are the packages that would be unmerged:
>
> --- Couldn't find '<gentoo-sources-2.6.20-r6' to unmerge.
> >>> No packages selected for removal by unmerge
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).
>
> ==================================================
>
> However the same command run in `install' mode works:
>
> root # emerge -vp "<"gentoo-sources-2.6.20-r6
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild NS ] sys-kernel/gentoo-sources-2.6.20-r5 \
> USE="-build -symlink" 42,570 kB
>
The "NS" indicates that this version (2.6.20-r5) is not installed, which
would make sense if the answer to the above question is yes.
e.g:
$ epm -q automake
automake-1.9.6-r2
automake-1.10
automake-1.7.9-r1
automake-1.8.5-r3
automake-1.5
automake-1.6.3
$ emerge -Cp '<automake-1.7'
>>> These are the packages that would be unmerged:
sys-devel/automake
selected: 1.5 1.6.3
protected: none
omitted: 1.9.6-r2 1.10 1.7.9-r1 1.8.5-r3
$ emerge -Cp '<automake-1.5'
>>> These are the packages that would be unmerged:
--- Couldn't find '<automake-1.5' to unmerge.
--
Albert W. Hopkins
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: Math symbols with emerge -C
[not found] ` <87myzkq9ld.fsf@newsguy.com>
@ 2007-06-01 10:42 ` Albert Hopkins
2007-06-01 19:05 ` reader
0 siblings, 1 reply; 4+ messages in thread
From: Albert Hopkins @ 2007-06-01 10:42 UTC (permalink / raw
To: gentoo-user
On Fri, 2007-06-01 at 04:59 -0500, reader@newsguy.com 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
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Math symbols with emerge -C
2007-06-01 10:42 ` [gentoo-user] " Albert Hopkins
@ 2007-06-01 19:05 ` reader
0 siblings, 0 replies; 4+ messages in thread
From: reader @ 2007-06-01 19:05 UTC (permalink / raw
To: gentoo-user
Albert Hopkins <marduk@gentoo.org> writes:
> 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
OK again. I hadn't soaked in that what was in those directories was
debris from builds and not the installed files.
Thanks
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-01 19:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-31 23:09 [gentoo-user] Math symbols with emerge -C reader
2007-06-01 7:50 ` Albert Hopkins
[not found] ` <87myzkq9ld.fsf@newsguy.com>
2007-06-01 10:42 ` [gentoo-user] " Albert Hopkins
2007-06-01 19:05 ` reader
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox