/[gentoo]/xml/htdocs/doc/en/distcc.xml
Gentoo

Diff of /xml/htdocs/doc/en/distcc.xml

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

Revision 1.44 Revision 1.45
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/distcc.xml,v 1.44 2011/09/04 17:53:40 swift Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/distcc.xml,v 1.45 2012/07/24 12:12:51 swift Exp $ -->
4 4
5<guide> 5<guide>
6 6
7<title>Gentoo Distcc Documentation</title> 7<title>Gentoo Distcc Documentation</title>
8 8
34 34
35<!-- The content of this document is licensed under the CC-BY-SA license --> 35<!-- The content of this document is licensed under the CC-BY-SA license -->
36<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 36<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
37<license/> 37<license/>
38 38
39<version>1.22</version> 39<version>2</version>
40<date>2009-06-14</date> 40<date>2012-07-24</date>
41 41
42<chapter> 42<chapter>
43<title>Introduction</title> 43<title>Introduction</title>
44<section> 44<section>
45<title>What is distcc?</title> 45<title>What is distcc?</title>
120each system that should participate in the distributed compiling: 120each system that should participate in the distributed compiling:
121</p> 121</p>
122 122
123<pre caption="Integrating Distcc and Portage"> 123<pre caption="Integrating Distcc and Portage">
124# <i>emerge distcc</i> 124# <i>emerge distcc</i>
125# <i>nano -w /etc/make.conf</i> 125# <i>nano -w /etc/portage/make.conf</i>
126<comment>(Set N to a suitable number for your particular setup)</comment> 126<comment>(Set N to a suitable number for your particular setup)</comment>
127<comment>(A common strategy is setting N as twice the number of total CPUs + 1 available)</comment> 127<comment>(A common strategy is setting N as twice the number of total CPUs + 1 available)</comment>
128MAKEOPTS="-jN" 128MAKEOPTS="-jN"
129<comment>(Add distcc to your FEATURES)</comment> 129<comment>(Add distcc to your FEATURES)</comment>
130FEATURES="distcc" 130FEATURES="distcc"
265link="/doc/en/faq.xml#stage12">Gentoo FAQ</uri> for more information about 265link="/doc/en/faq.xml#stage12">Gentoo FAQ</uri> for more information about
266bootstrapping.) Then configure Portage to use distcc: 266bootstrapping.) Then configure Portage to use distcc:
267</p> 267</p>
268 268
269<pre caption="Preliminary Setup"> 269<pre caption="Preliminary Setup">
270# <i>nano -w /etc/make.conf</i> 270# <i>nano -w /etc/portage/make.conf</i>
271<comment>(Add distcc to the FEATURES</comment> 271<comment>(Add distcc to the FEATURES</comment>
272FEATURES="distcc" 272FEATURES="distcc"
273<comment>(Modify MAKEOPTS to include -jN, where N is twice the number of CPUs 273<comment>(Modify MAKEOPTS to include -jN, where N is twice the number of CPUs
274+1 available)</comment> 274+1 available)</comment>
275MAKEOPTS="-jN" 275MAKEOPTS="-jN"
360 360
361<p> 361<p>
362Recent Portage updates have made Portage use <c>${CHOST}-gcc</c> instead of 362Recent Portage updates have made Portage use <c>${CHOST}-gcc</c> instead of
363<c>gcc</c>. This means that if you're mixing i686 machines with other types 363<c>gcc</c>. This means that if you're mixing i686 machines with other types
364(i386, i586) you will run into problems. A workaround for this may be to 364(i386, i586) you will run into problems. A workaround for this may be to
365<c>export CC='gcc' CXX='c++'</c> or to put it in <path>/etc/make.conf</path>. 365<c>export CC='gcc' CXX='c++'</c> or to put it in <path>/etc/portage/make.conf</path>.
366</p> 366</p>
367 367
368<impo> 368<impo>
369Doing this explicitly redefines some behaviour of Portage and may have some 369Doing this explicitly redefines some behaviour of Portage and may have some
370weird results in the future. Only do this if you're mixing CHOSTs. 370weird results in the future. Only do this if you're mixing CHOSTs.

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20