Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82311 - net-www/apache dependency list should include lynx
Summary: net-www/apache dependency list should include lynx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 103769 192322 192689 194990 195959 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-16 21:42 UTC by Dave Bonnell
Modified: 2007-10-20 17:15 UTC (History)
6 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 Dave Bonnell 2005-02-16 21:42:55 UTC
Emerged apache fine.  Ran "apache2ctl status" to check if it was automatically started and apache2ctl failed with error that "lynx" was not found.

Reproducible: Always
Steps to Reproduce:
1. System without apache or lynx
2. emerge apache
3. /usr/sbin/apache2ctl status

Actual Results:  
Failed with error "lynx: program not found"

Expected Results:  
"emerge apache" should have installeld lynx since it is a dependency (or at
least should be!).
Comment 1 Dave Bonnell 2005-02-16 21:49:17 UTC
net-www/apache version 2.0.52-r1
Comment 2 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-02-26 09:45:29 UTC
Apologies for the delay.

We decided not to list lynx as a dependency for apache for just two actions of a script.  Instead, we've patched apache{,2}ctl to first check for lynx, and die if it's not found (instructing the user to emerge it).

Resolving FIXED.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-26 03:12:19 UTC
*** Bug 103769 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-11-18 08:09:27 UTC
*** Bug 112919 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-09-12 17:18:19 UTC
*** Bug 192322 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-09-16 14:21:46 UTC
*** Bug 192689 has been marked as a duplicate of this bug. ***
Comment 7 Wolfgang Thiess 2007-09-16 18:23:50 UTC
/etc/init.d/apache2 in apache-2.2.6 needs to be patched as well
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-10-07 13:09:17 UTC
*** Bug 194990 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-15 18:28:01 UTC
*** Bug 195959 has been marked as a duplicate of this bug. ***
Comment 10 Jan Kundrát (RETIRED) gentoo-dev 2007-10-18 14:30:41 UTC
Stuff from comment #7 is still valid.
Comment 11 Alex Barker 2007-10-19 01:53:52 UTC
(In reply to comment #10)
> Stuff from comment #7 is still valid.
> 

Marry Xmas, The current init.d script is a heap of shit, but they apache peepz at gentoo are not interested in fixing it.  So here is one a put together.

#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

opts="configtest fullstatus graceful gracefulstop modules reload"

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

configtest() {
        ebegin "Checking Apache Configuration"
        checkconfig
        eend $?
}

checkconfig() {
        SERVERROOT="${SERVERROOT:-/usr/lib/apache2}"
        if [ ! -d ${SERVERROOT} ]; then
                eerror "SERVERROOT does not exist: ${SERVERROOT}"
                return 1
        fi

        CONFIGFILE="${CONFIGFILE:-/etc/apache2/httpd.conf}"
        [ "${CONFIGFILE#/}" = "${CONFIGFILE}" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}"
        if [ ! -r "${CONFIGFILE}" ]; then
                eerror "Unable to read configuration file: ${CONFIGFILE}"
                return 1
        fi

        APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
        APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
        [ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}"

        APACHE2="/usr/sbin/apache2"

        ${APACHE2} ${APACHE2_OPTS} -t 1>/dev/null 2>&1
        ret=$?
        if [ $ret -ne 0 ]; then
                eerror "Apache2 has detected a syntax error in your configuration files:"
                ${APACHE2} ${APACHE2_OPTS} -t
        fi

        return $ret
}

start() {
        checkconfig || return 1
        ebegin "Starting apache2"
        [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache

        #Original Code: start-stop-daemon --start --exec ${APACHE2} -- ${APACHE2_OPTS} -k start
        ${APACHE2} ${APACHE2_OPTS} -k start
        eend $?
}

stop() {
        checkconfig || return 1
        ebegin "Stopping apache2"

        #Original Code: start-stop-daemon --stop --retry -TERM/5/-KILL/5 --exec ${APACHE2} --pidfile /var/run/apache2.pid
        ${APACHE2} ${APACHE2_OPTS} -k stop
        eend $?
}

reload() {
        RELOAD_TYPE="${RELOAD_TYPE:-graceful}"

        checkconfig || return 1
        if [ "${RELOAD_TYPE}" = "restart" ]; then
                svc_restart
                
		# Original Code
                #RELOAD_SIGNAL="HUP"
                #start-stop-daemon --stop --oknodo --signal HUP --exec ${APACHE2} --pidfile /var/run/apache2.pid
        elif [ "${RELOAD_TYPE}" = "graceful" ]; then
                ebegin "Reloading apache2"
                ${APACHE2} ${APACHE2_OPTS} -k graceful
                eend $?
		
		# Original Code
                #RELOAD_SIGNAL="USR1"
                #start-stop-daemon --stop --oknodo --signal USR1 --exec ${APACHE2} --pidfile /var/run/apache2.pid
        else
                eerror "${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit /etc/conf.d/apache2"
        fi
}

modules() {
        checkconfig || return 1

        ${APACHE2} ${APACHE2_OPTS} -M 2>&1
}

fullstatus() {
	# This is kind of a usless feature...
	checkconfig || return 1

        if pgrep -f "${APACHE2} .*" >/dev/null ; then
                einfo "http status:\tstarted"
        else
                eerror "http status:\tstopped"
        fi
}
Comment 12 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-20 17:15:59 UTC
(In reply to comment #11)
>
> Marry Xmas, The current init.d script is a heap of shit, but they apache peepz
> at gentoo are not interested in fixing it.  So here is one a put together.
> 

WTF?

fixed ...