Mike Kazantsev wrote:
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.
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