On Fri, 12 Jun 2009 15:11:07 -0400
David <da...@pythontoo.com> 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.

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

Reply via email to