diff mbox series

[meta-oe,48/72] sdbus-c++: Upgrade 2.3.1 -> 2.4.0

Message ID 20261130084643.1500716-49-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upgrades, tip updates, removals and build fixes | expand

Commit Message

Khem Raj Nov. 30, 2026, 8:46 a.m. UTC
- Client tracking, an API for watching property changes, direct-type
  properties in getPropertyAsync() callbacks and custom timeouts for
  property setting.
- Custom direct callbacks in generated proxy classes; the code generator
  sanitizes identifiers and fixes an out-of-bounds access.
- Fixes C++17 API compatibility and an ambiguous call in signal handlers.

Drop 0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch and
0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch, which
are upstream.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...er-timeout-for-the-large-argument-me.patch | 40 --------------
 ...measured-timeout-bound-in-timeout-te.patch | 52 -------------------
 ...{sdbus-c++_2.3.1.bb => sdbus-c++_2.4.0.bb} |  4 +-
 3 files changed, 1 insertion(+), 95 deletions(-)
 delete mode 100644 meta-oe/recipes-core/sdbus-c++/sdbus-c++/0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch
 delete mode 100644 meta-oe/recipes-core/sdbus-c++/sdbus-c++/0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch
 rename meta-oe/recipes-core/sdbus-c++/{sdbus-c++_2.3.1.bb => sdbus-c++_2.4.0.bb} (90%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch
deleted file mode 100644
index 5737a4a88b..0000000000
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch
+++ /dev/null
@@ -1,40 +0,0 @@ 
-From 1c000e89c9a1ebe914ef8a581de7a2fbab629fd9 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Sat, 31 Oct 2026 10:45:54 -0700
-Subject: [PATCH 1/2] tests: Use a longer timeout for the large argument method
- call
-
-CallsMethodWithLargeArgument sends a map of 400000 strings (about 30 MB)
-in one synchronous method call with the default 25 second D-Bus method
-call timeout. Marshalling, transferring and unmarshalling that much data
-takes 13-16 seconds on an idle emulated (qemu TCG) aarch64 machine and
-more than 40 seconds when the host is busy, so the test fails with
-org.freedesktop.DBus.Error.Timeout.
-
-Call the method with an explicit 120 second timeout instead.
-
-Upstream-Status: Submitted [https://github.com/Kistler-Group/sdbus-cpp/pull/564]
-AI-Generated: Uses Claude Code
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- tests/integrationtests/DBusMethodsTests.cpp | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/tests/integrationtests/DBusMethodsTests.cpp b/tests/integrationtests/DBusMethodsTests.cpp
-index 345cf4e..3066317 100644
---- a/tests/integrationtests/DBusMethodsTests.cpp
-+++ b/tests/integrationtests/DBusMethodsTests.cpp
-@@ -309,7 +309,12 @@ TYPED_TEST(SdbusTestObject, CallsMethodWithLargeArgument)
-         //totalSize += sizeof(int) + collection[i].size();
-     }
-     //printf("Sending large message with collection of size %zu bytes\n", totalSize);
--    this->m_proxy->sendLargeMessage(collection);
-+    // Marshalling and transferring ~30 MB takes long on slow (e.g. emulated) machines,
-+    // so don't let the call run into the default 25s method call timeout
-+    this->m_proxy->getProxy().callMethod("sendLargeMessage")
-+                             .onInterface("org.sdbuscpp.integrationtests")
-+                             .withTimeout(120s)
-+                             .withArguments(collection);
- }
- 
- TYPED_TEST(SdbusTestObject, CanSendCallsAndReceiveRepliesWithLargeData)
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch
deleted file mode 100644
index 5a31c197d8..0000000000
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch
+++ /dev/null
@@ -1,52 +0,0 @@ 
-From 623714493ba8144b38be6157f55e32acb0e51021 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Sat, 31 Oct 2026 11:37:50 -0700
-Subject: [PATCH 2/2] tests: Relax the measured timeout bound in timeout tests
-
-ThrowsTimeoutErrorWhenMethodTimesOut and
-ThrowsTimeoutErrorWhenClientSideAsyncMethodTimesOut call a method that
-takes 1 second with a 1 microsecond timeout, and then assert that the
-timeout error arrived within 50 ms. On an emulated (qemu TCG) aarch64
-machine with a busy host this takes longer, e.g.
-
-  Value of: measuredTimeout
-  Expected: is <= 0.05s
-    Actual: 0.0567641s
-
-Allow 500 ms instead. That is still well below the 1 second the operation
-takes, so the tests still check that the client side timeout fired.
-
-Upstream-Status: Submitted [https://github.com/Kistler-Group/sdbus-cpp/pull/564]
-AI-Generated: Uses Claude Code
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- tests/integrationtests/DBusAsyncMethodsTests.cpp | 2 +-
- tests/integrationtests/DBusMethodsTests.cpp      | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/integrationtests/DBusAsyncMethodsTests.cpp b/tests/integrationtests/DBusAsyncMethodsTests.cpp
-index 14942ba..ea05c3e 100644
---- a/tests/integrationtests/DBusAsyncMethodsTests.cpp
-+++ b/tests/integrationtests/DBusAsyncMethodsTests.cpp
-@@ -82,7 +82,7 @@ TYPED_TEST(AsyncSdbusTestObject, ThrowsTimeoutErrorWhenClientSideAsyncMethodTime
-         ASSERT_THAT(e.getName(), AnyOf("org.freedesktop.DBus.Error.Timeout", "org.freedesktop.DBus.Error.NoReply"));
-         ASSERT_THAT(e.getMessage(), AnyOf("Connection timed out", "Method call timed out"));
-         auto measuredTimeout = std::chrono::steady_clock::now() - start;
--        ASSERT_THAT(measuredTimeout, Le(50ms));
-+        ASSERT_THAT(measuredTimeout, Le(500ms)); // Well below the 1s operation time, with headroom for slow (e.g. emulated) machines
-     }
-     catch(...)
-     {
-diff --git a/tests/integrationtests/DBusMethodsTests.cpp b/tests/integrationtests/DBusMethodsTests.cpp
-index 3066317..695d797 100644
---- a/tests/integrationtests/DBusMethodsTests.cpp
-+++ b/tests/integrationtests/DBusMethodsTests.cpp
-@@ -197,7 +197,7 @@ TYPED_TEST(SdbusTestObject, ThrowsTimeoutErrorWhenMethodTimesOut)
-         ASSERT_THAT(e.getName(), AnyOf("org.freedesktop.DBus.Error.Timeout", "org.freedesktop.DBus.Error.NoReply"));
-         ASSERT_THAT(e.getMessage(), AnyOf("Connection timed out", "Operation timed out", "Method call timed out"));
-         auto measuredTimeout = std::chrono::steady_clock::now() - start;
--        ASSERT_THAT(measuredTimeout, Le(50ms));
-+        ASSERT_THAT(measuredTimeout, Le(500ms)); // Well below the 1s operation time, with headroom for slow (e.g. emulated) machines
-     }
-     catch(...)
-     {
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.3.1.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.4.0.bb
similarity index 90%
rename from meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.3.1.bb
rename to meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.4.0.bb
index ca728633bb..5d99353a64 100644
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.3.1.bb
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_2.4.0.bb
@@ -16,11 +16,9 @@  PACKAGECONFIG[with-tests] = "-DSDBUSCPP_BUILD_TESTS=ON -DSDBUSCPP_INSTALL_TESTS=
 
 DEPENDS += "expat"
 
-SRCREV = "ca073434d2c03c2b619f7e23f285cebbf32c7e46"
+SRCREV = "83c6786e843795bef1667c178fd387cdafbc5d84"
 SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master;tag=v${PV} \
            file://0001-test-Fix-error-factory-test-for-musl-libc-compatibil.patch \
-           file://0002-tests-Use-a-longer-timeout-for-the-large-argument-me.patch \
-           file://0003-tests-Relax-the-measured-timeout-bound-in-timeout-te.patch \
            file://0004-test-complete-awaitable-test-tasks-only-after-final-.patch \
            file://run-ptest"