[openwrt/openwrt] tools/cmake: update to 4.2.0

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 25 08:22:54 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9ba24e0ee9d9232517a536922c13b70b89b55c2b

commit 9ba24e0ee9d9232517a536922c13b70b89b55c2b
Author: Hannu Nyman <hannu.nyman at iki.fi>
AuthorDate: Sat Nov 22 09:29:46 2025 +0200

    tools/cmake: update to 4.2.0
    
    Update cmake to version 4.2.0
    Release notes at https://cmake.org/cmake/help/v4.2/release/4.2.html
    
    Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>
    Link: https://github.com/openwrt/openwrt/pull/20863
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 tools/cmake/Makefile                                       | 4 ++--
 tools/cmake/patches/110-liblzma.patch                      | 2 +-
 tools/cmake/patches/130-bootstrap_parallel_make_flag.patch | 2 +-
 tools/cmake/patches/140-zlib.patch                         | 2 +-
 tools/cmake/patches/150-zstd-libarchive.patch              | 2 +-
 tools/cmake/patches/160-disable_xcode_generator.patch      | 4 ++--
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile
index 797e99c1a0..108f1f9205 100644
--- a/tools/cmake/Makefile
+++ b/tools/cmake/Makefile
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cmake
-PKG_VERSION:=4.1.2
+PKG_VERSION:=4.2.0
 PKG_VERSION_MAJOR:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
 PKG_RELEASE:=1
 PKG_CPE_ID:=cpe:/a:kitware:cmake
@@ -15,7 +15,7 @@ PKG_CPE_ID:=cpe:/a:kitware:cmake
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \
 		https://cmake.org/files/v$(PKG_VERSION_MAJOR)/
-PKG_HASH:=643f04182b7ba323ab31f526f785134fb79cba3188a852206ef0473fee282a15
+PKG_HASH:=4104e94657d247c811cb29985405a360b78130b5d51e7f6daceb2447830bd579
 
 HOST_BUILD_PARALLEL:=1
 HOST_CONFIGURE_PARALLEL:=1
diff --git a/tools/cmake/patches/110-liblzma.patch b/tools/cmake/patches/110-liblzma.patch
index d98d77209e..f528b64bbc 100644
--- a/tools/cmake/patches/110-liblzma.patch
+++ b/tools/cmake/patches/110-liblzma.patch
@@ -1,6 +1,6 @@
 --- a/Modules/FindLibLZMA.cmake
 +++ b/Modules/FindLibLZMA.cmake
-@@ -82,7 +82,13 @@ Finding the liblzma library and linking
+@@ -114,7 +114,13 @@ Finding the liblzma library and linking
  cmake_policy(PUSH)
  cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
  
diff --git a/tools/cmake/patches/130-bootstrap_parallel_make_flag.patch b/tools/cmake/patches/130-bootstrap_parallel_make_flag.patch
index 0411c9f267..d80df5d58e 100644
--- a/tools/cmake/patches/130-bootstrap_parallel_make_flag.patch
+++ b/tools/cmake/patches/130-bootstrap_parallel_make_flag.patch
@@ -1,6 +1,6 @@
 --- a/bootstrap
 +++ b/bootstrap
-@@ -1520,7 +1520,10 @@ int main(){ printf("1%c", (char)0x0a); r
+@@ -1521,7 +1521,10 @@ int main(){ printf("1%c", (char)0x0a); r
  ' > "test.c"
  cmake_original_make_flags="${cmake_make_flags}"
  if test "x${cmake_parallel_make}" != "x"; then
diff --git a/tools/cmake/patches/140-zlib.patch b/tools/cmake/patches/140-zlib.patch
index a4ca6f6a32..df03e1d888 100644
--- a/tools/cmake/patches/140-zlib.patch
+++ b/tools/cmake/patches/140-zlib.patch
@@ -1,6 +1,6 @@
 --- a/Modules/FindZLIB.cmake
 +++ b/Modules/FindZLIB.cmake
-@@ -147,10 +147,13 @@ else()
+@@ -160,10 +160,13 @@ else()
    set(ZLIB_NAMES_DEBUG zd zlibd zdlld zlibd1 zlib1d zlibstaticd zlibwapid zlibvcd zlibstatd)
  endif()
  
diff --git a/tools/cmake/patches/150-zstd-libarchive.patch b/tools/cmake/patches/150-zstd-libarchive.patch
index c5cc9eef97..6b73a3be23 100644
--- a/tools/cmake/patches/150-zstd-libarchive.patch
+++ b/tools/cmake/patches/150-zstd-libarchive.patch
@@ -1,6 +1,6 @@
 --- a/Utilities/cmlibarchive/CMakeLists.txt
 +++ b/Utilities/cmlibarchive/CMakeLists.txt
-@@ -655,7 +655,7 @@ IF(ENABLE_ZSTD)
+@@ -669,7 +669,7 @@ IF(ENABLE_ZSTD)
      SET(ZSTD_FIND_QUIETLY TRUE)
    ENDIF (ZSTD_INCLUDE_DIR)
  
diff --git a/tools/cmake/patches/160-disable_xcode_generator.patch b/tools/cmake/patches/160-disable_xcode_generator.patch
index 42c3003686..d4fc92560e 100644
--- a/tools/cmake/patches/160-disable_xcode_generator.patch
+++ b/tools/cmake/patches/160-disable_xcode_generator.patch
@@ -1,6 +1,6 @@
 --- a/Source/CMakeLists.txt
 +++ b/Source/CMakeLists.txt
-@@ -886,7 +886,7 @@ if(CMake_USE_XCOFF_PARSER)
+@@ -903,7 +903,7 @@ if(CMake_USE_XCOFF_PARSER)
  endif()
  
  # Xcode only works on Apple
@@ -11,7 +11,7 @@
      PRIVATE
 --- a/Source/cmake.cxx
 +++ b/Source/cmake.cxx
-@@ -138,7 +138,7 @@
+@@ -143,7 +143,7 @@
  #  endif
  #endif
  




More information about the lede-commits mailing list