diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index 54f4673..a591964 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 16 16:04:41 UTC 2019 - Johannes Segitz + +- Added swig4_moduleimport.patch to prevent import errors due to + SWIG 4 + ------------------------------------------------------------------- Wed Oct 30 17:21:00 CET 2019 - Matej Cepl diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index 961c478..86e8c60 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -34,6 +34,7 @@ Patch4: readv-proto.patch # PATCH-FIX-UPSTREAM python3.8-compat.patch mcepl@suse.com # Make linking working even when default pkg-config doesn’t provide -lpython Patch5: python3.8-compat.patch +Patch6: swig4_moduleimport.patch BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: pcre-devel BuildRequires: python-rpm-macros diff --git a/swig4_moduleimport.patch b/swig4_moduleimport.patch new file mode 100644 index 0000000..3e8ac0b --- /dev/null +++ b/swig4_moduleimport.patch @@ -0,0 +1,13 @@ +Index: libselinux-2.9/src/selinuxswig_python.i +=================================================================== +--- libselinux-2.9.orig/src/selinuxswig_python.i 2019-03-15 10:32:30.000000000 +0000 ++++ libselinux-2.9/src/selinuxswig_python.i 2019-12-16 15:03:46.133451617 +0000 +@@ -6,7 +6,7 @@ + #define DISABLE_RPM + #endif + +-%module selinux ++%module(moduleimport="import $module") selinux + %{ + #include "selinux/selinux.h" + %}