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 1MFDlW-0002Gi-TD for garchives@archives.gentoo.org; Fri, 12 Jun 2009 20:54:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47E51E031E; Fri, 12 Jun 2009 20:54:21 +0000 (UTC) Received: from fmailhost04.isp.att.net (fmailhost04.isp.att.net [207.115.11.54]) by pigeon.gentoo.org (Postfix) with ESMTP id 13695E031E for ; Fri, 12 Jun 2009 20:54:21 +0000 (UTC) Received: from [192.168.0.108] (adsl-065-012-210-216.sip.bct.bellsouth.net[65.12.210.216]) by isp.att.net (frfwmhc04) with ESMTP id <20090612205420H04006tbdke>; Fri, 12 Jun 2009 20:54:20 +0000 X-Originating-IP: [65.12.210.216] Message-ID: <4A32C07B.3050500@pythontoo.com> Date: Fri, 12 Jun 2009 16:54:19 -0400 From: David User-Agent: Thunderbird 2.0.0.21 (X11/20090523) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration? References: <58965d8a0906110922u39145b35w8850b1a2767c4b43@mail.gmail.com> <20090611224525.4467a4e9@coercion> <58965d8a0906111136g2dda30c2n1494868bbe8df26b@mail.gmail.com> <4A32A84B.2000008@pythontoo.com> <20090613022813.5e5d600d@coercion> In-Reply-To: <20090613022813.5e5d600d@coercion> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b3711d11-e37a-4e33-bebb-e17dd0e6799c X-Archives-Hash: c3387d700952ed419c655e5fc38a0001 Mike Kazantsev wrote: > On Fri, 12 Jun 2009 15:11:07 -0400 > David wrote: > > >> What would I add to /etc/portage/sets.conf to exclude gcc from depclean? >> thanks >> > > I'd add these to sets: > > [gcc-preserve] > class = portage.sets.shell.CommandOutputSet > command = /usr/local/sbin/gcc-list > > This to /usr/local/sbin/gcc-list: > > #!/bin/sh > for PKG in `ls -1 /var/db/pkg/sys-devel | grep -E '^gcc-[[:digit:].]+(-r.)?$'` > do echo '=sys-devel/'${i} > done > > And '@gcc-preserve' to /var/lib/portage/world_sets > > > Alternatively, you can define set as files in /usr/libexec/gcc: > > [gcc-preserve] > class = portage.sets.dbapi.OwnerSet > world-candidate = False > files = /usr/libexec/gcc > > Looks simplier, but somewhat dirty and probably a bit slower. > > Thanks Mike, I was hoping it was as simple as the kernel-sources example. I got caught a few months back by dep cleaning gcc :( I did not want to rebuild everything with the latest gcc at that time but my hand was forced at that point. -david -- Powered by Gentoo GNU/Linux http://linuxcrazy.com