All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prasanth R <ragaprasanth@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: mathieu.dubois-briand@bootlin.com, Prasanth R <ragaprasanth@gmail.com>
Subject: [PATCH v2] cmake,cmake-native: upgrade 4.4.5 -> 4.5.0
Date: Wed, 18 Nov 2026 09:24:05 +0900	[thread overview]
Message-ID: <20261118002405.3564394-1-ragaprasanth@gmail.com> (raw)
In-Reply-To: <20261117061549.1066408-1-ragaprasanth@gmail.com>

CMake 4.5 now bundles rapidhash (MIT), so add its license file.

The bundled curl in 4.5 refuses OpenSSL older than 3.0. cmake-native
takes its libraries from the native sysroot (CMAKE_LIBRARY_PATH) but
not its headers, so FindOpenSSL used the host's openssl/ssl.h and the
build failed on hosts with OpenSSL 1.1. Add CMAKE_INCLUDE_PATH so the
headers come from openssl-native as well.

Release notes:
https://cmake.org/cmake/help/v4.5/release/4.5.html

AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
v2:
- Take headers from the native sysroot too (CMAKE_INCLUDE_PATH), so
  FindOpenSSL uses openssl-native instead of the host's OpenSSL 1.1.

Tested: cmake-native, nativesdk-cmake, and cmake for qemux86-64 and
qemuarm; OPENSSL_INCLUDE_DIR now points to recipe-sysroot-native
(it was /usr/include before).

 .../cmake/{cmake-native_4.4.5.bb => cmake-native_4.5.0.bb}      | 2 ++
 meta/recipes-devtools/cmake/cmake.inc                           | 2 +-
 meta/recipes-devtools/cmake/{cmake_4.4.5.bb => cmake_4.5.0.bb}  | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/cmake/{cmake-native_4.4.5.bb => cmake-native_4.5.0.bb} (95%)
 rename meta/recipes-devtools/cmake/{cmake_4.4.5.bb => cmake_4.5.0.bb} (96%)

diff --git a/meta/recipes-devtools/cmake/cmake-native_4.4.5.bb b/meta/recipes-devtools/cmake/cmake-native_4.5.0.bb
similarity index 95%
rename from meta/recipes-devtools/cmake/cmake-native_4.4.5.bb
rename to meta/recipes-devtools/cmake/cmake-native_4.5.0.bb
index aed38b7ed1..48362195ef 100644
--- a/meta/recipes-devtools/cmake/cmake-native_4.4.5.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_4.5.0.bb
@@ -17,6 +17,7 @@ LIC_FILES_CHKSUM:append = " \
     file://Utilities/cmcurl/COPYING;md5=0515352b285b9c3f66464b135c9c0fdc \
     file://Utilities/cmnghttp2/COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec \
     file://Utilities/cmcppdap/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+    file://Utilities/cmrapidhash/LICENSE;md5=4ba32c08f2e0fce0078296c3d100fb93 \
 "
 
 B = "${WORKDIR}/build"
@@ -24,6 +25,7 @@ do_configure[cleandirs] = "${B}"
 
 EXTRA_OECMAKE += "\
     -DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
+    -DCMAKE_INCLUDE_PATH=${STAGING_INCDIR_NATIVE} \
     -DBUILD_CursesDialog=1 \
     -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
     -DCMAKE_USE_SYSTEM_LIBRARY_CPPDAP=0 \
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc
index 30294fd9b8..01fe71c119 100644
--- a/meta/recipes-devtools/cmake/cmake.inc
+++ b/meta/recipes-devtools/cmake/cmake.inc
@@ -19,7 +19,7 @@ CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
 SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
            "
 
-SRC_URI[sha256sum] = "a0c54c88abb8078dd8eccadb717fc6bb194bf18e7d44c86309910288886e04e2"
+SRC_URI[sha256sum] = "424352d6133e8455e020da787008e8dc67abb18820af3532572ab35657e49213"
 
 UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
 
diff --git a/meta/recipes-devtools/cmake/cmake_4.4.5.bb b/meta/recipes-devtools/cmake/cmake_4.5.0.bb
similarity index 96%
rename from meta/recipes-devtools/cmake/cmake_4.4.5.bb
rename to meta/recipes-devtools/cmake/cmake_4.5.0.bb
index 6265316fd9..9cfd4434f0 100644
--- a/meta/recipes-devtools/cmake/cmake_4.4.5.bb
+++ b/meta/recipes-devtools/cmake/cmake_4.5.0.bb
@@ -15,6 +15,7 @@ LICENSE:append = " AND BSD-1-Clause AND MIT"
 LIC_FILES_CHKSUM:append = " \
     file://Utilities/cmjsoncpp/LICENSE;md5=5d73c165a0f9e86a1342f32d19ec5926 \
     file://Utilities/cmlibrhash/COPYING;md5=a8c2a557a5c53b1c12cddbee98c099af \
+    file://Utilities/cmrapidhash/LICENSE;md5=4ba32c08f2e0fce0078296c3d100fb93 \
 "
 
 # Strip ${prefix} from ${docdir}, set result into docdir_stripped
-- 
2.34.1


      parent reply	other threads:[~2026-11-18  0:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17  6:15 [PATCH] cmake,cmake-native: upgrade 4.4.5 -> 4.5.0 Prasanth R
2026-11-17 10:14 ` [OE-core] " Mathieu Dubois-Briand
2026-11-18  0:24 ` Prasanth R [this message]

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=20261118002405.3564394-1-ragaprasanth@gmail.com \
    --to=ragaprasanth@gmail.com \
    --cc=mathieu.dubois-briand@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.