File: replace-deprecated-function-by-new-action.patch

package info (click to toggle)
unbound 1.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,436 kB
  • sloc: ansic: 138,476; sh: 6,860; yacc: 4,259; python: 1,950; makefile: 1,881; awk: 162; perl: 158; xml: 36
file content (28 lines) | stat: -rw-r--r-- 892 bytes parent folder | download
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
From: Jitka Plesnikova <jplesnik@redhat.com>
Date: Mon, 8 Sep 2025 10:11:49 +0200
Subject: Replace deprecated $function by new $action
Origin: upstream, https://github.com/NLnetLabs/unbound/pull/1331
Forwarded: not-needed

The long-deprecated $function was removed from future SWIG 4.4.0.
It can be safely replaced by $action.
---
 libunbound/python/libunbound.i | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libunbound/python/libunbound.i b/libunbound/python/libunbound.i
index dc125146c..9ed1be90b 100644
--- a/libunbound/python/libunbound.i
+++ b/libunbound/python/libunbound.i
@@ -853,7 +853,7 @@ Result: ['74.125.43.147', '74.125.43.99', '74.125.43.103', '74.125.43.104']
 %{ 
   //printf("resolve_start(%lX)\n",(long unsigned int)arg1);
   Py_BEGIN_ALLOW_THREADS 
-  $function 
+  $action
   Py_END_ALLOW_THREADS 
   //printf("resolve_stop()\n");
 %} 
-- 
2.47.3