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 1QJoMC-0008FJ-5k for garchives@archives.gentoo.org; Tue, 10 May 2011 14:56:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8BCDE0439; Tue, 10 May 2011 14:54:26 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 60023E0439 for ; Tue, 10 May 2011 14:54:26 +0000 (UTC) Received: by ewy8 with SMTP id 8so2245199ewy.40 for ; Tue, 10 May 2011 07:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=BSf/Zyp/QeVPASnz36QzXzm5Oqexw5gjYbE81GkMx9k=; b=RE4RBzCMJ/309B0s9nFUGx9ihyBa+i/fdmSc2uaDSZjStxJwhIdCj6JhqZk8ru+ZJw CV4RAuIVrrfbK3yzORgKc73hGUZ8Vyv3brJOqykdir35Drk8g9u6D6i1IISJjgvUtdzx P60oWdNShvgkqcWOw/ewRqjkRnaA0/VXTFPDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=vZPdbagCs1m5MFCAQoPMvuLi5z636iVSax91CkWTKkJDyPrWO8g/56/TCbMsPX2J7/ gX6zadJKWFqm2qiHUMSsc5DoX/XkVjtTQpoZu4KkBzPZ4reAV8j3c7/Ll2NSlKozPwdf pyJeBhkLrBPWtTrCslgWHkUenshRxwaAe/Tak= Received: by 10.14.53.134 with SMTP id g6mr3562959eec.6.1305039265561; Tue, 10 May 2011 07:54:25 -0700 (PDT) Received: from nazgul.localnet (196-215-114-244.dynamic.isadsl.co.za [196.215.114.244]) by mx.google.com with ESMTPS id s62sm4380485eea.10.2011.05.10.07.54.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 07:54:24 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Prevent depclean from removing Python-2.6? Date: Tue, 10 May 2011 16:53:34 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.38-ck; KDE/4.6.3; x86_64; ; ) References: In-Reply-To: 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="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105101653.35456.alan.mckinnon@gmail.com> X-Archives-Salt: X-Archives-Hash: fcbb8aa2e875ede951da5f44565fa1fc 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. 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. 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 -- alan dot mckinnon at gmail dot com