From patchwork Thu Feb 12 05:03:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Deepak Rathore -X (deeratho - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Patchwork-Id: 80950 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 419D5EDF039 for ; Thu, 12 Feb 2026 05:04:02 +0000 (UTC) Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.38786.1770872637189369158 for ; Wed, 11 Feb 2026 21:03:57 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=L0lfwa+9; spf=pass (domain: cisco.com, ip: 173.37.142.88, mailfrom: deeratho@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=2396; q=dns/txt; s=iport01; t=1770872637; x=1772082237; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=C3WOpSvXz4LpPOOe885qStO0vHemfC7gay4U8lKyjOk=; b=L0lfwa+91RL2nEWakupcGObmMqvKjPzT8/nLOd9DNJZwTEw4LcJA29Ka zR458ouscTZYuUscrb1+ZBWs+OCpUCVu+l0MqbXz+1vDtHQYbNCAyqTfw YR5r9zRd6SfYDgyc4oEW/TW/HjvjInarrW34n8Vt5hUfRhjzSpOEO8sWR bycn1D8oNFJjq2tZhJaI6peZ7nRDg16ANrPd4IMa7mGwdqKH6WoY0CJoy rvbBl/J2Wc3umanca/DDvM3dNBnjf1Sm5qKS1s9X+TAu5RmAMC5pToAqU tUpRWsOa9dMa4vkz6MR59LDgck+UGzkgL2CwQ5xWewH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uGgP3ohSD/A6tHQdVU8dYv2jV/3Fc7DwUbU1a+q/S1hkOyHtlYM UE8/is1sbN081SmSNT4VRC0rHOI+BkGVLJt//YS8gqBzO/Qpg2eHGVBFmMHY909v8hwTjsvv rOUo+7U6fVUmOX9YRqgGn2891te5QB9wbc+WBI5 IronPort-HdrOrdr: A9a23:6crGiaxAva2vniesMPneKrPwOb1zdoMgy1knxilNoHtuA66lfq +V8sjzuSWYtN9zYgBCpTnjAsi9qBrnnPYfi7X5Vo3MYOCJggeVxflZjbcLB1bbaknDHik379 YET5RD X-Talos-CUID: 9a23:HcIWC2ErKpVnUVcmqmJi6XYGQJ4rSUTgxXbIPl+oAmpsC6CsHAo= X-Talos-MUID: 9a23:7gpHCAhdoypfIJozRbJov8Mpd/k1uY+XMB03n7Y5kuOCJwtoODPGpWHi X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.21,286,1763424000"; d="scan'208";a="670066963" Received: from rcdn-l-core-05.cisco.com ([173.37.255.142]) by alln-iport-1.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 12 Feb 2026 05:03:56 +0000 Received: from sjc-ads-3552.cisco.com (sjc-ads-3552.cisco.com [171.68.249.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rcdn-l-core-05.cisco.com (Postfix) with ESMTPS id 5E2E918000223 for ; Thu, 12 Feb 2026 05:03:56 +0000 (GMT) Received: by sjc-ads-3552.cisco.com (Postfix, from userid 1795984) id 07677CC12B5; Wed, 11 Feb 2026 21:03:56 -0800 (PST) From: "Deepak Rathore -X (deeratho - E INFOCHIPS PRIVATE LIMITED at Cisco)" To: openembedded-core@lists.openembedded.org Subject: [openembedded-core] [master] [PATCH] cmake-native: disable libidn2 for native build Date: Wed, 11 Feb 2026 21:03:26 -0800 Message-ID: <20260212050352.4090817-1-deeratho@cisco.com> X-Mailer: git-send-email 2.49.1 MIME-Version: 1.0 X-Outbound-SMTP-Client: 171.68.249.250, sjc-ads-3552.cisco.com X-Outbound-Node: rcdn-l-core-05.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 12 Feb 2026 05:04:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/231010 From: Deepak Rathore CMake's bundled curl forces USE_LIBIDN2 to ON, which makes the build include . The native sysroot does not provide that header, so the build fails and we end up with a native dependency loop. Allow the option to be overridden and default it to OFF when it is not preset. Signed-off-by: Deepak Rathore diff --git a/meta/recipes-devtools/cmake/cmake-native_4.2.2.bb b/meta/recipes-devtools/cmake/cmake-native_4.2.2.bb index 128fef8a6e..9e1aae379e 100644 --- a/meta/recipes-devtools/cmake/cmake-native_4.2.2.bb +++ b/meta/recipes-devtools/cmake/cmake-native_4.2.2.bb @@ -7,6 +7,7 @@ SRC_URI += "file://OEToolchainConfig.cmake \ file://environment.d-cmake.sh \ file://0001-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal.patch \ file://0002-CMakeLists.txt-disable-USE_NGHTTP2.patch \ + file://0003-Disable-libidn2-in-bundled-curl.patch \ " LICENSE:append = " & BSD-1-Clause & MIT & BSD-2-Clause & curl" diff --git a/meta/recipes-devtools/cmake/cmake/0003-Disable-libidn2-in-bundled-curl.patch b/meta/recipes-devtools/cmake/cmake/0003-Disable-libidn2-in-bundled-curl.patch new file mode 100644 index 0000000000..bafa0ae89b --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake/0003-Disable-libidn2-in-bundled-curl.patch @@ -0,0 +1,26 @@ +From 7c6b3d07d8087cae729ba7d82602f50b82086e39 Mon Sep 17 00:00:00 2001 +From: Deepak Rathore +Date: Mon, 10 Feb 2026 00:00:00 +0000 +Subject: [PATCH] cmcurl: disable libidn2 for native build + +CMake's bundled curl forces USE_LIBIDN2 to ON, which makes the build include +. The native sysroot does not provide that header, so the build fails +and we end up with a native dependency loop. Allow the option to be overridden +and default it to OFF when it is not preset. + +Upstream-Status: Inappropriate [native-only configuration] + +Signed-off-by: Deepak Rathore +--- + Utilities/cmcurl/CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt +index ab5f1c50c6..c1fb0e3e6d 100644 +--- a/Utilities/cmcurl/CMakeLists.txt ++++ b/Utilities/cmcurl/CMakeLists.txt +@@ -105,1 +105,3 @@ +-set(USE_LIBIDN2 ON) ++if(NOT DEFINED USE_LIBIDN2) ++ set(USE_LIBIDN2 OFF) ++endif()