File: Adapt-swig-py-to-SWIG-4.4.0.patch

package info (click to toggle)
subversion 1.14.5-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,512 kB
  • sloc: ansic: 1,039,361; python: 140,270; cpp: 24,862; java: 24,547; ruby: 12,312; lisp: 7,619; sh: 7,414; perl: 7,010; sql: 1,686; makefile: 1,191; xml: 577
file content (27 lines) | stat: -rw-r--r-- 1,144 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
From: Jun Omae <jun66j5@apache.org>
Date: Thu, 6 Nov 2025 21:54:36 +0000
Subject: Adapt swig-py to SWIG 4.4.0.

* subversion/bindings/swig/include/svn_types.swg
  (%typemap(in) apr_pool_t *):
   Use `SWIG_Error(SWIG_TypeError)` instead of removed `SWIG_Python_TypeError`
   in SWIG 4.4.0

git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1929560 13f79535-47bb-0310-9956-ffa450edef68
---
 subversion/bindings/swig/include/svn_types.swg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subversion/bindings/swig/include/svn_types.swg b/subversion/bindings/swig/include/svn_types.swg
index 07f6c85..a5f6ce4 100644
--- a/subversion/bindings/swig/include/svn_types.swg
+++ b/subversion/bindings/swig/include/svn_types.swg
@@ -601,7 +601,7 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE self)
 %typemap(in, noblock=1) apr_pool_t * {
   /* Verify that the user supplied a valid pool */
   if ($input != Py_None && $input != _global_py_pool) {
-    SWIG_Python_TypeError(SWIG_TypePrettyName($descriptor), $input);
+    SWIG_Error(SWIG_TypeError,  "a '$type' is expected");
     SWIG_arg_fail($svn_argnum);
     SWIG_fail;
   }