[gobolinux-users] ColorMake suggestion

michael michael at xinomorph.org
Wed Nov 3 05:35:02 GMT 2004


I notice that ColorMake, which is used by all Compile recipes has 
parallel builds enabled, at a very high value (of 8).  While this is 
fine for most, it really kills older hardware, and the value isn't 
configurable without editing ColorMake.

Attached is a patch to fix it, and add a Make.conf to easily configure it.

--Michael
-------------- next part --------------
--- /Programs/Scripts/2.1.14/bin/ColorMake.orig	2004-11-02 03:27:26.000000000 +1030
+++ /Programs/Scripts/2.1.14/bin/ColorMake	2004-11-02 03:44:40.000000000 +1030
@@ -1,12 +1,16 @@
 #!/bin/sh
 
 ### Changelog #################################################################
+# 02/11/2004 - [michael] Added configuration option "make_options" to allow setting
+#              of command line options to make, particularly -j(n) (Number of Parallel
+#              Builds).
 # 03/06/2002 - Return proper exit
 # 28/03/2002 - GoboLinux compliant
 # 14/09/2001 - First version
 
 . ScriptFunctions
 Import File
+source ${goboSettings}/Scripts/Make.conf
 
 workaround=`Temporary_File`
 
@@ -17,7 +21,7 @@
 then makecmd=/usr/bin/make
 fi
 
-{ $makecmd -j8 "$@" 2>&1
+{ $makecmd $make_options "$@" 2>&1
   echo $? > $workaround
 } | mtail --config=${goboSettings}/Scripts/ColorMake.mtailrc -q
 
-------------- next part --------------

# Configuration options for Make.

# make_options - Command line options to make.
#  Here you set options to make.  Particularly important is the -j option
#  (Number of parallel builds).
#
# It is said that you should set this to the number of processors that are
# compiling + 1, however your mileage may vary.  On faster computers that are
# good at multitasking, you can leave this at the default setting of -j5.
# Older machines have a lot of trouble with this, particularly 'cheap'
# processors, like some older Celerons.  You should use -j2 for these
# otherwise your computer will be *very* unresponsive during compilation.
#
# If you have DistCC or some other distributed compiling setup, add those 
# processors to the total, or your distributed compiling will become 
# pointless (as only a few of the nodes are ever utilized).
#
# You should experiment with this.  It is dependant on the speed, brand, 
# model, and arch of CPU in your machine, as well as how much RAM you 
# have and the speed of it.

make_options="-j5"





More information about the Gobolinux-users mailing list