Remove python bindings global exception handler
This commit is contained in:
parent
6ad87e5206
commit
f30985c823
24
libcap-ng-0.8.5-python-exception.patch
Normal file
24
libcap-ng-0.8.5-python-exception.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
commit 30453b6553948cd05c438f9f509013e3bb84f25b
|
||||||
|
Author: Steve Grubb <ausearch.1@gmail.com>
|
||||||
|
Date: Thu Jan 4 15:06:29 2024 -0500
|
||||||
|
|
||||||
|
Remove python global exception handler since its deprecated
|
||||||
|
|
||||||
|
diff --git a/bindings/src/capng_swig.i b/bindings/src/capng_swig.i
|
||||||
|
index fcdaf18..fa85e13 100644
|
||||||
|
--- a/bindings/src/capng_swig.i
|
||||||
|
+++ b/bindings/src/capng_swig.i
|
||||||
|
@@ -30,13 +30,6 @@
|
||||||
|
|
||||||
|
%varargs(16, signed capability = 0) capng_updatev;
|
||||||
|
|
||||||
|
-%except(python) {
|
||||||
|
- $action
|
||||||
|
- if (result < 0) {
|
||||||
|
- PyErr_SetFromErrno(PyExc_OSError);
|
||||||
|
- return NULL;
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
%define __signed__
|
@ -1,10 +1,11 @@
|
|||||||
Summary: Alternate posix capabilities library
|
Summary: Alternate posix capabilities library
|
||||||
Name: libcap-ng
|
Name: libcap-ng
|
||||||
Version: 0.8.4
|
Version: 0.8.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPL-2.0-or-later
|
License: LGPL-2.0-or-later
|
||||||
URL: https://people.redhat.com/sgrubb/libcap-ng/
|
URL: https://people.redhat.com/sgrubb/libcap-ng/
|
||||||
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: libcap-ng-0.8.5-python-exception.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: kernel-headers >= 2.6.11
|
BuildRequires: kernel-headers >= 2.6.11
|
||||||
@ -47,6 +48,7 @@ lets you set the file system based capabilities.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -P1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=%{_libdir} --with-python=no --with-python3
|
%configure --libdir=%{_libdir} --with-python=no --with-python3
|
||||||
@ -92,6 +94,9 @@ make check
|
|||||||
%attr(0644,root,root) %{_mandir}/man8/*
|
%attr(0644,root,root) %{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 04 2024 Steve Grubb <sgrubb@redhat.com> 0.8.4-2
|
||||||
|
- Remove python bindings global exception handler
|
||||||
|
|
||||||
* Wed Dec 20 2023 Steve Grubb <sgrubb@redhat.com> 0.8.4-1
|
* Wed Dec 20 2023 Steve Grubb <sgrubb@redhat.com> 0.8.4-1
|
||||||
- New upstream bugfix release
|
- New upstream bugfix release
|
||||||
- Drop libcap-ng-0.8.3-apply-disable.patch since things should be fixed
|
- Drop libcap-ng-0.8.3-apply-disable.patch since things should be fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user