Fix FTBFS with Python 3.8 (#1706207)

This commit is contained in:
Thomas Andrejak 2019-07-13 09:21:00 +02:00
parent 7766bf36b8
commit 099aec879b
3 changed files with 2051 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- ./bindings/python/_preludedb.cxx 2019-07-13 08:39:59.744285379 +0200
+++ ./bindings/python/_preludedb.cxx 2019-07-13 08:41:47.364117843 +0200
@@ -3133,7 +3133,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);

View File

@ -5,7 +5,7 @@
Name: libpreludedb Name: libpreludedb
Version: 5.0.0 Version: 5.0.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Framework for easy access to the IDMEF database Summary: Framework for easy access to the IDMEF database
# Prelude is GPL-2.0+ # Prelude is GPL-2.0+
# libmissing is LGPL-2.1+ # libmissing is LGPL-2.1+
@ -16,6 +16,8 @@ Source0: https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{versio
Patch0: libpreludedb-5.0.0-manpages.patch Patch0: libpreludedb-5.0.0-manpages.patch
# https://www.prelude-siem.org/issues/867 # https://www.prelude-siem.org/issues/867
Patch1: libpreludedb-5.0.0-undefined_non_weak_symbol.patch Patch1: libpreludedb-5.0.0-undefined_non_weak_symbol.patch
Patch2: libpreludedb-5.0.0-bump_swig_files_to_swig4.patch
Patch3: libpreludedb-5.0.0-fix_py38.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: bison BuildRequires: bison
@ -203,6 +205,9 @@ chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2sqlite.sh
%doc ChangeLog README NEWS %doc ChangeLog README NEWS
%changelog %changelog
* Sat Jul 13 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.0-2
- Fix FTBFS with Python 3.8 (#1706207)
* Tue Feb 26 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.0-1 * Tue Feb 26 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.0-1
- Bump version 5.0.0 - Bump version 5.0.0