From: Mike Kazantsev <mk.fraggod@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration?
Date: Thu, 11 Jun 2009 22:45:25 +0600	[thread overview]
Message-ID: <20090611224525.4467a4e9@coercion> (raw)
In-Reply-To: <58965d8a0906110922u39145b35w8850b1a2767c4b43@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]
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:
  [kernels]
  class = portage.sets.dbapi.OwnerSet
  world-candidate = False
  files = /usr/src
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply	other threads:[~2009-06-11 16:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 16:22 [gentoo-user] Can I exclude a package from --depclean's consideration? Paul Hartman
2009-06-11 16:45 ` Mike Kazantsev [this message]
2009-06-11 17:03   ` Boris Fersing
2009-06-11 17:06     ` Mike Kazantsev
2009-06-11 18:36   ` Paul Hartman
2009-06-12 19:11     ` David
2009-06-12 20:28       ` Mike Kazantsev
2009-06-12 20:54         ` David
2009-06-11 17:04 ` [gentoo-user] " Nikos Chantziaras
2009-06-11 18:28   ` Paul Hartman
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=20090611224525.4467a4e9@coercion \
    --to=mk.fraggod@gmail.com \
    --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