diff --git a/libprelude-5.0.0-fix-for-swig4.patch b/libprelude-5.0.0-fix-for-swig4.patch new file mode 100644 index 0000000..7f8f9db --- /dev/null +++ b/libprelude-5.0.0-fix-for-swig4.patch @@ -0,0 +1,12 @@ +diff -up libprelude-5.0.0/bindings/python/libpreludecpp-python.i.swig4 libprelude-5.0.0/bindings/python/libpreludecpp-python.i +--- libprelude-5.0.0/bindings/python/libpreludecpp-python.i.swig4 2019-03-05 08:01:57.511426562 +0100 ++++ libprelude-5.0.0/bindings/python/libpreludecpp-python.i 2019-03-05 08:02:04.926557632 +0100 +@@ -40,7 +40,7 @@ + %feature("python:slot", "tp_repr", functype="reprfunc") *::toString; + %feature("python:slot", "mp_subscript", functype="binaryfunc") *::get; + %feature("python:slot", "mp_ass_subscript", functype="objobjargproc") *::set; +-%feature("python:slot", "tp_hash") Prelude::IDMEFValue::getType; ++%feature("python:slot", "tp_hash", functype="hashfunc") Prelude::IDMEFValue::getType; + + /* + * IDMEFClass diff --git a/libprelude.spec b/libprelude.spec index 6738860..f136e2a 100644 --- a/libprelude.spec +++ b/libprelude.spec @@ -7,7 +7,7 @@ Name: libprelude Version: 5.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Secure Connections between all Sensors and the Prelude Manager # Prelude is GPL-2.0+ # libmissing is LGPL-2.1+ @@ -27,6 +27,7 @@ Patch4: libprelude-5.0.0-fix_pthread_atfork.patch # https://www.prelude-siem.org/issues/887 Patch5: libprelude-5.0.0-fix_prelude_tests_timer.patch Patch6: libprelude-5.0.0-disable_gnulib_test_lock.patch +Patch7: libprelude-5.0.0-fix-for-swig4.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: bison @@ -223,6 +224,8 @@ find %{buildroot} -name '.packlist' -delete %doc AUTHORS ChangeLog README NEWS %changelog +* Tue May 21 2019 Jitka Plesnikova - 5.0.0-2 +- Fix build with SWIG 4.0.0 (#1707412) * Tue Feb 26 2019 Thomas Andrejak - 5.0.0-1 - Bump version 5.0.0, Fixing #1629893