From beda4770360d4b69f2990f5a335454fbf9f01fea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Wed, 11 Dec 2024 19:47:13 +0100
Subject: [PATCH] Install mod_wsgi from updates-testing in service
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Nikola Forró <nforro@redhat.com>
---
 files/install-deps.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/files/install-deps.yaml b/files/install-deps.yaml
index 5d3ae8f1f..aa8d0e971 100644
--- a/files/install-deps.yaml
+++ b/files/install-deps.yaml
@@ -37,6 +37,21 @@
           - python-setuptools_scm
         state: present
         install_weak_deps: False
+    - name: Install mod_wsgi from updates-testing
+      # mod_wsgi < 5.0.2 has issues with Python 3.13:
+      #
+      # [wsgi:error] [pid 13:tid 78] Exception ignored in: <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'>
+      # [wsgi:error] [pid 13:tid 78] RuntimeError: log object has expired
+      #
+      # install it from updates-testing (this can be removed when
+      # https://bodhi.fedoraproject.org/updates/FEDORA-2024-235cc1f0b3 reaches stable)
+      ansible.builtin.dnf:
+        enablerepo:
+          - updates-testing
+        name:
+          - python3-mod_wsgi
+        state: latest
+        install_weak_deps: False
     - import_tasks: tasks/setup-copr-repos.yaml
     - name: Install ogr, specfile and packit from copr
       ansible.builtin.dnf: