1 |
Mike Kazantsev wrote: |
2 |
> On Fri, 12 Jun 2009 15:11:07 -0400 |
3 |
> David <david@×××××××××.com> wrote: |
4 |
> |
5 |
> |
6 |
>> What would I add to /etc/portage/sets.conf to exclude gcc from depclean? |
7 |
>> thanks |
8 |
>> |
9 |
> |
10 |
> I'd add these to sets: |
11 |
> |
12 |
> [gcc-preserve] |
13 |
> class = portage.sets.shell.CommandOutputSet |
14 |
> command = /usr/local/sbin/gcc-list |
15 |
> |
16 |
> This to /usr/local/sbin/gcc-list: |
17 |
> |
18 |
> #!/bin/sh |
19 |
> for PKG in `ls -1 /var/db/pkg/sys-devel | grep -E '^gcc-[[:digit:].]+(-r.)?$'` |
20 |
> do echo '=sys-devel/'${i} |
21 |
> done |
22 |
> |
23 |
> And '@gcc-preserve' to /var/lib/portage/world_sets |
24 |
> |
25 |
> |
26 |
> Alternatively, you can define set as files in /usr/libexec/gcc: |
27 |
> |
28 |
> [gcc-preserve] |
29 |
> class = portage.sets.dbapi.OwnerSet |
30 |
> world-candidate = False |
31 |
> files = /usr/libexec/gcc |
32 |
> |
33 |
> Looks simplier, but somewhat dirty and probably a bit slower. |
34 |
> |
35 |
> |
36 |
Thanks Mike, |
37 |
I was hoping it was as simple as the kernel-sources example. I got |
38 |
caught a few months back by dep cleaning gcc :( I did not want to |
39 |
rebuild everything with the latest gcc at that time but my hand was |
40 |
forced at that point. |
41 |
-david |
42 |
|
43 |
-- |
44 |
Powered by Gentoo GNU/Linux |
45 |
http://linuxcrazy.com |