Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42442 - Monkeyd PHP support requires php-cgi, but no way of telling
Summary: Monkeyd PHP support requires php-cgi, but no way of telling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 20:03 UTC by Jason H.
Modified: 2004-02-22 14:14 UTC (History)
0 users

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


Attachments
Adds "php" to RDEPEND and IUSE, as well as a breif warning. (monkeyd-0.8.2.ebuild.diff,447 bytes, patch)
2004-02-22 13:08 UTC, Jason H.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason H. 2004-02-21 20:03:54 UTC
For full PHP support monkeyd requires dev-php/php-cgi. Doccumentation and examples also point to a php binary other than the correct one for use in the config file "/etc/monkeyd/monkey.conf" (/usr/bin/php instead of /usr/bin/php-cgi) which does not work. This is quite frustrating, confusing, and can send many a sysadmin down a long dark windy road.

Reproducible: Always
Steps to Reproduce:
1. Install monkeyd
2. Fiddle with PHP for hours not totally sure of the problem.
3. Get frustrated and notice something new, and alter the config file in the correct manner.

Actual Results:  
PHP round peg doesn't fit into monkeyd square hole without alot of nurting and
attention.

Expected Results:  
Although the php use flag isn't intended for such purposes, perhaps getting the
proper dependancies would be a good idea? Or at the very least a warning at the
end of the ebuild. Perhaps even an alternate configuration file to make life
simpler for lazy admins who just want a very simple http server for their intranet.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.netnitco.net"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm arts berkdb clamav crypt cups fam foomaticdb gdbm imap libg++ libwww
mad maildir ncurses nls nocardbus oss pam perl python readline regexp samba sasl
slang slp socks5 spell ssl tcpd usb x86 xml xml2 zlib"
Comment 1 SpanKY gentoo-dev 2004-02-22 00:55:08 UTC
so, adding 'php? ( dev-php/php-cgi )' to the RDEPEND would work for you ?
Comment 2 Jason H. 2004-02-22 13:08:08 UTC
Created attachment 26121 [details, diff]
Adds "php" to RDEPEND and IUSE, as well as a breif warning.

Chose to use ewarn instead of einfo since the binary /usr/bin/php-cgi is very
easy to miss. Let me know if there's any problem with this.
Comment 3 SpanKY gentoo-dev 2004-02-22 14:14:58 UTC
i added the RDEPEND but i changed it so it'll just updated the .conf file for you:

    if use php ; then
        dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
        dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
    fi