Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509922 - www-servers/apache-2.4 defaults to worker mpm, upstream defaults to event mpm
Summary: www-servers/apache-2.4 defaults to worker mpm, upstream defaults to event mpm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-09 15:47 UTC by Hanno Böck
Modified: 2014-05-22 14:03 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 Hanno Böck gentoo-dev 2014-05-09 15:47:55 UTC
Currently it seems when installing apache-2.4.x on Gentoo without actively setting any MPM and using threads it sets the default to worker:

The corresponding eclass code is this:
        if [[ -z "${MY_MPM}" ]] ; then
                if use threads ; then
                        MY_MPM=worker


However, the upstream default (at least on all major plattforms) is the event mpm. Is there any reason Gentoo moves away from the upstream default here? I think usually a user that doesn't set any MPM will expect it to be "the standard", which for apache 2.4 is event.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-16 08:01:47 UTC
I agree with you on that but we should make sure to keep upstream's default for apache-2.2 as well. Do you happen to know if they default to worker mpm for apache-2.2?
Comment 2 Hanno Böck gentoo-dev 2014-05-16 12:34:54 UTC
I think in 2.2 event was considered experimental by upstream. But frankly, I don't really care as I would always recommend to avoid 2.2 if possible.

But there's an obvious strategy here: Don't pass any mpm-options to the configure script if the user doesn't set anything. This will always choose the default, independent of the apache version.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-22 07:04:09 UTC
(In reply to Hanno Boeck from comment #2)
> But there's an obvious strategy here: Don't pass any mpm-options to the
> configure script if the user doesn't set anything. This will always choose
> the default, independent of the apache version.

This would defeat purpose of the thread USE flag which I'm not willing to give up right now.
I gonna change the eclass to use event worker for apache-2.4 in case thread USE flag is enabled and APACHE2_MPMS is empty or unset.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-22 14:03:29 UTC
+  22 May 2014; Lars Wendler <polynomial-c@gentoo.org> apache-2.eclass:
+  Eclass cleanup. Now requires >=EAPI-4 ebuilds. Fixed bugs #509922 and
+  #503640.
+