diff --git a/backport-Fix-parameters-to-capng_updatev-python-bindings-to-b.patch b/backport-Fix-parameters-to-capng_updatev-python-bindings-to-b.patch new file mode 100644 index 0000000000000000000000000000000000000000..532e1980baabb4d72865b5eacd5a94e93c743273 --- /dev/null +++ b/backport-Fix-parameters-to-capng_updatev-python-bindings-to-b.patch @@ -0,0 +1,25 @@ +From 2906fb0e66ede9f0c47952f203a6727505f84760 Mon Sep 17 00:00:00 2001 +From: Steve Grubb +Date: Tue, 20 Jul 2021 16:18:09 -0400 +Subject: [PATCH] Fix parameters to capng_updatev python bindings to be signed + +--- + bindings/src/capng_swig.i | 2 +- + 1 files changed, 1 insertions(+), 1 deletion(-) + +diff --git a/bindings/src/capng_swig.i b/bindings/src/capng_swig.i +index f12672e..3103ebe 100644 +--- a/bindings/src/capng_swig.i ++++ b/bindings/src/capng_swig.i +@@ -27,7 +27,7 @@ + + #if defined(SWIGPYTHON) + +-%varargs(16, unsigned capability = 0) capng_updatev; ++%varargs(16, signed capability = 0) capng_updatev; + + %except(python) { + $action +-- +2.43.0 + diff --git a/libcap-ng.spec b/libcap-ng.spec index 1281efea60075250c0777a8fff200ed410614eed..4821d3b3666c36eeb50457b380f36c944ce3ba42 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -3,12 +3,13 @@ Summary: Libcap-ng is a library used for posix capabilities programming Name: libcap-ng Version: 0.8.1 -Release: 2 +Release: 3 License: LGPLv2+ and GPLv2+ URL: http://people.redhat.com/sgrubb/libcap-ng Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz Patch1: backport-Fix-the-syntax-error-in-cap-ng-c-50.patch +Patch2: backport-Fix-parameters-to-capng_updatev-python-bindings-to-b.patch BuildRequires: gcc, kernel-headers >= 2.6.11, libattr-devel Provides: %{name}-utils = %{version}-%{release} @@ -114,6 +115,9 @@ make check %attr(0644,root,root) %{_mandir}/man8/* %changelog +* Thu May 29 2025 yixiangzhike - 0.8.1-3 +- fix parameters to capng_updatev python bindings to be signed + * Thu May 30 2024 yixiangzhike - 0.8.1-2 - backport upstream patch to fix syntax error