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 <gentoo-user+bounces-96583-garchives=archives.gentoo.org@lists.gentoo.org>) id 1MEngq-00033j-2M for garchives@archives.gentoo.org; Thu, 11 Jun 2009 17:03:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22C47E0330; Thu, 11 Jun 2009 17:03:47 +0000 (UTC) Received: from mail-fx0-f213.google.com (mail-fx0-f213.google.com [209.85.220.213]) by pigeon.gentoo.org (Postfix) with ESMTP id D76A8E0330 for <gentoo-user@lists.gentoo.org>; Thu, 11 Jun 2009 17:03:46 +0000 (UTC) Received: by fxm9 with SMTP id 9so135872fxm.34 for <gentoo-user@lists.gentoo.org>; Thu, 11 Jun 2009 10:03:46 -0700 (PDT) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: boris@fersing.eu Received: by 10.204.52.197 with SMTP id j5mr2645932bkg.157.1244739826160; Thu, 11 Jun 2009 10:03:46 -0700 (PDT) In-Reply-To: <20090611224525.4467a4e9@coercion> References: <58965d8a0906110922u39145b35w8850b1a2767c4b43@mail.gmail.com> <20090611224525.4467a4e9@coercion> From: Boris Fersing <kernelsensei@gentoo.org> Date: Thu, 11 Jun 2009 19:03:31 +0200 X-Google-Sender-Auth: 39597cdc5a259305 Message-ID: <f9d564ad0906111003q6a3d164o457d8e7b3c56b627@mail.gmail.com> Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration? To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 09529b5b-adad-4288-8366-a0b1723dd669 X-Archives-Hash: 05119579cc8ab2b1030ee6eb74bf65a3 On Thu, Jun 11, 2009 at 18:45, Mike Kazantsev<mk.fraggod@gmail.com> wrote: > On Thu, 11 Jun 2009 11:22:41 -0500 > Paul Hartman <paul.hartman+gentoo@gmail.com> wrote: > >> "emerge --depclean" always wants to remove all but the most recent >> version of gentoo-sources. I read the manpage and can't figure out how >> to exclude this package. The manpage states: >> >> "Packages that are part of the world set will always be kept." >> >> However, if I have sys-kernel/gentoo-sources in world, it still wants >> to remove all but the most recent version of that package, which I >> think is the correct behavior... just not what I desire. > > It's kinda case of "italian strike" - doing the job to the letter ;) > > >> So, my question: Is there a way to tell depclean to never remove *any* >> version of gentoo-sources? > > That's where portage-2.2 sets find another use. > Just add following set to /usr/share/portage/config/sets.conf: > > =A0[kernels] > =A0class =3D portage.sets.dbapi.OwnerSet > =A0world-candidate =3D False > =A0files =3D /usr/src Hi, did you read the first lines of this file ? # WARNING: default set configuration, DO NOT CHANGE. # If you want to change anything redefine the relevant section in # /etc/portage/sets.conf. Any changes to this file will be lost on the next # portage update, and configuration errors here might upset portage in # unexpected ways. Please make all the changes in /etc/portage/ regards, Boris > > And append "@kernels" line to /var/lib/portage/world_sets > Now any installed (even with -1) kernel should be safe from ravenous > depclean. > > > -- > Mike Kazantsev // fraggod.net > --=20 42