From patchwork Sat Feb 8 15:03:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 56918 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 170CFC3DA4A for ; Sat, 8 Feb 2025 15:04:13 +0000 (UTC) Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by mx.groups.io with SMTP id smtpd.web10.10236.1739027045041019661 for ; Sat, 08 Feb 2025 07:04:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm2 header.b=BK0X0snl; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.226, mailfrom: fm-256628-2025020815040014056ca6fcb1c77bb7-84_nkt@rts-flowmailer.siemens.com) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 2025020815040014056ca6fcb1c77bb7 for ; Sat, 08 Feb 2025 16:04:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=m3RSG8Kz22opjkYgacgax4AsMS1aRzkvDw+ce9C2TvI=; b=BK0X0snlsVPcaAt8ZRMARfDKN5X4T1QcD6xGm+g8+dQSz7b2echg9d+tyt9pRoHKiI60dF I29T1QzplGM3iz3E1X58U4Be79rPMtB/Q77NKJXwpGt7v1ix+IWy/FMk2xoQM5B9yFP/UWT6 AzBiss48fQbXdtRdAGGk3JxAX4qIGVNDNP36lYsFuFxm81trJSgpW3Dhmh8CV1c633i7zXNc 4JyjZQHpsROe82BzH6Za3iMOiVwZKU/VxLYersN+lUfWcbJcMcn1m+9kWRXdxovnoMU/cJaF +y+HRYd8LJn0TQl6s7f6WJlkg6lyIEyP+VynFMySXy7gP/wfvok6eNTg==; From: Peter Marko To: openembedded-devel@lists.openembedded.org Cc: Peter Marko Subject: [meta-oe][PATCH 1/4] grpc: remove unneeded dependencies Date: Sat, 8 Feb 2025 16:03:05 +0100 Message-Id: <20250208150308.2451484-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 08 Feb 2025 15:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115309 From: Peter Marko googletest is needed only if we would build tests, and then it should be conditional on PTEST_ENABLED libnsl is not needed. there is no linking command in any cmake. The only grep hit is in cares.cmake to disable it. Commit 2ffc7b45d638a89535b963533d39b8b13e4c8c1e which added it talks about host distros, but also such case would be wrong when adding it to general depends (should be in native only depends) and it would have to have be reference in cmake (in grpc or in one of recipe-sysroot). Also sort the dependencies in the process. Signed-off-by: Peter Marko --- meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb index caf355bb52..b82b802e3c 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb @@ -6,8 +6,8 @@ SECTION = "libs" LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906" -DEPENDS = "c-ares protobuf protobuf-native openssl libnsl2 abseil-cpp re2 zlib" -DEPENDS:append:class-target = " googletest grpc-native " +DEPENDS = "abseil-cpp c-ares openssl protobuf protobuf-native re2 zlib" +DEPENDS:append:class-target = " grpc-native" DEPENDS:append:class-nativesdk = " grpc-native " PACKAGE_BEFORE_PN = "${PN}-compiler" From patchwork Sat Feb 8 15:03:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 56916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10FAAC02198 for ; Sat, 8 Feb 2025 15:04:13 +0000 (UTC) Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.web10.10237.1739027047509623758 for ; Sat, 08 Feb 2025 07:04:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm2 header.b=ASnMsHL1; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-256628-20250208150405e9aaf5447c92eecb50-feqa2_@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20250208150405e9aaf5447c92eecb50 for ; Sat, 08 Feb 2025 16:04:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=YzQ8cFJe2iUIScWULkELap2jrNKHpcTjXX0Szr4CZWk=; b=ASnMsHL1fulKjKIOVO8D7rXxGK+pdjJmrMA9prWA0iT5h/aeYudLqWlcylM75R2Qfypm97 dvne67NBKoZlzSTYRKQ9H9OQLxS8Vgpc2fEtIfufq5CfUBSYY/FSivSuy8ID/REEXGhi6NBi gsURTyBIk0HEaqNUb2F6IpVzglMtCh8JaHqvjP4PLwJxtwcriZ2PR6MEmyTYZJ+MjXBKhzfD 3uQdth2nZR7xow50dMgGypsOUlhQx/+L1c33R+XQX9/rcPKWon4FB83CeuLgv3VpryDgPfSD odV4DmrWSEexaEAiPR2H6FQ3hRDOI4JJiWJq2CBC4wVeeCtQG9FAWF8A==; From: Peter Marko To: openembedded-devel@lists.openembedded.org Cc: Peter Marko Subject: [meta-oe][PATCH 2/4] grpc: remove workaround for GCC 4.8 in Ubuntu-14.04 Date: Sat, 8 Feb 2025 16:03:06 +0100 Message-Id: <20250208150308.2451484-2-peter.marko@siemens.com> In-Reply-To: <20250208150308.2451484-1-peter.marko@siemens.com> References: <20250208150308.2451484-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 08 Feb 2025 15:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115310 From: Peter Marko Minimum distro version and gcc version is now higher. Signed-off-by: Peter Marko --- meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb index b82b802e3c..1524168c78 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb @@ -25,8 +25,6 @@ BRANCH = "v1.68.x" SRC_URI = "gitsm://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=${BRANCH} \ file://0001-cmake-Link-with-libatomic-on-rv32-rv64.patch \ " -# Fixes build with older compilers 4.8 especially on ubuntu 14.04 -CXXFLAGS:append:class-native = " -Wl,--no-as-needed" inherit cmake pkgconfig From patchwork Sat Feb 8 15:03:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 56917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15F7DC0219E for ; Sat, 8 Feb 2025 15:04:13 +0000 (UTC) Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.web10.10237.1739027047509623758 for ; Sat, 08 Feb 2025 07:04:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm2 header.b=HvmSUoAK; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-256628-20250208150409441afe844873bcf06e-coq8sy@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20250208150409441afe844873bcf06e for ; Sat, 08 Feb 2025 16:04:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=Wokqv164Q6SzMVB51BjWKNAV/6VQKe4CPNheo3XDd5U=; b=HvmSUoAK+6pqrkv6rCMCh6tpuWsJP8vwW+pznHpNrfFSb+0xh3xzUtXibo7T+dMkKf/kGy LLw3tBogWF/mA7GgdtIJCd/bzctUl7k2q0wteOAhjOvwhzrqGeFs4/c8h5xt+p10h7NEvr4R CBHKyPMnL203AXyGPVWqgLdbQlhpmuBx7iTye1+5vMzn3G2TOKmd0f0FiKPLukaWJnU2G1cA R0b0R7QftwrFJa6OUq1vALOdh5XcNnyo+MfNZ9yOUJ228mKJ+HJZwNWNzMMbkZfm5sqK2Acu 98FP6NOC38kLvic1V4dcv4Y2MVwmmWWCE3va5PQsHBvzePZYT5om5vtg==; From: Peter Marko To: openembedded-devel@lists.openembedded.org Cc: Peter Marko Subject: [meta-oe][PATCH 3/4] grpc: fix protobuf-lite package config Date: Sat, 8 Feb 2025 16:03:07 +0100 Message-Id: <20250208150308.2451484-3-peter.marko@siemens.com> In-Reply-To: <20250208150308.2451484-1-peter.marko@siemens.com> References: <20250208150308.2451484-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 08 Feb 2025 15:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115311 From: Peter Marko protobuf-lite is a package, not recipe, so current code leads to ERROR: Nothing PROVIDES 'protobuf-lite' Moving it to 4th part (rdepends) is not needed as grpc links against it so that rdependency is asutomatic. Therefore protobuf-lite should be removed. Note: for native, this packageconfig does not even compile and for target it fails to link. Signed-off-by: Peter Marko --- meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb index 1524168c78..6e729e9734 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb @@ -50,7 +50,7 @@ PACKAGECONFIG[objective-c] = "-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=ON,-DgRPC_BUI PACKAGECONFIG[php] = "-DgRPC_BUILD_GRPC_PHP_PLUGIN=ON,-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF" PACKAGECONFIG[python] = "-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=ON,-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF" PACKAGECONFIG[ruby] = "-DgRPC_BUILD_GRPC_RUBY_PLUGIN=ON,-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF" -PACKAGECONFIG[protobuf-lite] = "-DgRPC_USE_PROTO_LITE=ON,-DgRPC_USE_PROTO_LITE=OFF,protobuf-lite" +PACKAGECONFIG[protobuf-lite] = "-DgRPC_USE_PROTO_LITE=ON,-DgRPC_USE_PROTO_LITE=OFF" PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,," do_configure:prepend() { From patchwork Sat Feb 8 15:03:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 56919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03055C0219E for ; Sat, 8 Feb 2025 15:04:23 +0000 (UTC) Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) by mx.groups.io with SMTP id smtpd.web10.10241.1739027057435342980 for ; Sat, 08 Feb 2025 07:04:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm2 header.b=YSwZ6+my; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.225, mailfrom: fm-256628-202502081504158852714bd0f4281523-cxc64x@rts-flowmailer.siemens.com) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202502081504158852714bd0f4281523 for ; Sat, 08 Feb 2025 16:04:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=HbS+Bz1QKcicYX8plMrBiNa3uyV540LvAoDU0z+OvRU=; b=YSwZ6+myCFjyhWsKP27hdwAVqCya4iIhWxJ9xDammyM+xpopq5GJb2BxRAY33tEZWRq+2V o0WQPjUlYlma88iPGTykmftEh8MCYTQQkCP63dvYXehm0YQXbS9j6f3uVNKc9GhSKcN8emiy Wn+B4mVp+6hrH/21ICz5acndyrltvy6nFD0UDj45dvmeGg1nynJrrAar7/9jwiMyEbWtJi5u 6yfZekFgHBh+dp2htnJ8yfSPquA612lU5sfaqnHyntmPmHDD9q7RLgBHeeVbwrjG9GsdOk28 tMWLsRvSuufZYn1sFtkwNP5qqT58TlQjEov6vFEAmPJ6z6QNEXfm15Ow==; From: Peter Marko To: openembedded-devel@lists.openembedded.org Cc: Peter Marko Subject: [meta-oe][PATCH 4/4] grpc: add licenses from third party components Date: Sat, 8 Feb 2025 16:03:08 +0100 Message-Id: <20250208150308.2451484-4-peter.marko@siemens.com> In-Reply-To: <20250208150308.2451484-1-peter.marko@siemens.com> References: <20250208150308.2451484-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 08 Feb 2025 15:04:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115312 From: Peter Marko There are 9 (out of 24) third party components used for build. Add their licenses. SUB third_party/abseil-cpp .. not used (unbundled) third_party/address_sorting .. USED SUB third_party/benchmark .. not used (testing) SUB third_party/bloaty .. not used (testing) SUB third_party/boringssl-with-bazel .. not used (unbundled; openssl) third_party/cares .. not used (unbundled) SUB third_party/envoy-api .. USED SUB third_party/googleapis .. USED SUB third_party/googletest .. not used (testing) third_party/objective_c .. not used (build helpers) SUB third_party/opencensus-proto .. USED SUB third_party/opentelemetry .. not used (gRPC_BUILD_GRPCPP_OTEL_PLUGIN) SUB third_party/opentelemetry-cpp .. not used (gRPC_BUILD_GRPCPP_OTEL_PLUGIN) SUB third_party/protobuf .. not used (unbundled) SUB third_party/protoc-gen-validate .. USED third_party/py .. not used (build helpers) third_party/rake-compiler-dock .. not used (build helpers) SUB third_party/re2 .. not used (unbundled) third_party/toolchains .. not used (build helpers) third_party/upb .. USED third_party/utf8_range .. USED SUB third_party/xds .. USED third_party/xxhash .. USED SUB third_party/zlib .. not used (unbundled) * address_sorting - BSD-3-CLAUSE (already in main license) https://github.com/grpc/grpc/blob/master/third_party/address_sorting/LICENSE * envoy-api - Apache-2.0 (already in main license) https://github.com/envoyproxy/data-plane-api/blob/4de3c74cf21a9958c1cf26d8993c55c6e0d28b49/LICENSE * googleapis - Apache-2.0 (already in main license) https://github.com/googleapis/googleapis/blob/fe8ba054ad4f7eca946c2d14a63c3f07c0b586a0/LICENSE * opencensus-proto - Apache-2.0 (already in main license) https://github.com/census-instrumentation/opencensus-proto/blob/4aa53e15cbf1a47bc9087e6cfdca214c1eea4e89/LICENSE * protoc-gen-validate - Apache-2.0 (already in main license) https://github.com/bufbuild/protoc-gen-validate/blob/32c2415389a3538082507ae537e7edd9578c64ed/LICENSE * upb - BSD-3-Clause (already present in main LICENSE) there is a note in all files * utf8_range - MIT https://github.com/grpc/grpc/blob/master/third_party/utf8_range/LICENSE * xds - Apache-2.0 (already in main license) https://github.com/cncf/xds/blob/3a472e524827f72d1ad621c4983dd5af54c46776/LICENSE * xxhash - BSD-2-Clause https://github.com/grpc/grpc/blob/master/third_party/xxhash/LICENSE Signed-off-by: Peter Marko --- meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb index 6e729e9734..131f33a75e 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.68.0.bb @@ -3,7 +3,7 @@ Provides gRPC libraries for multiple languages written on top of shared C core l (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)" HOMEPAGE = "https://github.com/grpc/grpc" SECTION = "libs" -LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0" +LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0 & MIT & BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906" DEPENDS = "abseil-cpp c-ares openssl protobuf protobuf-native re2 zlib"