From c2b515c1d39ff4711c1e677df46f634cd955bfe0 Mon Sep 17 00:00:00 2001 From: Silvino Date: Tue, 11 Jun 2019 04:34:38 +0100 Subject: fix pkgmk.conf distcc pump mode --- core/ports.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'core/ports.html') diff --git a/core/ports.html b/core/ports.html index d7ea41c..bbb8472 100644 --- a/core/ports.html +++ b/core/ports.html @@ -199,7 +199,8 @@

Configure pkgmk and define number of cores available, - in this example get dynamically Edit /etc/pkgmk.conf and + in this example get dynamically Edit + /etc/pkgmk.conf and set ccaching directory and instructs to use distcc backend;

@@ -216,17 +217,20 @@ be configured on /etc/hosts.

-        export DISTCC_DIR="/usr/ports/distcc"
-
-        # compile using ccache and distcc
-        export DISTCC_HOSTS="localhost/4 xborg/4"
-
-        # compile using distcc without ccache
-        #export PATH="/usr/lib/distcc/:$PATH"
-        #export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp cb1/2,lzo,cpp"
+        ### compile using distcc without ccache
+        ##export PATH="/usr/lib/distcc/:$PATH"
+        ##export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp"
+        ##export PUMP_BUILD=yes
 
-        export MAKEFLAGS="-j $(/usr/bin/distcc -j 2> /dev/null)"
+        # distcc settings
+        export JOBS=$(/usr/bin/distcc -j 2> /dev/null)
+        export DISTCC_DIR="/usr/ports/distcc"
+        export MAKEFLAGS="-j ${JOBS}"
         export SCONSFLAGS="$MAKEFLAGS"
+
+        # local compile only
+        #export JOBS=$(nproc)
+        #export MAKEFLAGS="-j $JOBS"
         

Configure distcc daemon, edit -- cgit 1.4.1-2-gfad0