summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap-ng/files/fix-issues-with-swig-4-2.patch
blob: fb424fe7258e62cf72d797c78af1034bc1f71164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 355eada2d20886287cffc16e304087dd6f66ae37 Mon Sep 17 00:00:00 2001
From: Steve Grubb <ausearch.1@gmail.com>
Date: Thu, 4 Jan 2024 15:06:29 -0500
Subject: [PATCH] Remove python global exception handler since its deprecated

Upstream-Status: Backport [https://github.com/stevegrubb/libcap-ng/commit/30453b6553948cd05c438f9f509013e3bb84f25b]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 bindings/src/capng_swig.i | 7 -------
 1 file changed, 7 deletions(-)

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__
-- 
2.43.2