Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21092 - baselayout- fails to start some services dependancies
Summary: baselayout- fails to start some services dependancies
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
Depends on:
Reported: 2003-05-16 02:10 UTC by Robin Johnson
Modified: 2004-04-20 15:26 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-16 02:10:38 UTC
/etc/init.d/courier-imap contains 'need net authdaemond' in it's depend().
I start the courier-imap service when authdaemond is not running, and it does 
NOT start authdaemond. 

If I then start authdaemond, and stop it again, it DOES stop courier-imap.

Having authdaemond in the runlevel has NO affect at all.

Because authdaemond does not start before courier-imap, you CANNOT log into 

The identical code 'use net authdaemond' works in older baselayouts.

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/courier-imapd stop;  /etc/init.d/authdaemond stop;
2. /etc/init.d/courier-imapd start
3. /etc/init.d/authdaemond start
4. /etc/init.d/authdaemond stop
Actual Results:  
curie-int root # /etc/init.d/courier-imapd stop;  /etc/init.d/authdaemond stop;
 * ERROR:  "courier-imapd" has not yet been started.
 * ERROR:  "authdaemond" has not yet been started.
curie-int root # /etc/init.d/courier-imapd start
 * Starting courier-imapd...                                              [ ok ]
curie-int root # /etc/init.d/authdaemond start
 * Starting authdaemond.plain...                                          [ ok ]
curie-int root # /etc/init.d/authdaemond stop
 * Stopping courier-imapd...                                              [ ok ]
 * Stopping authdaemond.plain...                                          [ ok ]

Expected Results:  
Authdaemond should be started before courier-imap always.

curie-int root # emerge info
  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
System uname: 2.4.20-pfeifer-r1_pre7 i686 AMD Duron(tm) processor
GENTOO_MIRRORS=" ftp://ftp.ussg.iu.ed
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/te
xmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg mikmod mmx motif mpeg ncur
ses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm
 berkdb slang readline arts tetex aalib nas bonobo svga ggi tcltk java guile rub
y mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk
qt kde opengl gphoto2 ldap snmp cdr scanner 3dfx acl acpi acpi4linux activefilte
r apache2 canna cjk curl dga dnd doc dvb dvd emacs ethereal evms2 evo expat fbco
n flash freetds gamma gb gd gnomedb gps gtkhtml hbci i8x0 imap innodb ipv6 jikes
 junit ladcca lcms leim libgda lirc maildir matrox mcal mozaccess mozcalendar mo
zilla mozinterfaceinfo mozp3p mozsvg mozxmlterm mpi mule nptl oav odbc ofx pcap
pcmcia pda pic plotutils pnp radeon rage128 samba sasl sis slp socks5 tiff trust
ed ungif usb vim-with-x voodoo3 vscan wavelan wmf Xaw3d xface xfs xinerama xml x
osd -libg++ glut"
CFLAGS="-march=i586 -mcpu=athlon -O3 -pipe"
CXXFLAGS="-march=i586 -mcpu=athlon -O3 -pipe"
FEATURES="sandbox buildpkg ccache userpriv usersandbox digest"

curie-int root # emerge -p baselayout portage courier-imap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] sys-apps/baselayout-
[ebuild   R  ] sys-apps/portage-2.0.48_pre6
[ebuild   R  ] net-mail/courier-imap-1.7.2
Comment 1 Gwenn 2003-05-19 16:45:47 UTC
On my laptop, since baselayout-, net.eth0 starts
(and fails) before pcmcia is started.

# emerge info
  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
System uname: 2.4.20 i686 Celeron (Coppermine)
GENTOO_MIRRORS=" http://212.
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
USE="x86 alsa apache2 avi berkdb crypt dga esd gd gdbm gif gphoto2 gtk gtk2 imap
 imlib java jpeg ldap libwww mmx mozilla mpeg mysql ncurses nocardbus oggvorbis 
pam pcmcia pdflib png pnp readline samba sdl slang sse ssl tiff truetype usb wmf
 X xml xml2 xmms xv zlib"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
FEATURES="ccache sandbox distcc userpriv usersandbox"
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-19 16:57:50 UTC
Known issue, already fixed in CVS .. just have to get time to look through
my list of todo, and release a bugfix version.
Comment 3 YAMAKURA Makoto (RETIRED) gentoo-dev 2003-05-20 06:34:30 UTC
Hi azarah,

I think this bug isn't fixed.
A '-' (hyphen) in the service name also causes an error at 'declare -F'.

Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-20 14:48:34 UTC
Actually talking about the net.eth0 and pcmcia issue ....
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-20 15:50:01 UTC
Should be fixed in, please test when out in a bit.
Comment 6 Gwenn 2003-05-20 18:17:48 UTC
With, net.lo and net.eth0 appear in /var/lib/init.d/started
but their start functions don't seem to be called by runscript :-(

There's no ebegin trace at all for net.lo and net.eth0.
Comment 7 YAMAKURA Makoto (RETIRED) gentoo-dev 2003-05-20 21:07:36 UTC
Same here.
Newly added line (/lib/rcscripts/sh/, Line 36) should be:

All my dependencies works fine!

Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-21 11:04:13 UTC
Yeah I saw that.  Anyhow, -r1 fixes this.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-21 16:43:46 UTC
Fixed verified in -r1. It works much better now.
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-04-20 15:26:11 UTC
Closing, I guess