public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Deepak Rathore -X (deeratho - E INFOCHIPS PRIVATE LIMITED at Cisco)" <deeratho@cisco.com>
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	[thread overview]
Message-ID: <20260212050352.4090817-1-deeratho@cisco.com> (raw)

From: Deepak Rathore <deeratho@cisco.com>

CMake's bundled curl forces USE_LIBIDN2 to ON, which makes the build include
<idn2.h>. 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 <deeratho@cisco.com>

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 <deeratho@cisco.com>
+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
+<idn2.h>. 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 <deeratho@cisco.com>
+---
+ 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()
-- 
2.35.6



             reply	other threads:[~2026-02-12  5:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-12  5:03 Deepak Rathore -X (deeratho - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
2026-02-16 13:55 ` [OE-core] [openembedded-core] [master] [PATCH] cmake-native: disable libidn2 for native build Ross Burton
2026-02-17  5:22   ` Deepak Rathore
     [not found]   ` <920657.1771264467737815347@lists.openembedded.org>
2026-02-18 17:00     ` [OE-core] " Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260212050352.4090817-1-deeratho@cisco.com \
    --to=deeratho@cisco.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox