From: Willie Wong <wwong@princeton.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerge world / --depclean infinite loop
Date: Fri, 23 Jan 2009 12:49:40 -0500 [thread overview]
Message-ID: <20090123174940.GA28740@math.princeton.edu> (raw)
In-Reply-To: <49bf44f10901230914h42b334a7yacdd10fee399f603@mail.gmail.com>
On Fri, Jan 23, 2009 at 09:14:13AM -0800, Grant wrote:
> >> One of my systems with totally empty package.* files wants to emerge
> >> hardened-sources-2.6.25-r13 as it should, but --depclean wants to:
> >
> > How do you determine this? (I mean the "as it should" part?)
>
> I just mean 2.6.25-r13 is the latest amd64 version so it should be installed.
>
> > Are you running ~ or stable?
>
> Stable.
>
> >> >>> These are the packages that would be unmerged:
> >>
> >> sys-kernel/hardened-sources
> >> selected: 2.6.25-r13
> >> protected: none
> >> omitted: 2.6.27-r3
> >>
> >> If I do that, emerge world just wants to emerge it again. Does anyone
> >> know how to fix this?
> >
> > If you remove it, what does emerge -pvt say?
>
> This is right after running emerge --depclean which removed
> hardened-sources-2.6.25-r13:
>
> # emerge -pvt hardened-sources
>
> These are the packages that would be merged, in reverse order:
>
> Calculating dependencies... done!
> [ebuild NS ] sys-kernel/hardened-sources-2.6.25-r13 [2.6.27-r3]
> USE="-build -symlink" 0 kB
So the question is, basically, why do you have 2.6.27-r3 installed? It
is ~amd64. Basically the problem is the following:
a) emerge -pvt hardened-sources wants to emerge the "best" version
available, which with your amd64 keyword is 2.6.25-r13. For some
reason you have 2.6.27-r3 installed. Now, in many other packages,
this will just cause the package to downgrade. The kernel, however,
have each version individually slotted, so the downgrade will NOT
remove the version that is, strictly speaking, not allowed to be on
your system.
b) emerge --depclean defaults to behaving to unmerging all but the
highest version number in the kernel.
You have three choices that I can think of.
i) explicitly specify the version of hardened-sources you want to keep
in your world file, that way --depclean will not remove any kernel
versions that is specified in world.
ii) unmerge 2.6.27-r3, that way 2.6.25-r13 becomes the most recent
version and will not be unmerged
iii) keyword 2.6.27-r3, that way the "best" available version becomes
2.6.27-r3 and emerge -pvt will not tell you to merge 2.6.25-r13
W
--
Willie W. Wong wwong@math.princeton.edu
408 Fine Hall, Department of Mathematics, Princeton University, Princeton
A mathematician's reputation rests on the number of bad proofs he has given.
next prev parent reply other threads:[~2009-01-23 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 16:02 [gentoo-user] emerge world / --depclean infinite loop Grant
2009-01-23 16:56 ` Willie Wong
2009-01-23 17:14 ` Grant
2009-01-23 17:49 ` Willie Wong [this message]
2009-01-23 17:56 ` Grant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090123174940.GA28740@math.princeton.edu \
--to=wwong@princeton.edu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox