/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-features.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-features.xml

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

Revision 1.2 Revision 1.3
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.2 2003/11/26 20:19:59 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.3 2003/11/28 07:32:38 swift Exp $ -->
5 5
6<sections> 6<sections>
7<section> 7<section>
8<title>DistCC</title> 8<title>DistCC</title>
9<subsection> 9<subsection>
63</p> 63</p>
64 64
65<p> 65<p>
66First, open <path>/etc/make.conf</path> and edit the <c>FEATURES</c> variable so 66First, open <path>/etc/make.conf</path> and edit the <c>FEATURES</c> variable so
67it contains the <c>distcc</c> keyword. Next, edit the <c>MAKEOPTS</c> variable 67it contains the <c>distcc</c> keyword. Next, edit the <c>MAKEOPTS</c> variable
68so it reads <c>-jX</c> with <c>X</c> the number of active <c>distccd</c> hosts 68so it reads <c>-jX</c> with <c>X</c> the number of CPUs that run <c>distccd</c>
69(including the host that will use <c>distcc</c> even though it doesn't 69(including the current host) plus one:
70necessarily need to run <c>distccd</c>) plus one:
71</p> 70</p>
72 71
73<pre caption="Possible MAKEOPTS setting in /etc/make.conf"> 72<pre caption="Possible MAKEOPTS setting in /etc/make.conf">
74<comment># Suppose you have 6 distccd hosts excluding this host:</comment> 73<comment># Suppose you have 2 single-CPU distccd hosts excluding this host:</comment>
75MAKEOPTS="-j8" 74MAKEOPTS="-j4"
76</pre> 75</pre>
77 76
78<p> 77<p>
79Now, still inside <path>/etc/make.conf</path>, uncomment the 78Now, still inside <path>/etc/make.conf</path>, uncomment the
80<c>PORTAGE_TMPDIR</c> line and add the following line at the end 79<c>PORTAGE_TMPDIR</c> line and add the following line at the end
83 82
84<pre caption="Add an extra, distcc-specific variable to /etc/make.conf"> 83<pre caption="Add an extra, distcc-specific variable to /etc/make.conf">
85<comment># Don't forget to uncomment the PORTAGE_TMPDIR variable</comment> 84<comment># Don't forget to uncomment the PORTAGE_TMPDIR variable</comment>
86DISTCC_DIR=${PORTAGE_TMPDIR}/portage/.distcc 85DISTCC_DIR=${PORTAGE_TMPDIR}/portage/.distcc
87</pre> 86</pre>
87
88<p>
89Now run <c>distcc-config</c> and enter the list of available DistCC servers. For
90a simple example we assume that the available DistCC servers are
91<c>192.168.1.102</c> (the current host), <c>192.168.1.103</c> and
92<c>192.168.1.104</c> (two "remote" hosts):
93</p>
94
95<pre caption="Configuring distcc to use three available DistCC servers">
96# <i>distcc-config --set-hosts "192.168.1.102 192.168.1.103 192.168.1.104"</i>
97</pre>
98
99<p>
100Of course, don't forget to run the <c>distccd</c> daemon too:
101</p>
102
103<pre caption="Starting the distcc daemon">
104# <i>/etc/init.d/distccd start</i>
105</pre>
106
107<p>
108Congratulations, your system will now use distributed compiling! For more
109in-depth information about DistCC and Gentoo, please read our <uri
110link="/doc/en/distcc.xml">Gentoo DistCC Documentation</uri>.
111</p>
88 112
89</body> 113</body>
90</subsection> 114</subsection>
91</section> 115</section>
92<section> 116<section>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20