[packages/libprelude] - fix for python 3.8
hawk
hawk at pld-linux.org
Sun Dec 15 00:45:38 CET 2019
commit 9653f4077f38abd639d54fb3a72cfea51818e3d1
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sun Dec 15 00:43:21 2019 +0100
- fix for python 3.8
libprelude.spec | 4 +++-
python-3.8-fix.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
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);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libprelude.git/commitdiff/9653f4077f38abd639d54fb3a72cfea51818e3d1
More information about the pld-cvs-commit
mailing list