summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-08 01:54:06 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-08 23:40:33 -0700
commitde3c8d3ff2d0b2ce21b37480e8f5ec49cd76aa97 (patch)
treef99f0e29aca9d8e900ca1dbeada3698042857ac5
parent9fd461a067ece989a7517dee8ba7100c73e8233a (diff)
downloadmeta-openembedded-de3c8d3ff2d0b2ce21b37480e8f5ec49cd76aa97.tar.gz
cli11: Upgrade 2.3.2 -> 2.5.0 to allow CMake 4+ compatibility
- Drop 0001-Do-not-download-the-catch-framework-during-configure.patch The cli11 recipe previously included a patch to disable downloading of the Catch2 test framework during the build, and manually copied the catch.hpp file into the source tree. With the new change, we now declare a dependency on the catch2 recipe, allowing the build system to use the system provided Catch2 headers instead of downloading or copying them. The patch to remove the download logic is no longer needed and has been dropped for a cleaner and more maintainable recipe. Also, If Catch2 is already found, it doesn't enter the block of the download step accordingly to CMakeLists.txt. - The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum. Changelog: https://github.com/CLIUtils/CLI11/blob/v2.5.0/CHANGELOG.md Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch41
-rw-r--r--meta-oe/recipes-support/cli11/cli11_2.3.2.bb25
-rw-r--r--meta-oe/recipes-support/cli11/cli11_2.5.0.bb18
3 files changed, 18 insertions, 66 deletions
diff --git a/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch b/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch
deleted file mode 100644
index 7e6611b6a8..0000000000
--- a/meta-oe/recipes-support/cli11/cli11/0001-Do-not-download-the-catch-framework-during-configure.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From 93557d5c5acf9ebb2c0fa708658e1d36621dd23a Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@fujitsu.com>
3Date: Wed, 7 Sep 2022 10:05:15 +0900
4Subject: [PATCH] Do not download the catch framework during configure.
5
6Upstream-Status: Inappropriate [configuration]
7
8Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
9---
10 tests/CMakeLists.txt | 15 ---------------
11 1 file changed, 15 deletions(-)
12
13diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
14index 80c4f6a..ae210db 100644
15--- a/tests/CMakeLists.txt
16+++ b/tests/CMakeLists.txt
17@@ -74,21 +74,6 @@ if(Catch2_FOUND)
18 endif()
19 message(STATUS "Found Catch2")
20 target_link_libraries(catch_main PUBLIC Catch2::Catch2)
21-else()
22- message(STATUS "Downloading Catch2")
23-
24- # FetchContent would be better, but requires newer CMake.
25- file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/catch2")
26- set(url https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp)
27- file(
28- DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp"
29- STATUS status
30- EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc)
31- list(GET status 0 error)
32- if(error)
33- message(FATAL_ERROR "Could not download ${url}, and Catch2 not found on your system.")
34- endif()
35- target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
36 endif()
37
38 # Target must already exist
39--
402.25.1
41
diff --git a/meta-oe/recipes-support/cli11/cli11_2.3.2.bb b/meta-oe/recipes-support/cli11/cli11_2.3.2.bb
deleted file mode 100644
index 346ccd6c69..0000000000
--- a/meta-oe/recipes-support/cli11/cli11_2.3.2.bb
+++ /dev/null
@@ -1,25 +0,0 @@
1SUMMARY = "C++11 command line parser"
2DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
3HOMEPAGE = "https://github.com/CLIUtils/CLI11"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=afb20fe5f67e21074b10b864d9563c11"
6SRCREV = "291c58789c031208f08f4f261a858b5b7083e8e2"
7PV .= "+git"
8
9SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https \
10 https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp \
11 file://0001-Do-not-download-the-catch-framework-during-configure.patch"
12
13SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc"
14
15do_configure:prepend() {
16 mkdir -p ${S}/tests/catch2
17 cp ${DL_DIR}/catch.hpp ${S}/tests/catch2/catch.hpp
18}
19
20inherit cmake
21
22# cli11 is a header only C++ library, so the main package will be empty.
23RDEPENDS:${PN}-dev = ""
24
25BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-support/cli11/cli11_2.5.0.bb b/meta-oe/recipes-support/cli11/cli11_2.5.0.bb
new file mode 100644
index 0000000000..82203b3019
--- /dev/null
+++ b/meta-oe/recipes-support/cli11/cli11_2.5.0.bb
@@ -0,0 +1,18 @@
1SUMMARY = "C++11 command line parser"
2DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
3HOMEPAGE = "https://github.com/CLIUtils/CLI11"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=b8bdde6bda8508bef68a39f3e0d7e939"
6
7DEPENDS = "catch2"
8
9SRCREV = "4160d259d961cd393fd8d67590a8c7d210207348"
10SRC_URI = "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https"
11SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc"
12
13inherit cmake
14
15# cli11 is a header only C++ library, so the main package will be empty.
16RDEPENDS:${PN}-dev = ""
17
18BBCLASSEXTEND = "native nativesdk"