From patchwork Mon Nov 30 08:46:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106421 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.28740.1796028455696789133 for ; Mon, 30 Nov 2026 00:47:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=Gb2SlC35; spf=pass (domain: gmail.com, ip: 209.85.215.170, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-cc4be0e5351so6368836a12.0 for ; Mon, 30 Nov 2026 00:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796028455; x=1796633255; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tU2wPw+PiWlNC3d6ngdyI9RmaWBy62Bz4DCDe4DIHCE=; b=Gb2SlC35H9HUPaTiHDl94GxorpuWQjpksZ22cEzBZhYsh944S9et1h34P9QISgyDQW 2XifMmohfgalRAOUbny+u2lfGi75OJg3VMS+orZWzGP/xSmfoufYEAY58ycGc8dJg0er hKbWeeTlSz6YeQMTbWTu07VJcZaoR4VFXwmr7IdXYEdVPmR8JN1Nq+yygK0eS+aZ49V8 INGr12oYl5M7EbQq0ptptMyVofrKIdWWa1TN+cLn9j+/3TKJWQvWK9xz+L0MMi7QNAk8 243SUp5PV2o6dXtMfnCLpwLf+txPoBr9uuSIYyEWIRsVyzokkTTSoOGem5dXEnq8uFG6 ACUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028455; x=1796633255; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=tU2wPw+PiWlNC3d6ngdyI9RmaWBy62Bz4DCDe4DIHCE=; b=cPbg8fsefXiR9U4+VwX/YjCyEL8uIxAE1fVlVarKgKO8fnCaVNt+zpMHDt70L0VcpY jGByTSJdnG72QZmrOIw9Bz4O4rAaQts7YjG9/T1dGX2EefjX6+GdyAi/uGVlTdsnggCU hsLQveSt0kxfmEYBT/Nlnz1/SzyaXCYTBNGpXUzOSM8vgF7pwfYu9wCTLZOJBeZQvpQ5 l5LrAJkpsH3vu3jF+5/WZbGSvZ40b9z5itiM8vusg+0o+FjT95Lj1t74iVzWzKYLi4Vy ovLUBupW4tGyyzfU/mfM/WXk23JUhOGGI6b8ZtlhbeFR7nfYEfvK5y3wIZjpY4OS2iqD CEZA== X-Gm-Message-State: APuU4Z/2I9XzTvjHmlDRKrdRIlaSp847s0C7Qpph4YMaxIQRR/JFWomf hDRbse3G1DmnBtMDcmMsQupZ0qeQqegZJFz6V9GKdB/wAE081wpooV85648wOhv5 X-Gm-Gg: AZFdTZfdW6QPq5IDacl6ecxoZGyD0UnonfIFK+7FAts3n1taMrbXVJ0JIYzw6wO++ZY 5Bpv6v/gJO2qur8t6b9umETeSy2iVp2EUKdJ+LjPpOHz+WD/riefowfiVEHsGA2NPNo2YqDsx1x eABxvM6/kShsF3+oVNuDrr4IObQDUGlc4IBDopXfSuzwM+PZ6FmqboEKhwiQikZ5eqSw88eJ8+R QdCsrFnCWzkBa4zA+4UCWyp/J9Lt+DY9ExldiH6VwKobPp/0MiLODr0llOUhJx0VkXPnFW2WeBv jD05ZM/3ikRbwRZCIGyuCaXZJoqciUukJQYmsdQ8Lf3ExcEALHGmeL05MmDK+N3YNd4x9vCiuK5 JR3ucd0Z5ju56memsIwdI5PKQqH6+WwIAqjH3+0pt29yTOLrGzNCkDLE1X8mODFcoF1ZqdOt5B/ b2budv4HVcN7HY2g50jGcK/57WS4E34XjN34kx/GrdeFumHnFBQr8xCzJgOwKhg0X63sIxy7mc1 B/Iq1+DXu0e9WeGmS/yRkxvIJBxJ0f9A1uqIGF1StaCdYaR1+eg8h/21vk+hM/tAFartnYFMnUF c801fMjVNHaQeY2buQAxg+mY55NVJQBnfygiC5gQPLXsvhUXkTFdgeijPiSSmVJl0WRze3Lufml zvsDqMWbM0pTfvc2wQHo4t6EfTlx52bKOnpPg46qKc1KXUivxT/BUyb2dKatwN61zDhO4mDPXaJ EusSqOBrPmAq6RTP//sjz6S7J5G1AxXKIv+GfKAq6NBvV1BgOtkojqGk8Ifi70AVodkLqyA4uJQ d8BFrmqljO0A4dg1UaMO3771YZREdsguIEUH0bAuRdwBsDTrJanu9qSGA0HluGtPI+Ung76SyMd ohya X-Received: by 2002:a05:6a20:da0d:b0:3e2:76f0:ac27 with SMTP id adf61e73a8af0-4014b954cc8mr35047989637.40.1796028454986; Mon, 30 Nov 2026 00:47:34 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e45eccsm17553649b3a.31.2026.11.30.00.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 00:47:34 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 48/72] sdbus-c++: Upgrade 2.3.1 -> 2.4.0 Date: Mon, 30 Nov 2026 00:46:19 -0800 Message-ID: <20261130084643.1500716-49-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> References: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 08:47:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133485 - 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 --- ...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 --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 -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 ---- - 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 -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 ---- - 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"