Gentoo Archives: gentoo-ppc-dev

From: Mark Guertin <gerk@g.o>
To: gentooppc-dev@g.o
Cc: gentooppc-user@g.o
Subject: [gentooppc-dev] Fwd: [gentoo-dev] Gentoo 1.2 to 1.4 update, HowTo do it and not break everything
Date: Mon, 12 Aug 2002 19:08:32
Message-Id: 200208130031.07580.gerk@gentoo.org
1 This may be of use for all those people asking how to do this, when I said it
2 wasn't a simple fix , well... now you will understand :)
3
4 ---------- Forwarded Message ----------
5
6 Subject: [gentoo-dev] Gentoo 1.2 to 1.4 update, HowTo do it and not break
7 everything
8 Date: Mon, 12 Aug 2002 19:48:14 +0000
9 From: Spider <spider@g.o>
10 To: gentoo-dev <gentoo-dev@g.o>
11
12 Wheehey.
13 time for the preliminary upgrade instructions for all those adventurous
14 souls that dont want to break everything but only something :)
15
16
17 Overview:
18 how to update from gcc 2.95.3 to 3.2 without breaking too much
19
20 1) build gcc / glibc /binutils / gettext packages to backup with
21 emerge --buildpkg gcc glibc gettext binutils (all in gcc 2.95.3)
22
23 Move theese aside in a place tagged as gcc 2.95.3 .
24
25
26 2) build an replacement gcc systems
27 change the profile to default-x86-2.0
28
29 export USE="-* build"
30 emerge --buildpkg gcc
31 emerge --buildpkg binutils gettext texinfo glibc
32 unset USE
33
34 This will now replace your gcc with one without c++ and other such
35 things.. "oops" gcc is now gcc 3.2.. thats good.
36
37 Now, We remove all traces of gcc, *shudder*
38 emerge -C gcc
39 and install the binary again:
40 emerge --usepkg gcc
41
42 now, next step... we want a fully working and competent gcc, glibc and
43 other things:
44
45 emerge --buildpkg gcc
46 emerge --buildpkg binutils gettext texinfo glibc
47
48 Lovely, a complete gcc 3.2 system installed! and not a trace of gcc
49 2.95.3's libstdc++ ... This is the time when you go "oops" and whine a
50 lot.
51
52 or.. is it?
53
54 move aside your gcc 3.2 complete binaries, copy in gcc 2.95.3 ones
55 emerge --usepkg =gcc-2.95.3-r7 (whatever version it was you had
56 installed)
57 emerge --usepkg gcc
58
59 Now, you've restored gcc 2.95.3's paths and data, and overwritten the
60 gcc, g++ and others with those of gcc 3.2
61
62 check with /usr/bin/gcc -v
63 it reports gcc 3.2 for me
64
65
66 Now, edit /etc/env.d/05gcc
67 add :
68 LDPATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3
69
70 then run "env-update"
71
72
73 now your old c++ code will work again... everything is normal, until ...
74 soon..
75
76
77 This is as far as I've come today, my system works, c++ code works,
78 galeon works, blackbox runs.
79
80 Beware though... when you start to mix c++ codes it will probably break
81 in strange ways. Solution: recompile :)
82
83 I hope this helps.....
84
85
86 //Spider
87
88
89
90
91
92
93
94
95
96 --
97 begin .signature
98 This is a .signature virus! Please copy me into your .signature!
99 See Microsoft KB Article Q265230 for more information.
100 end
101
102 -------------------------------------------------------

Attachments

File name MIME type
Attachment: 1 application/pgp-signature