From 833137911b22964050b7d2d5911bf52e894e22bf Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Thu, 29 May 2025 13:53:32 +0800 Subject: [PATCH] Fix parameters to capng_updatev python bindings to be signed --- ...o-capng_updatev-python-bindings-to-b.patch | 25 +++++++++++++++++++ libcap-ng.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 backport-Fix-parameters-to-capng_updatev-python-bindings-to-b.patch 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 0000000..532e198 --- /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 1281efe..4821d3b 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 -- Gitee