libsearpc: update to 3.2.20220425

This commit is contained in:
yopito 2022-08-23 17:39:20 +02:00 committed by classabbyamp
parent dcce96e53a
commit c7c6ecc1fd
2 changed files with 5 additions and 26 deletions

View File

@ -1,21 +0,0 @@
Recent versions of glib don't work inside an extern "C" block, but some seafile sources
include searpc-client.h inside one. See https://github.com/haiwen/libsearpc/pull/57.
This is the easy fix, needed until upstream fixes the problem.
--- a/lib/searpc-client.h~ 2020-06-18 05:23:11.000000000 +0200
+++ b/lib/searpc-client.h 2021-04-10 15:48:09.994005146 +0200
@@ -7,8 +7,14 @@
#define LIBSEARPC_API
#endif
+#ifdef __cplusplus
+extern "C++" {
+#endif
#include <glib.h>
#include <glib-object.h>
+#ifdef __cplusplus
+}
+#endif
#include <jansson.h>
#ifndef DFT_DOMAIN

View File

@ -1,10 +1,10 @@
# Template file for 'libsearpc' # Template file for 'libsearpc'
# WARNING: upstream sometimes retag source. Wait for official announcement # WARNING: upstream sometimes retag source. Wait for official announcement
pkgname=libsearpc pkgname=libsearpc
# 3.2-latest (as of 2021-04-10) # floating tag 3.2-latest
version=3.2.0.20200318 version=3.2.0.20220405
revision=2 revision=1
_gitrev=50ff08b03c7cec8e10b35ba438633b9fe08a8d90 _gitrev=54145b03f4240222e336a9a2f402e93facefde65
wrksrc="${pkgname}-${_gitrev}" wrksrc="${pkgname}-${_gitrev}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--with-python3 --disable-static --disable-compile-demo" configure_args="--with-python3 --disable-static --disable-compile-demo"
@ -15,7 +15,7 @@ maintainer="yopito <pierre.bourgin@free.fr>"
license="LGPL-3.0-or-later, Apache-2.0" license="LGPL-3.0-or-later, Apache-2.0"
homepage="https://seafile.com" homepage="https://seafile.com"
distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz" distfiles="https://github.com/haiwen/libsearpc/archive/${_gitrev}.tar.gz"
checksum=2a58894cefbc1d7398581fc58103261688c93a9cf63f11afc5e92142ed948c00 checksum=401c736be7bb8c6b116a85bd5af36431046c7dd4b6392d5006f917c7fd1d2132
python_version=3 python_version=3
pre_configure() { pre_configure() {