summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-02-18 14:39:00 +0800
committerKhem Raj <raj.khem@gmail.com>2023-02-18 13:19:36 -0800
commit132845c1121fc54262d6224e07ed05e2fe42d493 (patch)
tree39227b794e023742c6f4b1b7353044ef3b9cbd49
parentbcf592303c98b025086bd973626c784e5e6268f6 (diff)
downloadmeta-openembedded-132845c1121fc54262d6224e07ed05e2fe42d493.tar.gz
jsonrpc: upgrade 1.3.0 -> 1.4.1
0001-Fix-build-with-libmicrohttpd.patch removed since it's included in 1.4.1 Changelog: =========== - Fedora CI build by updating to Catch v2.13.7 - Typo in README (#313) - Deprecation warnings for Jsoncpp (#312) - Compatibility with newer libmicrohttpd versions (>= 0.9.71) (#298 #299) - Typo in diagram (#293) - File descriptor leaks in connectors - Vendoring catch library instead of downloading from github - Moved from travis-ci to circleci (#311) - Use '.empty()' checks instead of '.size() == 0' Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/jsonrpc/jsonrpc/0001-Fix-build-with-libmicrohttpd.patch52
-rw-r--r--meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb (renamed from meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.3.0.bb)6
2 files changed, 2 insertions, 56 deletions
diff --git a/meta-oe/recipes-devtools/jsonrpc/jsonrpc/0001-Fix-build-with-libmicrohttpd.patch b/meta-oe/recipes-devtools/jsonrpc/jsonrpc/0001-Fix-build-with-libmicrohttpd.patch
deleted file mode 100644
index a4cacb3fc0..0000000000
--- a/meta-oe/recipes-devtools/jsonrpc/jsonrpc/0001-Fix-build-with-libmicrohttpd.patch
+++ /dev/null
@@ -1,52 +0,0 @@
1From d983161415f5f5748fbdbaa5fbd168154ccf8867 Mon Sep 17 00:00:00 2001
2From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
3Date: Wed, 5 Aug 2020 12:31:24 +0900
4Subject: [PATCH] Fix build with libmicrohttpd 0.9.71
5
6---
7 src/jsonrpccpp/server/connectors/httpserver.cpp | 2 +-
8 src/jsonrpccpp/server/connectors/httpserver.h | 8 +++++++-
9 2 files changed, 8 insertions(+), 2 deletions(-)
10
11diff --git a/src/jsonrpccpp/server/connectors/httpserver.cpp b/src/jsonrpccpp/server/connectors/httpserver.cpp
12index a849615..dd3b841 100644
13--- a/src/jsonrpccpp/server/connectors/httpserver.cpp
14+++ b/src/jsonrpccpp/server/connectors/httpserver.cpp
15@@ -151,7 +151,7 @@ void HttpServer::SetUrlHandler(const string &url,
16 this->SetHandler(NULL);
17 }
18
19-int HttpServer::callback(void *cls, MHD_Connection *connection, const char *url,
20+mhd_result HttpServer::callback(void *cls, MHD_Connection *connection, const char *url,
21 const char *method, const char *version,
22 const char *upload_data, size_t *upload_data_size,
23 void **con_cls) {
24diff --git a/src/jsonrpccpp/server/connectors/httpserver.h b/src/jsonrpccpp/server/connectors/httpserver.h
25index 7785edb..0dcf032 100644
26--- a/src/jsonrpccpp/server/connectors/httpserver.h
27+++ b/src/jsonrpccpp/server/connectors/httpserver.h
28@@ -32,6 +32,12 @@ typedef intptr_t ssize_t;
29 #include <map>
30 #include <microhttpd.h>
31
32+#if MHD_VERSION >= 0x00097002
33+# define mhd_result enum MHD_Result
34+#else
35+# define mhd_result int
36+#endif
37+
38 namespace jsonrpc {
39 /**
40 * This class provides an embedded HTTP Server, based on libmicrohttpd, to
41@@ -79,7 +85,7 @@ private:
42 std::map<std::string, IClientConnectionHandler *> urlhandler;
43 struct sockaddr_in loopback_addr;
44
45- static int callback(void *cls, struct MHD_Connection *connection,
46+ static mhd_result callback(void *cls, struct MHD_Connection *connection,
47 const char *url, const char *method, const char *version,
48 const char *upload_data, size_t *upload_data_size,
49 void **con_cls);
50--
512.25.1
52
diff --git a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.3.0.bb b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb
index 43dc2e36a4..544922f05d 100644
--- a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.3.0.bb
+++ b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb
@@ -9,11 +9,9 @@ SECTION = "libs"
9 9
10DEPENDS = "curl jsoncpp libmicrohttpd hiredis" 10DEPENDS = "curl jsoncpp libmicrohttpd hiredis"
11 11
12SRC_URI = "git://github.com/cinemast/libjson-rpc-cpp;branch=master;protocol=https \ 12SRC_URI = "git://github.com/cinemast/libjson-rpc-cpp;branch=master;protocol=https"
13 file://0001-Fix-build-with-libmicrohttpd.patch \
14"
15 13
16SRCREV = "c696f6932113b81cd20cd4a34fdb1808e773f23e" 14SRCREV = "ec5ce12fc9c0299e1454cc002c70218b5a6f005b"
17 15
18S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
19 17