/[gentoo]/xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml
Gentoo

Diff of /xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2 2
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml,v 1.13 2005/06/05 16:25:51 neysx Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/new-upgrade-to-gentoo-1.4.xml,v 1.14 2005/07/02 09:53:51 swift Exp $ -->
4 4
5<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 5<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
6 6
7<guide link="new-upgrade-to-gentoo-1.4.xml"> 7<guide link="new-upgrade-to-gentoo-1.4.xml">
8 8
20 20
21<!-- The content of this document is licensed under the CC-BY-SA license --> 21<!-- The content of this document is licensed under the CC-BY-SA license -->
22<!-- See http://creativecommons.org/licenses/by-sa/2.0 --> 22<!-- See http://creativecommons.org/licenses/by-sa/2.0 -->
23<license/> 23<license/>
24 24
25<version>0.3</version> 25<version>0.4</version>
26<date>2004-10-02</date> 26<date>2005-07-02</date>
27 27
28<chapter> 28<chapter>
29<title>Before you begin</title> 29<title>Before you begin</title>
30<section> 30<section>
31<title>Be prepared</title> 31<title>Be prepared</title>
78<p> 78<p>
79Some of the syntax of current ebuilds is unreadable by older versions of 79Some of the syntax of current ebuilds is unreadable by older versions of
80Portage. If you don't have at least Portage 2.0.44, try upgrading Portage. 80Portage. If you don't have at least Portage 2.0.44, try upgrading Portage.
81</p> 81</p>
82 82
83<pre> 83<pre caption="Updating Portage">
84# <i>emerge --sync</i> 84# <i>emerge --sync</i>
85# <i>emerge -u portage</i> 85# <i>emerge -u portage</i>
86</pre> 86</pre>
87 87
88<note> 88<note>
105will also have the beneficial side-effect of installing the <c>gcc-config</c> 105will also have the beneficial side-effect of installing the <c>gcc-config</c>
106package on your system, which can be used to switch back and forth between 106package on your system, which can be used to switch back and forth between
107various installed versions of GCC. 107various installed versions of GCC.
108</p> 108</p>
109 109
110<pre> 110<pre caption="Updating GCC">
111# <i>emerge -u gcc</i> 111# <i>emerge -u gcc</i>
112</pre> 112</pre>
113 113
114<p> 114<p>
115You can now check to see if gcc-config is working properly: 115You can now check to see if gcc-config is working properly:
116</p> 116</p>
117 117
118<pre> 118<pre caption="Verifying GCC profile">
119# <i>gcc-config --get-current-profile</i> 119# <i>gcc-config --get-current-profile</i>
120</pre> 120</pre>
121 121
122<p> 122<p>
123This should return i686-pc-linux-gnu-2.95.3 on most x86 systems. Older systems 123This should return i686-pc-linux-gnu-2.95.3 on most x86 systems. Older systems
153 153
154<p> 154<p>
155Now install the latest GCC version on your system: 155Now install the latest GCC version on your system:
156</p> 156</p>
157 157
158<pre> 158<pre caption="Install the latest GCC">
159# <i>USE="-java" emerge /usr/portage/sys-devel/gcc/gcc-3.2.2.ebuild</i> 159# <i>USE="-java" emerge /usr/portage/sys-devel/gcc/gcc-3.2.2.ebuild</i>
160</pre> 160</pre>
161 161
162</body> 162</body>
163</section> 163</section>
168<p> 168<p>
169Now you need to change two sets of profiles: your gcc-config profile and your 169Now you need to change two sets of profiles: your gcc-config profile and your
170Portage profile. 170Portage profile.
171</p> 171</p>
172 172
173<pre> 173<pre caption="Change the Portage profile">
174# <i>cd /etc</i> 174# <i>cd /etc</i>
175# <i>rm make.profile</i> 175# <i>rm make.profile</i>
176<comment>(Replace "x86" with your architecture)</comment> 176<comment>(Replace "x86" with your architecture)</comment>
177# <i>ln -s ../usr/portage/profiles/default-x86-1.4 make.profile</i> 177# <i>ln -s ../usr/portage/profiles/default-x86-1.4 make.profile</i>
178</pre> 178</pre>
179 179
180<pre> 180<pre caption="Change the GCC profile">
181<comment>(Note the one for the version you just emerged, use it below)</comment> 181<comment>(Note the one for the version you just emerged, use it below)</comment>
182# <i>gcc-config --list-profiles</i> 182# <i>gcc-config --list-profiles</i>
183<comment>(Replace with the version you noted above)</comment> 183<comment>(Replace with the version you noted above)</comment>
184# <i>gcc-config i686-pc-linux-gnu-3.2.2</i> 184# <i>gcc-config i686-pc-linux-gnu-3.2.2</i>
185</pre> 185</pre>
195are continuing in the same shell, you need to run <c>source /etc/profile</c> as 195are continuing in the same shell, you need to run <c>source /etc/profile</c> as
196gcc-config instructed you to. Then emerge glibc and binutils using your new 196gcc-config instructed you to. Then emerge glibc and binutils using your new
197compiler: 197compiler:
198</p> 198</p>
199 199
200<pre> 200<pre caption="Rebuilding the toolchain">
201# <i>emerge glibc binutils</i> 201# <i>emerge glibc binutils</i>
202</pre> 202</pre>
203 203
204<warn> 204<warn>
205It is quite likely that you will upgrade glibc from a 2.2 or older version to 205It is quite likely that you will upgrade glibc from a 2.2 or older version to
215 215
216<p> 216<p>
217Now you may recompile everything on your system with your new compiler: 217Now you may recompile everything on your system with your new compiler:
218</p> 218</p>
219 219
220<pre> 220<pre caption="Rebuilding the entire system">
221# <i>emerge -e world</i> 221# <i>emerge -e world</i>
222</pre> 222</pre>
223 223
224<note> 224<note>
225If this command fails at any point due to errors, you 225If this command fails at any point due to errors, you

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20