summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-03-27 19:18:42 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-04-27 16:01:25 +0200
commit6281d2cb11113b133900fc184f7ab9c30e001d71 (patch)
treeaac44176268f7083f58e262d983c2c500aa3f75f /eclass/apache-2.eclass
parentapache-2.eclass: avoid multiple selected MPMs by REQUIRED_USE (diff)
downloadgentoo-6281d2cb11113b133900fc184f7ab9c30e001d71.tar.gz
gentoo-6281d2cb11113b133900fc184f7ab9c30e001d71.tar.bz2
gentoo-6281d2cb11113b133900fc184f7ab9c30e001d71.zip
apache-2.eclass: reflect MPM dependencies on thread useflag in REQUIRED_USE
Diffstat (limited to 'eclass/apache-2.eclass')
-rw-r--r--eclass/apache-2.eclass24
1 files changed, 10 insertions, 14 deletions
diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index ee70b2f222f5..6f58331755cd 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -110,8 +110,18 @@ _apache2_set_mpms() {
REQUIRED_USE="${REQUIRED_USE} !apache2_mpms_${ompm}"
fi
done
+
+ if has ${mpm} ${IUSE_MPMS_FORK} ; then
+ REQUIRED_USE="${REQUIRED_USE} !threads"
+ else
+ REQUIRED_USE="${REQUIRED_USE} threads"
+ fi
REQUIRED_USE="${REQUIRED_USE} )"
done
+
+ if [[ "${PV}" != 2.2* ]] ; then
+ REQUIRED_USE="${REQUIRED_USE} apache2_mpms_prefork? ( !apache2_modules_http2 )"
+ fi
}
_apache2_set_mpms
unset -f _apache2_set_mpms
@@ -189,20 +199,6 @@ setup_mpm() {
elog
fi
fi
-
- if has ${MY_MPM} ${IUSE_MPMS_THREAD} && ! use threads ; then
- eerror "You have selected a threaded MPM but USE=threads is disabled"
- die "invalid use flag combination"
- fi
-
- if has ${MY_MPM} ${IUSE_MPMS_FORK} && use threads ; then
- eerror "You have selected a non-threaded MPM but USE=threads is enabled"
- die "invalid use flag combination"
- fi
-
- if [[ "${PV}" != 2.2* ]] && [[ "${MY_MPM}" = *prefork* ]] && use apache2_modules_http2 ; then
- die "http2 does not work with prefork MPM."
- fi
}
# @VARIABLE: MODULE_CRITICAL