Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27126 - emerge --up world errors on mod_php/4.3.2
Summary: emerge --up world errors on mod_php/4.3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 27130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-22 10:41 UTC by Tom Carroll
Modified: 2003-08-27 22:51 UTC (History)
0 users

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 Tom Carroll 2003-08-22 10:41:41 UTC
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"
Comment 1 SpanKY gentoo-dev 2003-08-22 12:05:33 UTC
*** Bug 27130 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-08-22 12:06:25 UTC
heh, -eq is for integers only i thought
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-27 22:51:31 UTC
Fixed in CVS.