diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2025-06-20 19:06:19 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-06-25 06:44:51 -0700 |
commit | eebf8c78db2e5923a85582efb30722341705693d (patch) | |
tree | d8bee7172690a18f27d598889a3abdac5328e383 | |
parent | 71eef026d94e71a36d150c20dbdafe8b9f94f450 (diff) | |
download | meta-openembedded-eebf8c78db2e5923a85582efb30722341705693d.tar.gz |
paho-mqtt-cpp: Upgrade 1.4.1 -> 1.5.3
Upgrade to release 1.5.3:
- Fix the bundled Paho C build foc C23 compilers by forcing C99
compliance in CMake build
- Code base updated to to C++17
- Now a C++17 compiler is required to compile the library
- CMake minimum required version raised to v3.13
- Need a fairly recent CMake for C++17 support (>= v3.12)
- CMake v3.13 allows INSTALL(TARGETS) to work outside the current
directory.
- Clients always created for v5 persistence format, making it
universal for any connection.
- If the application specifies a version it is kept as a hint for
default connections.
- The version for the connection should be specified in the connect
options.
- The create_options now have all the parameters to create a client.
- Can specify Server URL, Client ID, and persistence in the create
options.
- New client constructor that takes just the options object
- The client caches a const create_options struct with all the
creation parameters
- Client creation internally simplified without breaking the public
API
- Expanded the message constmer to be a full client "event" consumer.
- The events are for connected, connection_lost, disconnected,
message arrived, and application shutdown.
- The application can get client state change notifications without
resorting to callbacks.
- There's a new persistence_type (std::variant) that can hold any
of the persistence specifiers (none, file directory, or user
interface).
- Most of the class static constants are now constexpr.
- Removed the fake ReasonCode::MQTTPP_V3_CODE. Now all reason codes
in a v3 connection are SUCCESS.
- The mqtt::exception checks if the 'rc' return code actually
contains a reason code error, amd if so, sets it as the reason
code.
- property can now report the typeid of its contained value.
- The properties list implements a const iterator
- Added a to_string() and operator<<() for reason codes.
- thread_queue is now closable.
- Added documentation for UNIX domain sockets coming in with Paho
C v1.3.14
- Removed the manual implementation of make_unique<>()
- Added create_options assignment operators.
- Fixed some corner cases for topic_filter::matches()
- Cleaned up and fixed a number of example apps.
- Most apps now except a server URI from the command line
- 'data_publish' example uses C++17 std::filesystem for creating
a file-based encrypted persistence for messages.
- Updated local CI (buildtst.sh) for current compilers and unit tests.
- Reorganized the source repository
- Completely reformat the sources and added a .clang-format file (a
project master and a slightly-different one for headers).
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp/0001-cmake-Use-CMAKE_INSTALL_LIBDIR-and-CMAKE_INSTALL_BIN.patch | 53 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.5.3.bb (renamed from meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb) | 6 |
2 files changed, 1 insertions, 58 deletions
diff --git a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp/0001-cmake-Use-CMAKE_INSTALL_LIBDIR-and-CMAKE_INSTALL_BIN.patch b/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp/0001-cmake-Use-CMAKE_INSTALL_LIBDIR-and-CMAKE_INSTALL_BIN.patch deleted file mode 100644 index a881c83495..0000000000 --- a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp/0001-cmake-Use-CMAKE_INSTALL_LIBDIR-and-CMAKE_INSTALL_BIN.patch +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | From 2a0dd2b300242230faa92cf8e26ccd70231bc9ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 19 Mar 2022 23:37:58 -0700 | ||
4 | Subject: [PATCH] cmake: Use CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_BINDIR | ||
5 | |||
6 | This ensures the install paths are not hardcoded. | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | --- | ||
12 | cmake/CMakeLists.txt | 4 ++-- | ||
13 | src/samples/CMakeLists.txt | 4 ++-- | ||
14 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
15 | |||
16 | --- a/cmake/CMakeLists.txt | ||
17 | +++ b/cmake/CMakeLists.txt | ||
18 | @@ -34,7 +34,7 @@ export(EXPORT ${package_name} | ||
19 | ) | ||
20 | |||
21 | install(EXPORT ${package_name} | ||
22 | - DESTINATION lib/cmake/${package_name} | ||
23 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${package_name} | ||
24 | FILE ${package_name}Targets.cmake | ||
25 | NAMESPACE ${package_name}:: | ||
26 | ) | ||
27 | @@ -42,5 +42,5 @@ install(EXPORT ${package_name} | ||
28 | install(FILES | ||
29 | "${CMAKE_CURRENT_BINARY_DIR}/${package_name}Config.cmake" | ||
30 | "${CMAKE_CURRENT_BINARY_DIR}/${package_name}ConfigVersion.cmake" | ||
31 | - DESTINATION lib/cmake/${package_name} | ||
32 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${package_name} | ||
33 | ) | ||
34 | --- a/examples/CMakeLists.txt | ||
35 | +++ b/examples/CMakeLists.txt | ||
36 | @@ -65,7 +65,7 @@ endforeach() | ||
37 | |||
38 | ## install binaries | ||
39 | install(TARGETS ${EXECUTABLES} EXPORT PahoMqttCppSamples | ||
40 | - RUNTIME DESTINATION bin | ||
41 | + RUNTIME DESTINATION {CMAKE_INSTALL_BINDIR} | ||
42 | ) | ||
43 | |||
44 | ## Build the SSL/TLS samples, if selected | ||
45 | @@ -80,7 +80,7 @@ if(PAHO_WITH_SSL) | ||
46 | endforeach() | ||
47 | |||
48 | install(TARGETS ${SSL_EXECUTABLES} EXPORT PahoMqttCppSamples | ||
49 | - RUNTIME DESTINATION bin | ||
50 | + RUNTIME DESTINATION {CMAKE_INSTALL_BINDIR} | ||
51 | ) | ||
52 | endif() | ||
53 | |||
diff --git a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb b/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.5.3.bb index 6f2efcda50..f4f01e69db 100644 --- a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb +++ b/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.5.3.bb | |||
@@ -10,11 +10,7 @@ LIC_FILES_CHKSUM = " \ | |||
10 | file://epl-v20;md5=d9fc0efef5228704e7f5b37f27192723 \ | 10 | file://epl-v20;md5=d9fc0efef5228704e7f5b37f27192723 \ |
11 | " | 11 | " |
12 | 12 | ||
13 | SRC_URI = "gitsm://github.com/eclipse/paho.mqtt.cpp;protocol=https;branch=v1.4.x \ | 13 | SRC_URI = "git://github.com/eclipse/paho.mqtt.cpp;protocol=https;branch=master;tag=v${PV}" |
14 | file://0001-cmake-Use-CMAKE_INSTALL_LIBDIR-and-CMAKE_INSTALL_BIN.patch \ | ||
15 | " | ||
16 | SRCREV = "ac1b023eab789e829656144f12b248602c40e37b" | ||
17 | PV .= "+git" | ||
18 | 14 | ||
19 | DEPENDS = "openssl paho-mqtt-c" | 15 | DEPENDS = "openssl paho-mqtt-c" |
20 | 16 | ||