1 |
Jeremy Huddleston <eradicator@g.o> posted |
2 |
1E2EC852-245D-4E9A-ADC5-9C8F08ECEF92@g.o, excerpted below, on Tue, |
3 |
30 May 2006 12:43:34 -0700: |
4 |
|
5 |
> I had a few cycles last |
6 |
> week, so I fixed up the eselect-compiler ebuild to better handle the |
7 |
> transition from gcc-config and updated toolchain.eclass to update all |
8 |
> toolchains for the profile (ie it'll update both the x86_64 and i686 |
9 |
> compiler when a new version of gcc is emerged). I'd like to remove |
10 |
> it from package.mask sometime soon, but I'd like to make sure these |
11 |
> changes fix up all those kinks. |
12 |
|
13 |
I've been running the masked one for some time (as you know given the bugs |
14 |
I filed on it =8^). As such, I haven't tested an upgrade from the old |
15 |
gcc-config, but... |
16 |
|
17 |
After upgrading first eselect-compiler, to 2.0.0_rc1-r2, then gcc to |
18 |
4.1.1, both on May 26... |
19 |
|
20 |
$eselect compiler list |
21 |
Available compilers for CTARGET i686-pc-linux-gnu |
22 |
[1] x86_64-pc-linux-gnu-3.4.6/x86-hardened |
23 |
[2] x86_64-pc-linux-gnu-3.4.6/x86-hardenednopie |
24 |
[3] x86_64-pc-linux-gnu-3.4.6/x86-hardenednopiessp |
25 |
[4] x86_64-pc-linux-gnu-3.4.6/x86-hardenednossp |
26 |
[5] x86_64-pc-linux-gnu-3.4.6/x86-vanilla |
27 |
[6] x86_64-pc-linux-gnu-4.0.3/x86-vanilla |
28 |
[7] x86_64-pc-linux-gnu-4.1.0/x86-vanilla |
29 |
[8] x86_64-pc-linux-gnu-4.1.1/x86-vanilla |
30 |
Available compilers for CTARGET x86_64-pc-linux-gnu |
31 |
[9] x86_64-pc-linux-gnu-3.4.6/amd64-hardened |
32 |
[10] x86_64-pc-linux-gnu-3.4.6/amd64-hardenednopie |
33 |
[11] x86_64-pc-linux-gnu-3.4.6/amd64-hardenednopiessp |
34 |
[12] x86_64-pc-linux-gnu-3.4.6/amd64-hardenednossp |
35 |
[13] x86_64-pc-linux-gnu-3.4.6/amd64-vanilla |
36 |
[14] x86_64-pc-linux-gnu-4.0.3/amd64-vanilla |
37 |
[15] x86_64-pc-linux-gnu-4.1.0/amd64-vanilla |
38 |
[16] x86_64-pc-linux-gnu-4.1.1/amd64-vanilla |
39 |
|
40 |
Activated profiles: |
41 |
i686-pc-linux-gnu x86_64-pc-linux-gnu-4.1.0/x86-vanilla |
42 |
x86_64-pc-linux-gnu * x86_64-pc-linux-gnu-4.1.1/amd64-vanilla |
43 |
|
44 |
$ls -1 /etc/eselect/compiler/ |
45 |
selection.conf |
46 |
x86_64-pc-linux-gnu-3.4.6.conf |
47 |
x86_64-pc-linux-gnu-4.0.3.conf |
48 |
x86_64-pc-linux-gnu-4.1.0.conf |
49 |
x86_64-pc-linux-gnu-4.1.1.conf |
50 |
|
51 |
I have USE=-multislot for gcc, so 4.1.1 replaced 4.1.0. |
52 |
As you can see from the above output, eselect-compiler updated the x86_64 |
53 |
entry to point to the new gcc, but failed to update the i686 entry, which |
54 |
still points at the now invalid 4.1.0. Further, the stale and |
55 |
invalid 4.1.0 entries were not removed and remain available for attempted |
56 |
selection. Looks like I still have to update the i686 entry manually, and |
57 |
remove stale /etc/eselect/compiler/* entries manually as well. |
58 |
|
59 |
Of course, that isn't a problem with eselect-compiler itself, but rather, |
60 |
it would seem, with the various eselect-compiler functions in |
61 |
toolchain.eclass. I just took a brief look and toolchain.eclass does have |
62 |
eselect-compiler functions and logic, presumably your work, but it appears |
63 |
a bit more work may be necessary before unmasking, unless you tweaked |
64 |
further after my emerges on May 26. |
65 |
|
66 |
If you need more testing and want a bit faster responses, mail me directly |
67 |
if you wish. Be sure it's plain text so it doesn't get caught in my spam |
68 |
filter, but yeah, I'm up for trying eclass patches or the like, and |
69 |
recompiling gcc a few times to try things out, if necessary. Handling |
70 |
removal of stale config files manually isn't a big problem here, and I've |
71 |
been managing it for some time, but it's something that should be fixed |
72 |
before unmasking, I'm sure you'll agree. |
73 |
|
74 |
Very cool idea, BTW, handling both archs, and obviously a step up from |
75 |
current gcc-config, or I wouldn't have bothered with the manual updates |
76 |
this past year. The core, the part that's working, works very well, and |
77 |
I've been quite happily using it, occasional manual updates and the former |
78 |
manual initial setup, or not. =8^) |
79 |
|
80 |
-- |
81 |
Duncan - List replies preferred. No HTML msgs. |
82 |
"Every nonfree program has a lord, a master -- |
83 |
and if you use the program, he is your master." Richard Stallman |
84 |
|
85 |
-- |
86 |
gentoo-amd64@g.o mailing list |