mod_php-5.0.4 inherits apache-module which in turn inherits depend.apache mod_php-5.0.4 then calls need_apache need_apache sets this DEPEND: ## Dependencies for apache 1.x and apache 2.x ## - apache2 must be at least version 2.0.52-r3, this is lowest version ## containing our new overall changes -- trapni (Jan 21 2005) APACHE2_DEPEND=">=net-www/apache-2.0.54-r10" But that makes it depend on only masked ebuilds. And the comment doesn't state a good reason why this is so. Why not set the APACHE2_DEPEND=">=net-www/apache-2.0.52-r3" ? Reproducible: Always Steps to Reproduce: 1. USE="apache2" emerge mod_php ## and unmask mod_php-5.0.4 but I guess all ebuilds that inherit apache-modules.eclass will fail. Actual Results: # emerge -avt mod_php These are the packages that I would merge, in reverse order: Calculating dependencies - !!! All ebuilds that could satisfy ">=net-www/apache-2.0.54-r10" have been masked. !!! One of the following masked packages is required to complete your request: - net-www/apache-2.0.54-r11 (masked by: ~x86 keyword) - net-www/apache-2.0.54-r10 (masked by: ~x86 keyword) Expected Results: installed apache-2.0.54-r7 # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 6 2005, 13:39:17)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.esoft.dk/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LINGUAS="da" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/esoft-portage" SYNC="rsync://mirror.esoft.dk/gentoo-portage" USE="x86 X alsa apache2 apm arts avi bash-completion bcmath berkdb bitmap-fonts bzlib calendar crypt ctype cups curl dba emboss encode exif fam flac flash foomaticdb fortran ftp gd gdbm gif gpm graphviz gtk2 iconv imagemagick imap imlib ipv6 jabber java jbig jpeg junit kde lcms libg++ libwww mad mhash mikmod mime ming mmx motif mozilla mozsvg mp3 mpeg msn mysql ncurses nls odbc ogg oggvorbis opengl oss pam pcntl pcre pdflib perl php png posix postgres python qt quicktime readline samba sdl session slang snmp soap sockets spell spl sse sse2 ssl svga tcpd tidy tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf xine xml xml2 xmms xsl xv zlib linguas_da userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Re-assignment.
mod_php 5 uses the new config layout, which is why it inherits apache-module.eclass, and so on. Apache 2.0.54-r10 is the version that supports the new-style config, others that would fill the dependency you gave use the old-style config, which would break when using mod_php 5. Marking invalid.