forked from pool/libselinux
Accepting request 757382 from home:jsegitz:branches:security:SELinux
- Added swig4_moduleimport.patch to prevent import errors due to SWIG 4 OBS-URL: https://build.opensuse.org/request/show/757382 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=120
This commit is contained in:
parent
3eb0216478
commit
bdda6228da
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 16:04:41 UTC 2019 - Johannes Segitz <jsegitz@suse.de>
|
||||
|
||||
- Added swig4_moduleimport.patch to prevent import errors due to
|
||||
SWIG 4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 17:21:00 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -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<ver>
|
||||
Patch5: python3.8-compat.patch
|
||||
Patch6: swig4_moduleimport.patch
|
||||
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
|
13
swig4_moduleimport.patch
Normal file
13
swig4_moduleimport.patch
Normal file
@ -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"
|
||||
%}
|
Loading…
Reference in New Issue
Block a user