Skip to content
Snippets Groups Projects
Commit 5f419e49 authored by mio's avatar mio Committed by Celeste
Browse files

community/libteam: fix build with swig 4.3

Fix error with newer swig.

```
team/capi_wrap.c: In function '_wrap_team_hwaddr_get':
team/capi_wrap.c:3945:17: error: too few arguments to function 'SWIG_Python_AppendOutput'
 3945 |     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize(arg3,arg4));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
team/capi_wrap.c:1260:1: note: declared here
 1260 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~
```
parent 196e7ca8
No related branches found
No related tags found
1 merge request!74212community/libteam: fix build with swig 4.3
Pipeline #269324 skipped
......@@ -2,7 +2,7 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libteam
pkgver=1.31
pkgrel=6
pkgrel=7
pkgdesc="Library for controlling team network device"
url="http://libteam.org"
arch="all"
......@@ -16,6 +16,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/jpirko/libteam/archive/v$pkg
memcpy-memset-implicit-declaration.patch
fix-redefinition-struct-ethhdr.patch
swig4.1.patch
swig4.3.patch
implicit-function-decl.patch
gcc14.patch
"
......@@ -59,6 +60,7 @@ sha512sums="
1279c164960b6215e9bb9f3ee161ef9ac6a38b8066d4a1031996b8067031b9b19404681ebecf3492a26b1215ec2eaaddecae3370ec25e2593dc3ca7dc5f8ead7 memcpy-memset-implicit-declaration.patch
db2f374018a8b60c099e5b41abf5a9d20912bddc0436788b246815459c97498fb47d237376f87a623438f2f48d486d91d65fe5b49aeeabc83cbd41bdb66d7bfc fix-redefinition-struct-ethhdr.patch
50c39a8264e7adb6313b2109ef68d18cb3f46c67e88d6cd3f393c26738fe7d4e34fd7b9dba0a4e0a9d6a2da793d847741f5fe1069f82319adfb4f3d884ffece8 swig4.1.patch
1149940c8ed3f2da3f9009d8e58be3b4f2bae8b2399ee77a287f72e0f2078ef44e67960a1f7650bbb0b9f80b277720608b8334efab66e9e2095845bdccd4826f swig4.3.patch
35ff644b50feae4e23d5527c6cf173c0450b02c0e737c33a4a4d0041c644ff8cf7f33e92de2491e5f4de6d96b5342ba3b04228b7101d1eb551b961b37a62f690 implicit-function-decl.patch
f8886301d4861530c6c9a81f069e0e88a7c0be7d89f67b0d4ab872b5ea88d01cd7482401b86e38797b4b33768b536255a746158c0bd669a0af7b245aee5e820d gcc14.patch
"
--- a/binding/python/team/capi.i.in
+++ b/binding/python/team/capi.i.in
@@ -40,7 +40,7 @@
if ($1) free($1);
}
%typemap(argout) (char *addr, unsigned int addr_len) {
- $result = SWIG_Python_AppendOutput($result, SWIG_FromCharPtrAndSize($1,$2));
+ $result = SWIG_AppendOutput($result, SWIG_FromCharPtrAndSize($1,$2));
}
%apply char *OUTPUT {char *addr};
int team_hwaddr_get(struct team_handle *th, uint32_t ifindex, char *addr, unsigned int addr_len);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment