It appears as though net-www/apache-1.3.33 and net-www/mod_ssl-2.8.21 depend on each other when Apache's "ssl" USE flag is set. The main problem is apache depending on mod_ssl because this tells Portage to emerge mod_ssl *before* apache, but mod_ssl need's Apache's apxs program to install (see "actual results"). The following is in apache-1.3.33's DEPEND string, but not 1.3.32's: ssl? ( =net-www/mod_ssl-${mod_ssl_dep} ) !<net-www/mod_ssl-${mod_ssl_dep} Perhaps that should be moved to RDEPEND? Reproducible: Always Steps to Reproduce: Without apache or mod_ssl installed, USE="ssl" emerge apache will always fail. Actual Results: >>> md5 src_uri ;-) mod_ssl-2.8.21-1.3.32.tar.gz >>> Unpacking source... >>> Unpacking mod_ssl-2.8.21-1.3.32.tar.gz to /var/tmp/portage/mod_ssl-2.8.21/work >>> Source unpacked. Configuring mod_ssl/2.8.21 for Apache/1.3.32 ./configure:Error: APXS program not found: /usr/sbin/apxs !!! ERROR: net-www/mod_ssl-2.8.21 failed. !!! Function src_compile, Line 40, Exitcode 1 !!! bad ./configure Expected Results: Successful emerge of apache and mod_ssl, in that order. # emerge info Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/share/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts crypt cups dvd encode f77 foomaticdb gdbm gif gpm gtk gtk2 imlib java javascript jpeg kde libg++ libwww mad mikmod mmx motif mozdevelop mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xprint xv zlib"
I forgot to mention the workaround for this is: USE="-ssl" emerge apache emerge mod_ssl
confirmed. Maybe we should move mod_ssl to PDEPEND
One more word on this: It looks like the build needs to be built with ssl headers for the DSO to actually work. so you should probably do: USE="-ssl" emerge apache emerge mod_ssl emerge apache
Created attachment 43159 [details] apache-1.3.33-r1 ebuild with mod_ssl as PDEPEND Moved the mod_ssl DEPEND stuff to PDEPEND, also had to OVERRIDE ${PVR} to use the regular 1.3.33 patches.. also had to change mod_ssl_dep to use the new -r1 mod_ssl...
Created attachment 43160 [details] mod_ssl-2.8.21-r1.ebuild only changed 1 line so that it works with apache 1.3.33-r1 instead of just 1.3.33 (--force)
That's my quick bugfix, i tested it as follows: emerge -C mod_ssl emerge apache (..it all installed, remains untested)
this is fixed in the apache herd overlay
does that translate into a bugfix in portage soon?
This is fixed in CVS now.