Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69793 - apache-1.3.33/mod_ssl-2.8.21 circular dependancy
Summary: apache-1.3.33/mod_ssl-2.8.21 circular dependancy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 20:15 UTC by David Cuddeback
Modified: 2004-11-05 19:16 UTC (History)
0 users

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


Attachments
apache-1.3.33-r1 ebuild with mod_ssl as PDEPEND (apache-1.3.33-r1.ebuild,6.78 KB, text/plain)
2004-11-02 06:21 UTC, Eric Brown
Details
mod_ssl-2.8.21-r1.ebuild (mod_ssl-2.8.21-r1.ebuild,2.37 KB, text/plain)
2004-11-02 06:22 UTC, Eric Brown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Cuddeback 2004-11-01 20:15:06 UTC
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"
Comment 1 David Cuddeback 2004-11-01 20:21:04 UTC
I forgot to mention the workaround for this is:
USE="-ssl" emerge apache
emerge mod_ssl
Comment 2 Eric Brown 2004-11-02 05:16:54 UTC
confirmed.

Maybe we should move mod_ssl to PDEPEND
Comment 3 Eric Brown 2004-11-02 05:53:04 UTC
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

Comment 4 Eric Brown 2004-11-02 06:21:11 UTC
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...
Comment 5 Eric Brown 2004-11-02 06:22:05 UTC
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)
Comment 6 Eric Brown 2004-11-02 06:23:39 UTC
That's my quick bugfix, i tested it as follows:
emerge -C mod_ssl
emerge apache

(..it all installed, remains untested)
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2004-11-02 07:37:45 UTC
this is fixed in the apache herd overlay
Comment 8 Eric Brown 2004-11-02 10:05:49 UTC
does that translate into a bugfix in portage soon?
Comment 9 Michael Tindal (RETIRED) gentoo-dev 2004-11-05 19:16:49 UTC
This is fixed in CVS now.