When emerge -up world is executed, the following warning is issued: Calculating world dependencies \ aux_get(): (0) Error in dev-php/mod_php-4.3.2 ebuild. Check for syntax error or corruption in the ebuild. (--debug) Upon emerge -up --debug world, the following errors are produced:/usr/sbin/ebuild.sh: line 156: [: mod_php: integer expression expected /usr/sbin/ebuild.sh: line 157: [: mod_php: integer expression expected * The PHP eclass needs a PHPSAPI setting! !!! ERROR: dev-php/mod_php-4.3.2 failed. !!! Function inherit, Line 165, Exitcode 0 !!! The PHP eclass needs a PHPSAPI setting! aux_get(): (0) Error in dev-php/mod_php-4.3.2 ebuild. Check for syntax error or corruption in the ebuild. (--debug) The problem resides in php.eclass. Fix follows: --- php.eclass 2003-08-22 17:34:56.000000000 +0000 +++ php.eclass.new 2003-08-22 17:34:47.000000000 +0000 @@ -153,8 +153,8 @@ PHPMAJORVER=${MY_PV//\.*} # These are quick fixups for older ebuilds that didn't have PHPSAPI defined. -[ -z "${PHPSAPI}" ] && [ "${PN}" -eq "php" ] && PHPSAPI="cli" -if [ -z "${PHPSAPI}" ] && [ "${PN}" -eq "mod_php" ]; then +[ -z "${PHPSAPI}" ] && [ "${PN}" = "php" ] && PHPSAPI="cli" +if [ -z "${PHPSAPI}" ] && [ "${PN}" = "mod_php" ]; then use apache2 && PHPSAPI="apache2" || PHPSAPI="apache1" fi Reproducible: Always Steps to Reproduce: 1. emerge -up world Actual Results: Calculating world dependencies \ aux_get(): (0) Error in dev-php/mod_php-4.3.2 ebuild. Check for syntax error or corruption in the ebuild. (--debug) Expected Results: No errors or warnings emerge info Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r2 i686 Intel(R) XEON(TM) MP CPU 1.50GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" 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="/usr/local/portage" USE="x86 3dnow apm arts avi crypt cups encode foomaticdb gif gpm jpeg libg++ mad mikmod mmx motif mpeg ncurses oggvorbis pdflib png quicktime sdl spell svga xml2 xmms xv zlib gdbm berkdb slang readline pam libwww perl python esd imlib gtk opengl tcpd apache2 sasl ssl ldap imap nls mysql -X -gnome -kde -oss -java -qt -truetype" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
*** Bug 27130 has been marked as a duplicate of this bug. ***
heh, -eq is for integers only i thought
Fixed in CVS.