Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511658 - >=www-servers/apache-2.4: multiple MPMs not supported
Summary: >=www-servers/apache-2.4: multiple MPMs not supported
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://httpd.apache.org/docs/2.4/mpm....
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 551078
  Show dependency tree
 
Reported: 2014-05-28 01:46 UTC by Michael Orlitzky
Modified: 2021-04-28 19:22 UTC (History)
5 users (show)

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


Attachments
apache-2.eclsas.patch (apache-2.eclass.patch,2.70 KB, patch)
2016-10-11 19:00 UTC, Brian Evans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2014-05-28 01:46:58 UTC
In apache 2.4, multiple MPMs are supported when compiled as shared modules. The choice of MPM is then made at runtime using LoadModule (see URL).

This doesn't work in Gentoo:

  $ APACHE2_MPMS="worker prefork" emerge -1 apache
  ...
   * You have selected more then one mpm USE-flag.
   * Only one MPM is supported.
   * ERROR: www-servers/apache-2.4.9-r3::gentoo failed (setup phase):
   *   more then one mpm was specified

There's a restriction in the eclass, but to support more than one, the --enable-shared-mpms configure option will need to be used.

Note: at the moment, this gives us a correspondence between USE=threads and APACHE2_MPMS; i.e. I can tell if the user has a threaded MPM selected by the presence of USE=threads, since he can have only one MPM selected. I'm going to abuse that fact in the mpm_itk ebuild, so if we ever allow multiple MPMs, please ping me to update the USE depencency.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-28 06:20:35 UTC
Woah... this will require quite some changes in apache-2.eclass. I cannot promise a quick fix.
Comment 2 Michael Orlitzky gentoo-dev 2014-05-28 13:12:00 UTC
No problem, I'm not asking for one. Nobody else missed it, and it can't affect upgraders.

I opened this mostly so I wouldn't feel guilty depending on apache[-threads] in mpm_itk.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2016-10-11 19:00:07 UTC
Created attachment 449894 [details, diff]
apache-2.eclsas.patch

Here are small changes to apache-2.eclass to support multiple MPMs by a variable in the ebuild