Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26308 - mod_php does not pull in apache
Summary: mod_php does not pull in apache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-09 19:03 UTC by Marius Mauch (RETIRED)
Modified: 2003-08-11 00:44 UTC (History)
0 users

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


Attachments
diff for mod_php-4.3.2-r4 ebuild (mod_php.diff,560 bytes, patch)
2003-08-09 19:04 UTC, Marius Mauch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-08-09 19:03:54 UTC
When I try to emerge mod_php it won't install apache although it is in DEPEND:

emerge -p mod_php

[ebuild  N    ] app-text/sablotron-0.97  
[ebuild  N    ] dev-php/mod_php-4.3.2-r4

It works if the eclass is inherited before the DEPEND= statement (see attachment):

emerge -p mod_php

[ebuild  N    ] net-www/apache-2.0.47
[ebuild  N    ] app-text/sablotron-0.97
[ebuild  N    ] dev-php/mod_php-4.3.2-r4
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-08-09 19:04:31 UTC
Created attachment 15841 [details, diff]
diff for mod_php-4.3.2-r4 ebuild
Comment 2 SpanKY gentoo-dev 2003-08-09 19:45:23 UTC
this is something that is being integrated into portage ... 
 
policy says that you must inherit eclasses before anything else 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-08-09 20:20:30 UTC
"It works if the eclass is inherited before the DEPEND= statement:"
"policy says that you must inherit eclasses before anything else"

what am I missing here ?
Comment 4 SpanKY gentoo-dev 2003-08-09 20:51:59 UTC
sorry, i read it as if it were the opposite 
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 00:44:30 UTC
Your specific fix would totally break multiple apache installs, so I have made the following fix that I believe is what you meant.
Index: mod_php-4.3.2-r5.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.2-r5.ebuild,v
retrieving revision 1.1
diff -u -3 -p -r1.1 mod_php-4.3.2-r5.ebuild
--- mod_php-4.3.2-r5.ebuild     30 Jul 2003 08:50:42 -0000      1.1
+++ mod_php-4.3.2-r5.ebuild     11 Aug 2003 07:43:41 -0000
@@ -9,10 +9,6 @@ KEYWORDS="~x86 ~sparc ~ppc ~alpha ~hppa
 EXCLUDE_DB4_FIX=1
 EXCLUDE_PEAR_FIX=1

-DEPEND="${DEPEND}
-       >=net-www/apache-1.3.26-r2
-       apache2? ( >=net-www/apache-2.0.43-r1 ) "
-
 detectapache() {
        local domsg=
        [ -n "$1" ] && domsg=1
@@ -51,7 +47,15 @@ SLOT="${APACHEVER}"

 PHPSAPI="apache${APACHEVER}"

+# BIG FAT WARNING!
+# the php eclass requires the PHPSAPI setting!
+# In this case the PHPSAPI setting is dependant on the detectapache function
+# above this point as well!
 inherit php eutils
+
+DEPEND="${DEPEND}
+       >=net-www/apache-1.3.26-r2
+       apache2? ( >=net-www/apache-2.0.43-r1 )"

 src_unpack() {
        php_securityupgrade