websocketpp: update to new maintained fork, update to 0.8.4-cpprest-lts and unblacklist
PATCH 1/2 websocketpp: update to new maintained fork, update to 0.8.4-cpprest-lts and unblacklist
The new fork incorporated all the patches, delete them Update license md5sum due to upstream file change
Signed-off-by Gianfranco Costamagna <[email protected]>
Signed-off-by Gianfranco Costamagna <[email protected]>
---
.../cpprest/cpprest_2.10.19.bb | 20 -
.../0001-Correct-clang-compiler-flags.patch | 32 --
.../0001-cmake-Use-GNUInstallDirs.patch | 35 --
.../websocketpp/websocketpp-0.8.2/1024.patch | 508 ------------------
.../websocketpp/websocketpp-0.8.2/855.patch | 25 -
.../websocketpp/websocketpp-0.8.2/857.patch | 134 -----
....2.bb => websocketpp_0.8.4-cpprest-lts.bb} | 15 +-
7 files changed, 4 insertions(+), 765 deletions(-)
delete mode 100644 meta-oe/recipes-support/cpprest/cpprest_2.10.19.bb
delete mode 100644 meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch
delete mode 100644 meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch
delete mode 100644 meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/1024.patch
delete mode 100644 meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch
delete mode 100644 meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch
rename meta-oe/recipes-support/websocketpp/{websocketpp_0.8.2.bb => websocketpp_0.8.4-cpprest-lts.bb} (62%)meta-oe/recipes-support/cpprest/cpprest_2.10.19.bb deleted +0 -20
@@ -1,20 +0,0 @@ -SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design." -SECTION = "libs/network" -HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f" -DEPENDS = "openssl websocketpp zlib boost brotli" - -EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake/cpprestsdk -DCPPREST_EXCLUDE_BROTLI=OFF -DWERROR=OFF" - -SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \ - file://disable-float-tests.patch \ - file://disable-outside-tests.patch " - -# tag 2.10.19 -SRCREV = "411a109150b270f23c8c97fa4ec9a0a4a98cdecf" - - -inherit cmake pkgconfig - -SKIP_RECIPE[cpprest] ?= "Needs websocketpp which does not yet work with boost >= 1.87"
meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 5ccaff351297bca0e254bbfd66e3f03fef9d9c75 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 10 Jan 2020 21:54:39 -0800 -Subject: [PATCH] Correct clang compiler flags - -Fix misplaced quotes, this was leading to spurious ; in compiler cmdline -Remove demanding libc++, clang can link with both libc++ and libstdc++ -and platforms have their own defaults, user can demand non defaults via -adding it to cmake flags - -Upstream-Status: Submitted [https://github.com/zaphoyd/websocketpp/pull/859] -Signed-off-by: Khem Raj <[email protected]> ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2d13117..c17354a 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -154,7 +154,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES) - endif() - set (WEBSOCKETPP_PLATFORM_TLS_LIBS ssl crypto) - set (WEBSOCKETPP_BOOST_LIBS system thread) -- set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++0x -stdlib=libc++") # todo: is libc++ really needed here? -+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") - if (NOT APPLE) - add_definitions (-DNDEBUG -Wall -Wno-padded) # todo: should we use CMAKE_C_FLAGS for these? - endif () --- -2.24.1 -
meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From 771d79eeb0ac5079482a4b3a131bbda744793e7d Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 19 Dec 2019 20:07:11 -0800 -Subject: [PATCH] cmake: Use GNUInstallDirs - -Helps install cmakefiles in right libdir - -Upstream-Status: Submitted [https://github.com/zaphoyd/websocketpp/pull/854] -Signed-off-by: Khem Raj <[email protected]> ---- - CMakeLists.txt | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2786aba..080be3e 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -39,11 +39,13 @@ endif() - - set_property(GLOBAL PROPERTY USE_FOLDERS ON) - -+include(GNUInstallDirs) -+ - set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files") - if (WIN32 AND NOT CYGWIN) - set (DEF_INSTALL_CMAKE_DIR cmake) - else () -- set (DEF_INSTALL_CMAKE_DIR lib/cmake/websocketpp) -+ set (DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/websocketpp) - endif () - set (INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files") - --- -2.24.1 -
meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/1024.patch deleted +0 -508
508 lines not on this page · raw message
meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 3590d77bb9753fbbf076028e2395182ced6466ba Mon Sep 17 00:00:00 2001 -From: Gianfranco Costamagna <[email protected]> -Date: Wed, 8 Jan 2020 17:59:48 +0100 -Subject: [PATCH] Fix cmake find boost with version >= 1.71 - -For some reasons "system;thread;random;unit_test_framework" was seen as a single module, because of the quotes. ---- -Upstream-Status: Pending - - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2d13117b..9a46bc10 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -217,7 +217,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES) - set (Boost_USE_MULTITHREADED TRUE) - set (Boost_ADDITIONAL_VERSIONS "1.39.0" "1.40.0" "1.41.0" "1.42.0" "1.43.0" "1.44.0" "1.46.1") # todo: someone who knows better spesify these! - -- find_package (Boost 1.39.0 COMPONENTS "${WEBSOCKETPP_BOOST_LIBS}") -+ find_package (Boost 1.39.0 COMPONENTS ${WEBSOCKETPP_BOOST_LIBS}) - - if (Boost_FOUND) - # Boost is a project wide global dependency.
meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch deleted +0 -134
134 lines not on this page · raw message
meta-oe/recipes-support/websocketpp/websocketpp_0.8.4-cpprest-lts.bb renamed from meta-oe/recipes-support/websocketpp/websocketpp_0.8.2.bb +4 -11
@@ -2,16 +2,11 @@ SUMMARY = "C++/Boost Asio based websocket client/server library." SECTION = "libs/network" HOMEPAGE = "https://github.com/zaphoyd/websocketpp" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=4d168d763c111f4ffc62249870e4e0ea" +LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=caca8c57fc82d4528bfd694b3de9b7cf" DEPENDS = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'openssl boost zlib', '', d)} " -SRC_URI = "git://github.com/zaphoyd/websocketpp.git;protocol=https;branch=master \ - file://0001-cmake-Use-GNUInstallDirs.patch \ - file://855.patch \ - file://857.patch \ - file://0001-Correct-clang-compiler-flags.patch \ - file://1024.patch \ +SRC_URI = "git://github.com/cpprest-lts/websocketpp.git;protocol=https;branch=cpprest-lts \ " EXTRA_OECMAKE = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON', '', d)} "
@@ -22,8 +17,8 @@ RDEPENDS:${PN}-dev = "" # to add this package to an SDK, since it isn't a reverse-dependency of anything, just use something like this: # TOOLCHAIN_TARGET_TASK:append = " websocketpp-dev" -# tag 0.8.2 -SRCREV = "56123c87598f8b1dd471be83ca841ceae07f95ba" +# tag 0.8.4+cpprest-lts +SRCREV = "c011de4608e8221412f2ea9be5d755a68a4e5e29" inherit cmake
@@ -36,5 +31,3 @@ do_install:append() { install -d ${D}${docdir}/${BPN} cp -R ${S}/examples ${D}${docdir}/${BPN} } - -SKIP_RECIPE[websocketpp] ?= "Does not work with boost >= 1.87"
Signature · 1 line
2.43.0
PATCH 2/2 cpprest: update to new maintained fork, update to 2.10.20-cpprest-lts and unblacklist
The new fork incorporated all the patches, delete them Add 3 patches from Debian to:
- Fix Big Endian machines test
- Disable network tests via cmake switch
- Fix build on Big Endian machines
Signed-off-by Gianfranco Costamagna <[email protected]>
Signed-off-by Gianfranco Costamagna <[email protected]>
--- .../recipes-support/cpprest/cpprest/63.patch | 180 +++++++++++++++++ .../recipes-support/cpprest/cpprest/64.patch | 182 ++++++++++++++++++ .../recipes-support/cpprest/cpprest/65.patch | 94 +++++++++ .../cpprest/cpprest/disable-float-tests.patch | 27 --- .../cpprest/disable-outside-tests.patch | 129 ------------- .../cpprest/cpprest_2.10.20+cpprest-lts.bb | 18 ++ 6 files changed, 474 insertions(+), 156 deletions(-) create mode 100644 meta-oe/recipes-support/cpprest/cpprest/63.patch create mode 100644 meta-oe/recipes-support/cpprest/cpprest/64.patch create mode 100644 meta-oe/recipes-support/cpprest/cpprest/65.patch delete mode 100644 meta-oe/recipes-support/cpprest/cpprest/disable-float-tests.patch delete mode 100644 meta-oe/recipes-support/cpprest/cpprest/disable-outside-tests.patch create mode 100644 meta-oe/recipes-support/cpprest/cpprest_2.10.20+cpprest-lts.bb
meta-oe/recipes-support/cpprest/cpprest/63.patch new file +180 -0
@@ -0,0 +1,180 @@ +Upstream-Status: Submitted [https://github.com/cpprest-lts/cpprestsdk/pull/63] +From 80b15041c4001a8f49fe556b835e2781d54a7f69 Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <[email protected]> +Date: Fri, 13 Nov 2026 13:34:16 +0100 +Subject: [PATCH] Fix Base64 encoding and decoding on big-endian systems + +Replace implementation-defined bitfields with explicit byte shifts. +--- + Release/src/utilities/base64.cpp | 87 +++++++------------------------- + 1 file changed, 17 insertions(+), 70 deletions(-) + +diff --git a/Release/src/utilities/base64.cpp b/Release/src/utilities/base64.cpp +index 1cb235c3b5..9038278d22 100644 +--- a/Release/src/utilities/base64.cpp ++++ b/Release/src/utilities/base64.cpp +@@ -43,30 +43,6 @@ const std::array<unsigned char, 128> _base64_dectbl = { + 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 255, 255, 255, 255, 255}}; + +-struct _triple_byte +-{ +- unsigned char _1_1 : 2; +- unsigned char _0 : 6; +- unsigned char _2_1 : 4; +- unsigned char _1_2 : 4; +- unsigned char _3 : 6; +- unsigned char _2_2 : 2; +-}; +- +-struct _double_byte +-{ +- unsigned char _1_1 : 2; +- unsigned char _0 : 6; +- unsigned char _2_1 : 4; +- unsigned char _1_2 : 4; +-}; +- +-struct _single_byte +-{ +- unsigned char _1_1 : 2; +- unsigned char _0 : 6; +-}; +- + // + // A note on the implementation of BASE64 encoding and decoding: + // +@@ -75,10 +51,6 @@ struct _single_byte + // ignoring CRLF, relaxed validation rules, etc. The decoder is currently pretty strict. + // + +-#ifdef __GNUC__ +-// gcc is concerned about the bitfield uses in the code, something we simply need to ignore. +-#pragma GCC diagnostic ignored "-Wconversion" +-#endif + std::vector<unsigned char> _from_base64(const utility::string_t& input) + { + std::vector<unsigned char> result; +@@ -134,26 +106,14 @@ std::vector<unsigned char> _from_base64(const utility::string_t& input) + size_t idx = 0; + for (; size > 4; ++idx) + { +- unsigned char target[3]; +- memset(target, 0, sizeof(target)); +- _triple_byte* record = reinterpret_cast<_triple_byte*>(target); +- + unsigned char val0 = _base64_dectbl[ptr[0]]; + unsigned char val1 = _base64_dectbl[ptr[1]]; + unsigned char val2 = _base64_dectbl[ptr[2]]; + unsigned char val3 = _base64_dectbl[ptr[3]]; + +- record->_0 = val0; +- record->_1_1 = val1 >> 4; +- result[idx] = target[0]; +- +- record->_1_2 = val1 & 0xF; +- record->_2_1 = val2 >> 2; +- result[++idx] = target[1]; +- +- record->_2_2 = val2 & 0x3; +- record->_3 = val3 & 0x3F; +- result[++idx] = target[2]; ++ result[idx] = static_cast<unsigned char>((val0 << 2) | (val1 >> 4)); ++ result[++idx] = static_cast<unsigned char>((val1 << 4) | (val2 >> 2)); ++ result[++idx] = static_cast<unsigned char>((val2 << 6) | val3); + + ptr += 4; + size -= 4; +@@ -163,45 +123,35 @@ std::vector<unsigned char> _from_base64(const utility::string_t& input) + // in all the iterations (a performance issue). + + { +- unsigned char target[3]; +- memset(target, 0, sizeof(target)); +- _triple_byte* record = reinterpret_cast<_triple_byte*>(target); +- + unsigned char val0 = _base64_dectbl[ptr[0]]; + unsigned char val1 = _base64_dectbl[ptr[1]]; + unsigned char val2 = _base64_dectbl[ptr[2]]; + unsigned char val3 = _base64_dectbl[ptr[3]]; + +- record->_0 = val0; +- record->_1_1 = val1 >> 4; +- result[idx] = target[0]; ++ result[idx] = static_cast<unsigned char>((val0 << 2) | (val1 >> 4)); + +- record->_1_2 = val1 & 0xF; + if (val2 != 254) + { +- record->_2_1 = val2 >> 2; +- result[++idx] = target[1]; ++ result[++idx] = static_cast<unsigned char>((val1 << 4) | (val2 >> 2)); + } + else + { + // There shouldn't be any information (ones) in the unused bits, +- if (record->_1_2 != 0) ++ if ((val1 & 0xF) != 0) + { + throw std::runtime_error("Invalid end of base64 string"); + } + return result; + } + +- record->_2_2 = val2 & 0x3; + if (val3 != 254) + { +- record->_3 = val3 & 0x3F; +- result[++idx] = target[2]; ++ result[++idx] = static_cast<unsigned char>((val2 << 6) | val3); + } + else + { + // There shouldn't be any information (ones) in the unused bits. +- if (record->_2_2 != 0) ++ if ((val2 & 0x3) != 0) + { + throw std::runtime_error("Invalid end of base64 string"); + } +@@ -218,11 +168,10 @@ utility::string_t _to_base64(const unsigned char* ptr, size_t size) + + for (; size >= 3;) + { +- const _triple_byte* record = reinterpret_cast<const _triple_byte*>(ptr); +- unsigned char idx0 = record->_0; +- unsigned char idx1 = (record->_1_1 << 4) | record->_1_2; +- unsigned char idx2 = (record->_2_1 << 2) | record->_2_2; +- unsigned char idx3 = record->_3; ++ unsigned char idx0 = static_cast<unsigned char>(ptr[0] >> 2); ++ unsigned char idx1 = static_cast<unsigned char>(((ptr[0] & 0x3) << 4) | (ptr[1] >> 4)); ++ unsigned char idx2 = static_cast<unsigned char>(((ptr[1] & 0xF) << 2) | (ptr[2] >> 6)); ++ unsigned char idx3 = static_cast<unsigned char>(ptr[2] & 0x3F); + result.push_back(char_t(_base64_enctbl[idx0])); + result.push_back(char_t(_base64_enctbl[idx1])); + result.push_back(char_t(_base64_enctbl[idx2])); +@@ -234,9 +183,8 @@ utility::string_t _to_base64(const unsigned char* ptr, size_t size) + { + case 1: + { +- const _single_byte* record = reinterpret_cast<const _single_byte*>(ptr); +- unsigned char idx0 = record->_0; +- unsigned char idx1 = (record->_1_1 << 4); ++ unsigned char idx0 = static_cast<unsigned char>(ptr[0] >> 2); ++ unsigned char idx1 = static_cast<unsigned char>((ptr[0] & 0x3) << 4); + result.push_back(char_t(_base64_enctbl[idx0])); + result.push_back(char_t(_base64_enctbl[idx1])); + result.push_back('='); +@@ -245,10 +193,9 @@ utility::string_t _to_base64(const unsigned char* ptr, size_t size) + } + case 2: + { +- const _double_byte* record = reinterpret_cast<const _double_byte*>(ptr); +- unsigned char idx0 = record->_0; +- unsigned char idx1 = (record->_1_1 << 4) | record->_1_2; +- unsigned char idx2 = (record->_2_1 << 2); ++ unsigned char idx0 = static_cast<unsigned char>(ptr[0] >> 2); ++ unsigned char idx1 = static_cast<unsigned char>(((ptr[0] & 0x3) << 4) | (ptr[1] >> 4)); ++ unsigned char idx2 = static_cast<unsigned char>((ptr[1] & 0xF) << 2); + result.push_back(char_t(_base64_enctbl[idx0])); + result.push_back(char_t(_base64_enctbl[idx1])); + result.push_back(char_t(_base64_enctbl[idx2]));
meta-oe/recipes-support/cpprest/cpprest/64.patch new file +182 -0
182 lines not on this page · raw message
meta-oe/recipes-support/cpprest/cpprest/65.patch new file +94 -0
94 lines not on this page · raw message
meta-oe/recipes-support/cpprest/cpprest/disable-float-tests.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Upstream-Status: Pending - -Description: new toolchain might have increased the float precision -Author: Gianfranco Costamagna <[email protected]> -Last-Update: 2017-10-28 -Forwarded: https://github.com/Microsoft/cpprestsdk/issues/576 - -Index: cpprest/Release/tests/functional/streams/istream_tests.cpp -=================================================================== ---- cpprest.orig/Release/tests/functional/streams/istream_tests.cpp -+++ cpprest/Release/tests/functional/streams/istream_tests.cpp -@@ -1297,6 +1297,7 @@ - void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSILON); } - void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON); } - -+ /* - TEST(extract_floating_point) - { - std::string test_string; -@@ -1343,6 +1344,7 @@ - if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual); - } while (!std_istream.eof()); - } -+ */ - - TEST(extract_floating_point_with_exceptions) - {
meta-oe/recipes-support/cpprest/cpprest/disable-outside-tests.patch deleted +0 -129
129 lines not on this page · raw message
meta-oe/recipes-support/cpprest/cpprest_2.10.20+cpprest-lts.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design." +SECTION = "libs/network" +HOMEPAGE = "https://github.com/cpprest-lts/cpprestsdk/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f" +DEPENDS = "openssl websocketpp zlib boost brotli" + +EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake/cpprestsdk -DCPPREST_EXCLUDE_BROTLI=OFF -DWERROR=OFF -DCPPREST_TEST_NETWORK=OFF" + +SRC_URI = "git://github.com/cpprest-lts/cpprestsdk.git;protocol=https;branch=cpprest-lts \ + file://63.patch \ + file://64.patch \ + file://65.patch " + +# tag 2.10.20+cpprest-lts +SRCREV = "feadb5b7d01a09d124d6d6c7bfeee648c15b37d1" + +inherit cmake pkgconfig
Signature · 1 line
2.43.0