Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23614 - /etc/init.d/apache complains about dependencies
Summary: /etc/init.d/apache complains about dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 23755 23759 25228 25340 25679 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-27 12:25 UTC by Rev. Jeffrey Paul
Modified: 2003-08-15 14:46 UTC (History)
5 users (show)

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 Rev. Jeffrey Paul 2003-06-27 12:25:32 UTC
fresh install (yesterday) on x86, no unstable packages, emerge -u world...
everything up to date.  ran "emerge apache mysql php mod_php mod_ssl" and
everything went fine.  tried to startup the server and:

liet root # /etc/init.d/apache start
 * Could not get dependency info for "apache"!
 * Could not get dependency info for "apache"!
 * Starting apache...                                                [ ok ]
liet root #

the top of the file in question:

#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-www/apache/files/apache.rc6,v 1.11
2003/02/25 21:56:56 woodchip Exp $

opts="${opts} reload"

depend() {
        need net
        use mysql dns logger netmount
}


Reproducible: Always
Steps to Reproduce:
1. emerge apache
2. `/etc/init.d/apache start`
Actual Results:  
errors, but the server starts okay.

Expected Results:  
no errors?   i don't know why it's erroring, perhaps there's a dependency
problem somewhere?

liet root # emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.linux.no/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode gif imlib jpeg kde libg++
mikmod mmx motif mpeg ncurses oggvorbis pdflib png quicktime sdl spell truetype
xml2 xmms xv zlib gdbm berkdb slang readline mysql gpm tcpd pam libwww ssl perl
python -X -gtk -gnome -alsa -svga -java -opengl -qt -nls"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 SpanKY gentoo-dev 2003-06-27 14:38:49 UTC
run `depscan.sh` and try again ... or reboot MS style :D 
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-06-28 07:36:29 UTC
any news on this ?
Comment 3 Rev. Jeffrey Paul 2003-06-28 10:59:26 UTC
liet tmp # depscan.sh
 * Caching service dependencies...                                [ ok ]
liet tmp # /etc/init.d/apache stop
 * Stopping apache...                                             [ ok ]
liet tmp # /etc/init.d/apache start
 * Starting apache...                                             [ ok ]
liet tmp #



seems to have fixed it.  doesn't it do that after every emerge?  why would it break like that all of a sudden?

-j
Comment 4 SpanKY gentoo-dev 2003-06-28 11:27:25 UTC
it didnt break, it just printed some warnings 
 
depscan isnt run everytime now because it is a lot slower if you do ... 
Comment 5 SpanKY gentoo-dev 2003-06-30 14:56:17 UTC
*** Bug 23755 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2003-06-30 14:56:19 UTC
*** Bug 23759 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-07-24 21:47:45 UTC
*** Bug 25228 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2003-07-26 14:39:37 UTC
*** Bug 25340 has been marked as a duplicate of this bug. ***
Comment 9 Narada Sage 2003-07-26 15:10:01 UTC
To me depscan.sh seems really quick.  Is it really that much a problem to automate it?  Any other possible current or future solutions?
Comment 10 Nick Hadaway 2003-07-27 22:24:26 UTC
*** Bug 25340 has been marked as a duplicate of this bug. ***
Comment 11 David E.Miller 2003-07-30 14:29:57 UTC
performed:

depscan.sh

this fixed duplicate bug symptoms of dependency squawk for:

/etc/init.d/dnsmasq start

This is probably a dumb question, but where is this script documented?
Comment 12 SpanKY gentoo-dev 2003-07-30 16:18:36 UTC
it may seem quick on newer boxes but just try to run it on an 486 :) 
 
i have, it griiiiiiiiiiiiiinds 
 
and this script isnt documented anywhere (afaik) because there is no reason for it 
to be ... it is an internal script, not something the user should utilize 
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-31 14:01:55 UTC
It is here:

  http://www.gentoo.org/doc/en/rc-scripts.xml

If you rebooted, or used rc-update, it would have been ok.
Comment 14 SpanKY gentoo-dev 2003-07-31 15:38:43 UTC
az: you shouldnt have to reboot or run rc-update everytime you emerge a 
package and want to utilize a script in init.d 
 
in this case, the user emerged apache for the first time, ran `/etc/init.d/apache 
start`, and then saw those warnings 
Comment 15 SpanKY gentoo-dev 2003-07-31 20:56:27 UTC
*** Bug 25679 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2003-08-15 14:46:33 UTC
ok, latest version displays a msg 'please run depscan.sh'