Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96415 - Distccd incorrectly sets the max job limit to +1 beyond the --jobs flag value
Summary: Distccd incorrectly sets the max job limit to +1 beyond the --jobs flag value
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 15:41 UTC by Stephen Torri
Modified: 2005-06-17 15:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Torri 2005-06-17 15:41:30 UTC
I am using distcc for compiling within my network. In order to limit the load on
my main system I went to set the --jobs flag in the /etc/conf.d/distccd and put
it in the DISTCC_OPTS variable.

  DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632 --jobs 1

The result is that two distccd instances are created and not the one that is
expected.

Reproducible: Always
Steps to Reproduce:
1. set DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632 --jobs 1 in /etc/conf.d/distccd
2. restart distccd

Actual Results:  
storri@base ~/src/rosegarden $ ps aux | grep distcc
distcc   11444  0.0  0.1   1996   712 ?        SNs  18:35   0:00
/usr/bin/distccd --pid-file /var/run/distccd/distccd.pid -N 15 --user distcc
--port 3632 --jobs 1 --log-level critical --allow 10.0.0.0/24 --listen 10.0.0.26
distcc   11680  0.0  0.1   1996   732 ?        SN   18:41   0:00
/usr/bin/distccd --pid-file /var/run/distccd/distccd.pid -N 15 --user distcc
--port 3632 --jobs 1 --log-level critical --allow 10.0.0.0/24 --listen 10.0.0.26


Expected Results:  
Only one instance of distccd should be created.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.4.20041102-r1,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 00:05:24)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fno-rename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fno-rename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox
sfperms strict"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts bonobo cdr crypt cups curl eds
emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 gtkhtml
guile imagemagick imlib ipv6 jack java jpeg junit kde kdeenablefinal kdexdeltas
libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl
oss pam pdflib perl pic plotutils png postgres python qt quicktime readline sdl
spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis
xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Sven Wegener gentoo-dev 2005-06-17 15:48:04 UTC
The first one is the main distcc daemon that gets started and handles the incoming
connections. The other one is the child that handles the one job you want with
--jobs 1.