added my Recipes
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From dba3c5bf34ed530fd41ed50968825af2158f142e Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 29 Jan 2019 13:31:39 -0800
|
||||
Subject: [PATCH] test/cpp/server_abyss: Fix build with clang/libc++
|
||||
|
||||
/mnt/a/yoe/workspace/sources/xmlrpc-c/test/cpp/server_abyss.cpp:87:14: error: assigning to 'int' from incompatible type '__bind<int
|
||||
&, sockaddr *, unsigned int>'
|
||||
rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
|
||||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
test/cpp/server_abyss.cpp | 56 +++++++++++++++++++--------------------
|
||||
1 file changed, 28 insertions(+), 28 deletions(-)
|
||||
|
||||
--- a/test/cpp/server_abyss.cpp
|
||||
+++ b/test/cpp/server_abyss.cpp
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
sockAddr.sin_port = htons(portNumber);
|
||||
sockAddr.sin_addr.s_addr = 0;
|
||||
|
||||
- rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
|
||||
+ rc = ::bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
|
||||
|
||||
if (rc != 0) {
|
||||
closesock(this->fd);
|
||||
@@ -0,0 +1,34 @@
|
||||
From 14f15cb0f03defa8efb4c8e2fece58e50655be6b Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Sun, 23 Jul 2017 22:20:29 -0400
|
||||
Subject: [PATCH] src/xmlrpc_server_abyss.c: fix formatting issues
|
||||
|
||||
Fixed when compile with "-Wformat -Wformat-security -Werror=format-security":
|
||||
|src/xmlrpc_server_abyss.c:771:13: error: format not a string literal
|
||||
and no format arguments [-Werror=format-security]
|
||||
| xmlrpc_faultf(envP, error);
|
||||
| ^~~~~~~~~~~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
src/xmlrpc_server_abyss.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/xmlrpc_server_abyss.c b/src/xmlrpc_server_abyss.c
|
||||
index 2388652..3843f10 100644
|
||||
--- a/src/xmlrpc_server_abyss.c
|
||||
+++ b/src/xmlrpc_server_abyss.c
|
||||
@@ -768,7 +768,7 @@ createServer(xmlrpc_env * const envP,
|
||||
ServerInit2(abyssServerP, &error);
|
||||
|
||||
if (error) {
|
||||
- xmlrpc_faultf(envP, error);
|
||||
+ xmlrpc_faultf(envP, "%s", error);
|
||||
xmlrpc_strfree(error);
|
||||
}
|
||||
}
|
||||
--
|
||||
2.8.1
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
DESCRIPTION = "XML-RPC for C/C++ is programming libraries and related tools to help you \
|
||||
write an XML-RPC server or client in C or C++."
|
||||
|
||||
HOMEPAGE = "http://xmlrpc-c.sourceforge.net/"
|
||||
LICENSE = "BSD-3-Clause & MIT"
|
||||
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=aefbf81ba0750f02176b6f86752ea951"
|
||||
|
||||
SRC_URI = "git://github.com/mirror/xmlrpc-c.git;branch=master;protocol=https \
|
||||
file://0001-test-cpp-server_abyss-Fix-build-with-clang-libc.patch \
|
||||
file://0002-fix-formatting-issues.patch \
|
||||
"
|
||||
#Release 1.54.06
|
||||
SRCREV = "00870af80021aa0a66cc72c9aeb00587cbfde560"
|
||||
|
||||
S = "${WORKDIR}/git/stable"
|
||||
|
||||
inherit autotools-brokensep binconfig pkgconfig
|
||||
|
||||
TARGET_CFLAGS += "-Wno-narrowing"
|
||||
|
||||
EXTRA_OEMAKE += "CC_FOR_BUILD='${BUILD_CC}' \
|
||||
LD_FOR_BUILD='${BUILD_LD}' \
|
||||
CFLAGS_FOR_BUILD='${BUILD_CFLAGS}' \
|
||||
LDFLAGS_FOR_BUILD='${BUILD_LDFLAGS}' \
|
||||
"
|
||||
|
||||
EXTRA_OECONF += "--disable-libwww-client --disable-wininet-client"
|
||||
|
||||
PACKAGECONFIG ??= "curl cplusplus"
|
||||
|
||||
PACKAGECONFIG[abyss] = "--enable-abyss-server --enable-abyss-threads --enable-abyss-openssl,--disable-abyss-server --disable-abyss-threads --disable-abyss-openssl,openssl"
|
||||
PACKAGECONFIG[cplusplus] = "--enable-cplusplus,--disable-cplusplus"
|
||||
PACKAGECONFIG[curl] = "--enable-curl-client,--disable-curl-client,curl"
|
||||
|
||||
do_configure() {
|
||||
gnu-configize --verbose --force ${S}
|
||||
autoconf
|
||||
oe_runconf
|
||||
# license is incompatible with lib/util/getoptx.*
|
||||
rm -fv ${S}/tools/turbocharger/mod_gzip.c
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
Reference in New Issue
Block a user