Accepting request 1208112 from security:SELinux
OBS-URL: https://build.opensuse.org/request/show/1208112 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsemanage?expand=0&rev=62
This commit is contained in:
commit
a821aca6b8
257
1231587-build-libsemanage-with-swig-4.3.0.patch
Normal file
257
1231587-build-libsemanage-with-swig-4.3.0.patch
Normal file
@ -0,0 +1,257 @@
|
||||
Index: libsemanage-3.7/src/semanageswig_python.i
|
||||
===================================================================
|
||||
--- libsemanage-3.7.orig/src/semanageswig_python.i
|
||||
+++ libsemanage-3.7/src/semanageswig_python.i
|
||||
@@ -111,7 +111,7 @@
|
||||
}
|
||||
|
||||
%typemap(argout) char** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_FromCharPtr(*$1));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_FromCharPtr(*$1), $isvoid);
|
||||
free(*$1);
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
NULL, NULL, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,7 +148,7 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_module_info_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
/** module key typemaps **/
|
||||
@@ -160,7 +160,7 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_module_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
/** context typemaps **/
|
||||
@@ -172,7 +172,7 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_context_t** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
/** boolean typemaps **/
|
||||
@@ -197,7 +197,7 @@
|
||||
(void (*) (void*)) &semanage_bool_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,11 +207,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_bool_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_bool_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_bool_key_t **(semanage_bool_key_t *temp=NULL) {
|
||||
@@ -240,7 +240,7 @@
|
||||
(void (*) (void*)) &semanage_fcontext_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -250,11 +250,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_fcontext_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_fcontext_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_fcontext_key_t **(semanage_fcontext_key_t *temp=NULL) {
|
||||
@@ -284,7 +284,7 @@
|
||||
(void (*) (void*)) &semanage_iface_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -294,11 +294,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_iface_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_iface_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_iface_key_t **(semanage_iface_key_t *temp=NULL) {
|
||||
@@ -328,7 +328,7 @@
|
||||
(void (*) (void*)) &semanage_seuser_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -338,11 +338,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_seuser_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_seuser_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_seuser_key_t **(semanage_seuser_key_t *temp=NULL) {
|
||||
@@ -371,7 +371,7 @@
|
||||
(void (*) (void*)) &semanage_user_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -381,11 +381,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_user_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_user_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_user_key_t **(semanage_user_key_t *temp=NULL) {
|
||||
@@ -414,7 +414,7 @@
|
||||
(void (*) (void*)) &semanage_port_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -424,11 +424,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_port_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_port_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_port_key_t **(semanage_port_key_t *temp=NULL) {
|
||||
@@ -457,7 +457,7 @@
|
||||
(void (*) (void*)) &semanage_ibpkey_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -467,11 +467,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_ibpkey_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_ibpkey_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_ibpkey_key_t **(semanage_ibpkey_key_t *temp=NULL) {
|
||||
@@ -500,7 +500,7 @@
|
||||
(void (*) (void*)) &semanage_ibendport_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -510,11 +510,11 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_ibendport_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_ibendport_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_ibendport_key_t **(semanage_ibendport_key_t *temp=NULL) {
|
||||
@@ -543,7 +543,7 @@
|
||||
(void (*) (void*)) &semanage_node_free, &plist) < 0)
|
||||
$result = SWIG_From_int(STATUS_ERR);
|
||||
else
|
||||
- $result = SWIG_Python_AppendOutput($result, plist);
|
||||
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -553,12 +553,12 @@
|
||||
}
|
||||
|
||||
%typemap(argout) semanage_node_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
|
||||
%typemap(argout) semanage_node_key_t ** {
|
||||
- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0));
|
||||
+ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0), $isvoid);
|
||||
}
|
||||
|
||||
%typemap(in, numinputs=0) semanage_node_key_t **(semanage_node_key_t *temp=NULL) {
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 15 11:41:31 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
|
||||
|
||||
- Add 1231587-build-libsemanage-with-swig-4.3.0.patch to fix
|
||||
build failure with swig 4.3.0 (bsc#1231587)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 1 07:57:45 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
|
||||
|
||||
|
@ -35,6 +35,9 @@ Source0: https://github.com/SELinuxProject/selinux/releases/download/%{ve
|
||||
Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/libsemanage-%{version}.tar.gz.asc
|
||||
Source2: libsemanage.keyring
|
||||
Source3: baselibs.conf
|
||||
%if %{pkg_vcmp swig > 4.2.1}
|
||||
Patch0: 1231587-build-libsemanage-with-swig-4.3.0.patch
|
||||
%endif
|
||||
# PATCH-FIX-UPSTREAM bsc#1133102 LTO: Update map file to include new symbols and remove wildcards
|
||||
# For now we need to disable this. This breaks e.g. shadow and also other packages in security:SELinux
|
||||
# Patch0: libsemanage-update-map-file.patch
|
||||
@ -56,7 +59,7 @@ This package contains the Python bindings for developing
|
||||
SELinux policy management applications.
|
||||
|
||||
%prep
|
||||
%setup -q -n libsemanage-%{version}
|
||||
%autosetup -p1 -n libsemanage-%{version}
|
||||
# Replace /usr/libexec with whatever the distro defines as libexecdir - across all files
|
||||
grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user