1 |
begin quote |
2 |
On Mon, 12 Aug 2002 20:22:24 -0400 |
3 |
Todd Heim <heim-gentoo@××××××××.net> wrote: |
4 |
|
5 |
> On Monday 12 August 2002 03:48 pm, Spider wrote: |
6 |
> |
7 |
> sounds good.. but a few questions first: |
8 |
> |
9 |
> > Now, We remove all traces of gcc, *shudder* |
10 |
> > emerge -C gcc |
11 |
> > and install the binary again: |
12 |
> > emerge --usepkg gcc |
13 |
> |
14 |
> why unmerge it, then reemerge the same copy? |
15 |
To make sure that we wipe all traces of the old gcc when we build the |
16 |
new "clean" and fully functional version. |
17 |
|
18 |
the "USE="build" stuff makes sure that /usr/bin/gcc is overwritten, but |
19 |
doesnt create c++ things, this will make sure that you have an |
20 |
"uncontaminated" system which only runs gcc 3.2 when you build the final |
21 |
gcc, glibc binutils and other things. |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
> > move aside your gcc 3.2 complete binaries, copy in gcc 2.95.3 ones |
27 |
> > emerge --usepkg =gcc-2.95.3-r7 (whatever version it was you had |
28 |
> > installed) emerge --usepkg gcc |
29 |
> |
30 |
> why emerge 2.95, then 3.2 again? |
31 |
|
32 |
This is because the old gcc 2.95.3 package had its own /usr/bin/gcc |
33 |
which you -dont- want right now, you want to simply overwrite the "gcc" |
34 |
binary with the new one from gcc 3.2 (complete build) |
35 |
|
36 |
|
37 |
|
38 |
I've ran this for a while, and all packages work neatly, including big |
39 |
bloats like mozilla and galeon that depend on c++ |
40 |
|
41 |
When you rebuild one c++ thing though, you need to rebuild the things |
42 |
that depend on it as well as to not get colliding libraries. |
43 |
|
44 |
|
45 |
A tip: |
46 |
|
47 |
for i in /usr/lib/*.so; |
48 |
do ldd ${i}|grep "2.95.3" - >/dev/null && qpkg -fv ${i} ; |
49 |
done |
50 |
|
51 |
this will list all libraries that depend on c++ from 2.95.3 |
52 |
|
53 |
in my case it was imagemagick, and Mesa from xfree. |
54 |
|
55 |
then you can scan the binaries, those are more common |
56 |
|
57 |
|
58 |
//Spider |
59 |
|
60 |
|
61 |
-- |
62 |
begin .signature |
63 |
This is a .signature virus! Please copy me into your .signature! |
64 |
See Microsoft KB Article Q265230 for more information. |
65 |
end |