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 1MFDOm-0006Mi-R7 for garchives@archives.gentoo.org; Fri, 12 Jun 2009 20:30:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70327E0730; Fri, 12 Jun 2009 20:30:51 +0000 (UTC) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by pigeon.gentoo.org (Postfix) with ESMTP id 306F1E0730 for ; Fri, 12 Jun 2009 20:30:51 +0000 (UTC) Received: by fxm5 with SMTP id 5so383766fxm.34 for ; Fri, 12 Jun 2009 13:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=/MgAznxupTJmwmfQ3meuniZAtehJCqFc6cS6lOfViA0=; b=olylQT8bcLzjY//VrSr+LmJGYi6s2FaOQ6yneUibSa2/uHtNdZAEJM9HT8a3hDu4JP PBRgGPSl3ng8/xtAs+6JsaCKvRCZleo/jBfxhtfi4UoUBZViPYy6M6fmBvP24fItQqo9 8dAVANtDRXCRnAcbE2Q9+VcFvO5gUqxWgHk5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=qmkPAobYmuc7fuqP+RVa/EprDXSsPceqIRoq+3ebtc1gLy9CmyLyaThZZuiMQlF58u eS+HUllcQMpC4ijF6EFZMUlshjaosxjJ5P/4NjiQa9/MfgJS4GbayN9+QkXWT4l3BZhc hL+Soqcp8t8Is8vzuCDAEhgWshmL4BzLBsfx0= Received: by 10.103.169.18 with SMTP id w18mr2069683muo.73.1244838650405; Fri, 12 Jun 2009 13:30:50 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id j10sm1190416mue.59.2009.06.12.13.30.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 13:30:49 -0700 (PDT) Date: Sat, 13 Jun 2009 02:28:13 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration? Message-ID: <20090613022813.5e5d600d@coercion> In-Reply-To: <4A32A84B.2000008@pythontoo.com> References: <58965d8a0906110922u39145b35w8850b1a2767c4b43@mail.gmail.com> <20090611224525.4467a4e9@coercion> <58965d8a0906111136g2dda30c2n1494868bbe8df26b@mail.gmail.com> <4A32A84B.2000008@pythontoo.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/AobfmiaKJBCw5h0ce=WZBME"; protocol="application/pgp-signature" X-Archives-Salt: 44f8c9a2-a177-43b6-8b40-7fa152a2d107 X-Archives-Hash: 2876fa1dd69ca8534fdd757525909915 --Sig_/AobfmiaKJBCw5h0ce=WZBME Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 =3D portage.sets.shell.CommandOutputSet command =3D /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 '=3Dsys-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 =3D portage.sets.dbapi.OwnerSet world-candidate =3D False files =3D /usr/libexec/gcc Looks simplier, but somewhat dirty and probably a bit slower. --=20 Mike Kazantsev // fraggod.net --Sig_/AobfmiaKJBCw5h0ce=WZBME Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoyumQACgkQASbOZpzyXnEHuwCeIFd6Cvuw+/9uD66+np4ckJlN zmsAoJOI76MKNnqJ/+MWeO7aXYoR/oob =0sQa -----END PGP SIGNATURE----- --Sig_/AobfmiaKJBCw5h0ce=WZBME--