From c1ec5af5868c0050dcb82167224affae7d684849 Mon Sep 17 00:00:00 2001 From: Silvino Date: Tue, 11 Jun 2019 01:29:02 +0100 Subject: core ports distcc reconfiguration --- core/ports.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'core/ports.html') diff --git a/core/ports.html b/core/ports.html index 5350ee2..a977568 100644 --- a/core/ports.html +++ b/core/ports.html @@ -199,7 +199,17 @@

Configure pkgmk and define number of cores available, - in this example get dynamically Edit /etc/pkgmk.conf;

+ in this example get dynamically Edit /etc/pkgmk.conf and + set ccaching directory and instructs to use distcc + backend;

+ +
+        # ccache settings
+        export PATH="/usr/lib/ccache/:$PATH"
+        export CCACHE_DIR="/usr/ports/ccache"
+        export CCACHE_PREFIX="distcc"
+        export CCACHE_COMPILERCHECK="%compiler% -dumpversion; crux"
+        
         ## local compile only
@@ -214,26 +224,16 @@
         export SCONSFLAGS="$MAKEFLAGS"
         
-

Set ccaching directory and instructs to - use distcc backend;

- -
-        # ccache settings
-        export PATH="/usr/lib/ccache/:$PATH"
-        export CCACHE_DIR="/usr/ports/ccache"
-        export CCACHE_PREFIX="distcc"
-        export CCACHE_COMPILERCHECK="%compiler% -dumpversion; crux"
-        
-

Set distcc hosts and respective number of - cpu cores to send work;

+ cpu cores to send work, hosts names, exp; "worker" must + be configured on /etc/hosts.

+
         export DISTCC_HOSTS="localhost/4 worker/4"
         export DISTCC_DIR="/urs/ports/distcc"
         
-

Host name "worker" must be configured on - /etc/hosts. Configure distcc daemon, edit +

Configure distcc daemon, edit /etc/rc.d/distccd;

@@ -257,7 +257,7 @@
         Core OS Index
         

This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.

-- cgit