Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104242 - apache-2.0.54-r14 fails with "multiple mpms specified" (ebuild unpack && ebuild compile)
Summary: apache-2.0.54-r14 fails with "multiple mpms specified" (ebuild unpack && ebui...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 03:16 UTC by Georgi Georgiev
Modified: 2005-09-17 23:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2005-08-30 03:16:35 UTC
apache-2.0.54-r14 *always* fails with the message:

 * You attempted to specify the MPM $foo, but MPM $foo was already specified.
 * The apache ebuilds no longer support multiple MPM installations.  Please choose
 * one MPM and reinstall.

if I try to merge it with "ebuild". I.e, if I first "ebuild apache-2.0...
unpack" and then "ebuild apache... compile".

The problem is that when the "setup" EBUILD_PHASE is entered on the first call
of ebuild (with unpack), $mpm is set to some value, and the second time "ebuild"
is run (with compile in the above example) the "setup" PHASE is entered again
but this time mpm already has a value. Would you consider the following fix:

-    if [ -n "${mpm}"]; then
+    if [ -n "${mpm}" -a ! "${mpm}" = "${nmpm}" ]; then
        mpm_die ${nmpm} ${mpm}
    fi
Comment 1 Georgi Georgiev 2005-09-12 01:46:00 UTC
It also gives out the error when doing "emerge -b apache" (it doesn't die out
though).
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-17 20:50:43 UTC
I am unable to reproduce this error message. Please provide exact commands you
are running, and an emerge info.

Comment 3 Georgi Georgiev 2005-09-17 22:56:45 UTC
(In reply to comment #2)
> I am unable to reproduce this error message. Please provide exact commands you
> are running, and an emerge info.

Oh, That's easy.

# emerge -pv apache

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/apache-2.0.54-r30  +apache2 -debug -doc +ldap
-mpm-leader -mpm-peruser +mpm-prefork -mpm-threadpool -mpm-worker -no-suexec
(-selinux) +ssl -static-modules -threads 0 kB 

# ebuild /usr/portage/net-www/apache/apache-2.0.54-r30.ebuild unpack
<snip>
# ebuild /usr/portage/net-www/apache/apache-2.0.54-r30.ebuild compile
...
>>> md5 src_uri ;-) httpd-2.0.54.tar.bz2
>>> md5 src_uri ;-) gentoo-apache-2.0.54-r30-20050910.tar.bz2
 * 
 * LFS support has been removed due to incompatibilites with other packages.
 * You _will_ have to re-emerge any Apache modules you have installed, or
 * they will likely misbehave/segfault.
 * 
 * 
 * Multiple MPM support has been disabled due to problems with external
 * modules.  If you have relied on this functionality you will need
 * to find another solution.  The Gentoo Apache team apologizes for
 * any inconvienence this may cause you.
 * 
 * You attempted to specify the MPM prefork, but MPM prefork was already specified.
 * The apache ebuilds no longer support multiple MPM installations.  Please choose
 * one MPM and reinstall.

In my overlay I have this:

    if [ -n "${mpm}" -a "${mpm}" != "${nmpm}" ]; then

And emerge info is this:

# emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.13.1-d1 i686)
=================================================================
System uname: 2.6.13.1-d1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.90.0.1.1-r4, 2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/vmware/lib/modules/binary /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -mmmx -msse -msse2"
DISTDIR="/usr/portage-distfiles"
FEATURES="autoconfig collision-protect noinfo sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS=" ftp://ftp.gg3.net/pub/linux/gentoo"
LANG="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-dell/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gg3.net/gentoo-portage"
USE="x86 X a52 aalib acl acpi alsa apache2 avi berkdb bitmap-fonts bzip2 bzlib
canna cdparanoia cdr cid cjk crypt cscope cups dba dbm dga djbfft dlloader dts
dv dvd dvdread edl eds emboss encode exif ext-iiimf fam fbcon firefox flac
font-server foomaticdb fortran ftp fuse gd gdbm gif gimpprint glut gmp gnutls
gstreamer gtk gtk2 gtkhtml guile icc iconv ieee1394 imagemagick imap imlib
inifile ipv6 java joystick jpeg junit kqemu lcms ldap libcaca libg++ libwww live
lzo mad maildir mailwrapper matroska memlimit mikmod mime mmx mmxext mng motif
moznocompose moznoirc moznomail mp3 mpeg mpm-prefork mule mysql mysqli ncurses
net network nls nntp nptl nvidia offensive ogg oggvorbis opengl operanom2 pam
pcre pdflib perl plotutils png posix ppds pwdb python qt quicktime readline real
samba scanner sdl session sharedext sharedmem silc slang snmp speedo speex spell
sse sse2 ssl tcpd tetex tiff truetype truetype-fonts type1 type1-fonts unicode
usb vhosts vorbis win32codecs wmf wxwindows xgetdefault xinerama xml xml2 xpm
xsl xv xvid xvmc zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 4 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-17 23:25:21 UTC
It turns out this is only triggered if a mpm-* USE-flag is set, that's why I was
having issues reproducing it.

It's now fixed in CVS.