From 57787f647e0f98ffd75dc18b41201fd2601a9160 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 20 Nov 2017 16:12:45 +0100 Subject: [PATCH] Prevent installation of Py2 and Py3 mod_wsgi FreeIPA is either compatible with Python 2 mod_wsgi or Python 3 mod_wsgi. mod_wsgi can not coexist in the same Apache process as mod_wsgi_python3. When both mod_wsgi and python3-mod_wsgi are installed, the first loaded module wins and the other one is never loaded. Add conflict on the other module to prevent installation of both modules. https://pagure.io/freeipa/issue/7161 Signed-off-by: Christian Heimes Reviewed-By: Stanislav Laznicka --- freeipa.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freeipa.spec.in b/freeipa.spec.in index 7c39d343d..7e9ad5f32 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -304,14 +304,16 @@ Requires: httpd >= 2.4.6-31 Requires(preun): python3 Requires(postun): python3 Requires: python3-gssapi >= 1.2.0-5 -Requires: python3-mod_wsgi Requires: python3-systemd +Requires: python3-mod_wsgi +Conflicts: mod_wsgi %else Requires(preun): python2 Requires(postun): python2 Requires: python2-gssapi >= 1.2.0-5 Requires: python2-systemd Requires: mod_wsgi +Conflicts: python3-mod_wsgi %endif Requires: mod_auth_gssapi >= 1.5.0 # 1.0.14-3: https://bugzilla.redhat.com/show_bug.cgi?id=1431206