From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QJofe-0001mj-O1 for garchives@archives.gentoo.org; Tue, 10 May 2011 15:16:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7ED921C02B; Tue, 10 May 2011 15:14:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 50A201C02B for ; Tue, 10 May 2011 15:14:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D76BB1B40BC for ; Tue, 10 May 2011 15:14:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -3.158 X-Spam-Level: X-Spam-Status: No, score=-3.158 required=5.5 tests=[AWL=-0.559, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sq5Kvm0cJ2Hl for ; Tue, 10 May 2011 15:13:57 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 9EBD31B40B5 for ; Tue, 10 May 2011 15:13:57 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJodH-0007jy-LG for gentoo-user@gentoo.org; Tue, 10 May 2011 17:13:55 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2011 17:13:55 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2011 17:13:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Prevent depclean from removing Python-2.6? Date: Tue, 10 May 2011 15:13:41 +0000 (UTC) Message-ID: References: <201105101653.35456.alan.mckinnon@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-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/pre0.9.9-102 (Linux) X-Archives-Salt: X-Archives-Hash: d85c9d69ea641f552629dac4e5d8d589 On 2011-05-10, Alan McKinnon wrote: > Apparently, though unproven, at 16:40 on Tuesday 10 May 2011, Grant Edwards > did opine thusly: > >> I ran emerge --depclean the other day on one of my machines and it >> removed Python 2.6. I was using Python 2.6 as my "default" python, >> and depclean's removal of it broke a _lot_ of stuff. About a half >> day's worth of hassle later I had Python 2.6 re-installed and my >> system was again usable. >> >> In order to avoid the same circus on my other machines, how do I >> prevent emerge --depclean from removing Python 2.6? > > Put that slot in world: > >=dev-lang/python:2.6 > > I suppose there are better and more automagically elegant ways of doing it, > but this works. Thanks! (you need to leave out the '='). > I think the issue happens because portage does not take eselect > choices into account when building it's dep graph, it only uses the > DEPENDS in ebuilds. Apparently so. It seems like it ought to pay attention to eselect. If I've explicitly configured my system to use 2.6 instead of 2.7, removing 2.6 doesn't seem like a good thing... > You likely have nothing left that explicitly uses 2.6 and all the > ebuilds depend only on python 2 point something > > When you finally choose to remove python-2.6, you simply have to > emerge -C it and not rely on --depclean Yup. -- Grant Edwards grant.b.edwards Yow! I like the way ONLY at their mouths move ... They gmail.com look like DYING OYSTERS