From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LQQAQ-0000O3-Or for garchives@archives.gentoo.org; Fri, 23 Jan 2009 17:50:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B449E02B2; Fri, 23 Jan 2009 17:49:45 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id 71024E02EF for ; Fri, 23 Jan 2009 17:49:45 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by sentinel.math.Princeton.EDU (Postfix) with ESMTP id 1859C2980C3 for ; Fri, 23 Jan 2009 12:49:45 -0500 (EST) X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_SOFTFAIL X-Spam-Check-By: sentinel.math.Princeton.EDU Received: from localhost.localdomain (HELO sentinel.math.Princeton.EDU) (127.0.0.1) by sentinel.math.Princeton.EDU (qpsmtpd/0.32) with ESMTP; Fri, 23 Jan 2009 12:49:41 -0500 Received: from math.Princeton.EDU (math.Princeton.EDU [128.112.18.16]) by sentinel.math.Princeton.EDU (Postfix) with ESMTP for ; Fri, 23 Jan 2009 12:49:41 -0500 (EST) Received: from math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by math.Princeton.EDU (8.13.8/8.13.8) with ESMTP id n0NHnf7Q029132 for ; Fri, 23 Jan 2009 12:49:41 -0500 Received: (from wwong@localhost) by math.Princeton.EDU (8.13.8/8.13.8/Submit) id n0NHnewA029129 for gentoo-user@lists.gentoo.org; Fri, 23 Jan 2009 12:49:40 -0500 X-Authentication-Warning: math.Princeton.EDU: wwong set sender to wwong@princeton.edu using -f Date: Fri, 23 Jan 2009 12:49:40 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] emerge world / --depclean infinite loop Message-ID: <20090123174940.GA28740@math.princeton.edu> References: <49bf44f10901230802r57a47db3x5ed552afdd6ec23a@mail.gmail.com> <20090123165639.GA21611@princeton.edu> <49bf44f10901230914h42b334a7yacdd10fee399f603@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49bf44f10901230914h42b334a7yacdd10fee399f603@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Archives-Salt: 66d1f587-2f70-4fb8-89a4-b94d0e12228e X-Archives-Hash: 31876d227e9854171769a27e8b1cf8f3 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.