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
Created attachment 15841 [details, diff] diff for mod_php-4.3.2-r4 ebuild
this is something that is being integrated into portage ... policy says that you must inherit eclasses before anything else
"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 ?
sorry, i read it as if it were the opposite
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