diff --git a/libcap-ng-0.8.5-python-exception.patch b/libcap-ng-0.8.5-python-exception.patch new file mode 100644 index 0000000..e69ec4b --- /dev/null +++ b/libcap-ng-0.8.5-python-exception.patch @@ -0,0 +1,24 @@ +commit 30453b6553948cd05c438f9f509013e3bb84f25b +Author: Steve Grubb +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__ diff --git a/libcap-ng.spec b/libcap-ng.spec index 4ac029b..32a695c 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -1,10 +1,11 @@ Summary: Alternate posix capabilities library Name: libcap-ng Version: 0.8.4 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-2.0-or-later URL: https://people.redhat.com/sgrubb/libcap-ng/ Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz +Patch1: libcap-ng-0.8.5-python-exception.patch BuildRequires: gcc BuildRequires: make BuildRequires: kernel-headers >= 2.6.11 @@ -47,6 +48,7 @@ lets you set the file system based capabilities. %prep %setup -q +%patch -P1 -p1 %build %configure --libdir=%{_libdir} --with-python=no --with-python3 @@ -92,6 +94,9 @@ make check %attr(0644,root,root) %{_mandir}/man8/* %changelog +* Thu Jan 04 2024 Steve Grubb 0.8.4-2 +- Remove python bindings global exception handler + * Wed Dec 20 2023 Steve Grubb 0.8.4-1 - New upstream bugfix release - Drop libcap-ng-0.8.3-apply-disable.patch since things should be fixed