From cfc50baa6a7d8d77f10843f8c4ae5716e229be16 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Sun, 11 Feb 2024 20:29:10 +0100 Subject: [PATCH] Resolve one Python 3.13 compatibility issue Include in SWIG code to prevent errors about implicit declaration of function 'isspace' & 'isxdigit'. bz#2245793 --- OpenIPMI-py313compat.patch | 12 ++++++++++++ OpenIPMI.spec | 1 + 2 files changed, 13 insertions(+) create mode 100644 OpenIPMI-py313compat.patch diff --git a/OpenIPMI-py313compat.patch b/OpenIPMI-py313compat.patch new file mode 100644 index 0000000..60845b4 --- /dev/null +++ b/OpenIPMI-py313compat.patch @@ -0,0 +1,12 @@ +diff -ur OpenIPMI-2.0.34/swig/OpenIPMI.i OpenIPMI-2.0.34-python/swig/OpenIPMI.i +--- OpenIPMI-2.0.34/swig/OpenIPMI.i 2024-02-11 19:52:41.555777279 +0100 ++++ OpenIPMI-2.0.34-python/swig/OpenIPMI.i 2024-02-11 20:11:59.061132776 +0100 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + #ifdef HAVE_GETADDRINFO + #include +Only in OpenIPMI-2.0.34-python/swig: OpenIPMI.i~ diff --git a/OpenIPMI.spec b/OpenIPMI.spec index 8edb0de..1aedd17 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -15,6 +15,7 @@ Patch1: 0001-man.patch Patch2: OpenIPMI-ax-python.patch Patch3: OpenIPMI-sysconfig.patch Patch4: OpenIPMI-c99.patch +Patch5: OpenIPMI-py313compat.patch BuildRequires: make BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel