From: Michael Tremer Date: Sat, 4 Oct 2008 12:42:11 +0000 (+0000) Subject: Updated distcc to 3.0. X-Git-Tag: v3.0-alpha1~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ebb0041025fee49b7239c3d2dd9dee811222b32;p=ipfire-3.x.git Updated distcc to 3.0. --- diff --git a/lfs/distcc b/lfs/distcc index c67de0c59..67a826ea4 100644 --- a/lfs/distcc +++ b/lfs/distcc @@ -25,7 +25,7 @@ include Config PKG_NAME = distcc -VER = 2.18.3 +VER = 3.0 THISAPP = $(PKG_NAME)-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -53,7 +53,13 @@ $(objects) : $(TARGET) : @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && CFLAGS="-O2 -static" ./configure --prefix=$(PREFIX) + cd $(DIR_APP) && \ + CFLAGS="-O2 -static" \ + ./configure \ + --prefix=$(PREFIX) \ + --with-included-popt \ + --without-avahi + cd $(DIR_APP) && sed -e "s/-Werror//g" -i Makefile cd $(DIR_APP) && make $(PARALLELISMFLAGS) cd $(DIR_APP) && make install #ln -sf distcc $(PREFIX)/bin/gcc diff --git a/tools/make-compilers b/tools/make-compilers index 12a84293d..ecb00c96b 100755 --- a/tools/make-compilers +++ b/tools/make-compilers @@ -58,6 +58,7 @@ distccd_start() { fi TOOLS_DIR=$TOOLS_DIR DISTCC_PORT=$DISTCC_PORT \ + LOGFILE=$BASEDIR/log_${MACHINE}/_build.00-distccd.log \ $BASEDIR/tools/make-compilers & if [ "$?" -eq "0" ]; then beautify message DONE @@ -68,7 +69,7 @@ distccd_start() { distccd_stop() { echo -n "Stopping distcc daemon" - killall distccd + killall distccd &>/dev/null if [ "$?" -eq "0" ]; then beautify message DONE else @@ -88,12 +89,14 @@ if [ "$(basename $0)" == "make-compilers" ]; then # Run distccd DISTCCD_PATH=$TOOLS_DIR/bin:$(echo $TOOLS_DIR/libexec/gcc/*-pc-linux-gnu/*/) \ $TOOLS_DIR/usr/bin/distccd --daemon --allow 0.0.0.0/0 \ - --user nobody --nice 10 --jobs 8 --port $DISTCC_PORT &>/dev/null + --user nobody --nice 10 --jobs 8 --port $DISTCC_PORT \ + --log-file $LOGFILE --stats --job-lifetime 600 \ + --stats-port $(( $DISTCC_PORT + 1 )) &>/dev/null # When $TOOLS_DIR is not available (esp. gcc) --> exit while pidof distccd >/dev/null && [ -x $TOOLS_DIR/bin/gcc ]; do sleep 10 done - distccd_stop + killall distccd &>/dev/null fi