From 9653f4077f38abd639d54fb3a72cfea51818e3d1 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 15 Dec 2019 00:43:21 +0100 Subject: [PATCH] - fix for python 3.8 --- libprelude.spec | 4 +++- python-3.8-fix.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 python-3.8-fix.patch diff --git a/libprelude.spec b/libprelude.spec index d2cdc1d..c1dfc95 100644 --- a/libprelude.spec +++ b/libprelude.spec @@ -15,7 +15,7 @@ Summary: The Prelude library Summary(pl.UTF-8): Biblioteka Prelude Name: libprelude Version: 5.1.1 -Release: 2 +Release: 3 License: GPL v2 or commercial Group: Libraries #Source0Download: https://www.prelude-siem.org/projects/prelude/files @@ -24,6 +24,7 @@ Source0: https://www.prelude-siem.org/attachments/download/1181/%{name}-%{versio Patch0: python-install.patch Patch1: %{name}-lua.patch Patch2: gtk-doc-1.32.patch +Patch3: python-3.8-fix.patch URL: https://www.prelude-siem.org/ BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.9 @@ -231,6 +232,7 @@ Wiązania języka Ruby do libprelude. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %if %{with python3} # regenerate with fresh swig for python 3.5+ diff --git a/python-3.8-fix.patch b/python-3.8-fix.patch new file mode 100644 index 0000000..187c091 --- /dev/null +++ b/python-3.8-fix.patch @@ -0,0 +1,11 @@ +--- libprelude-5.1.0/bindings/python/_prelude.cxx 2019-07-12 07:19:49.365476420 +0200 ++++ libprelude-5.1.0/bindings/python/_prelude.cxx 2019-07-12 07:20:02.458213034 +0200 +@@ -3132,7 +3132,7 @@ + + SWIGINTERN void + SwigPyStaticVar_dealloc(PyDescrObject *descr) { +- _PyObject_GC_UNTRACK(descr); ++ PyObject_GC_UnTrack(descr); + Py_XDECREF(PyDescr_TYPE(descr)); + Py_XDECREF(PyDescr_NAME(descr)); + PyObject_GC_Del(descr); -- 2.44.0