Skip to contentSkip to conversation

librdkafka: Upgrade 1.8.2 -> 2.11.0 to allow CMake 4+ compatibility

PATCH Superseded Alper Ak 2 participants 25 messages Jul 9, 2025 – Jul 10, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Alper Ak

author
#0 lore raw

PATCH 1/20 librdkafka: Upgrade 1.8.2 -> 2.11.0 to allow CMake 4+ compatibility

- Dropped patch because fixed in the newer version.
- The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum.
- curl is needed as a dependency, so add it to prevent build error.

Changelog:

https://github.com/confluentinc/librdkafka/blob/v2.11.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!
---
 .../0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch | 30 -------------------
 ...brdkafka_1.8.2.bb => librdkafka_2.11.0.bb} | 11 +++----
 2 files changed, 4 insertions(+), 37 deletions(-)
 delete mode 100644 meta-oe/recipes-support/librdkafka/librdkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch
 rename meta-oe/recipes-support/librdkafka/{librdkafka_1.8.2.bb => librdkafka_2.11.0.bb} (66%)
meta-oe/recipes-support/librdkafka/librdkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch deleted +0 -30
deleted file mode 100644
index 053a4cc2d8..0000000000
@@ -1,30 +0,0 @@
-From ed1dd35e0e23a98e57567718a0d474fd29cc348a Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 19 Mar 2022 21:36:41 -0700
-Subject: [PATCH] cmake: Use CMAKE_INSTALL_LIBDIR
-
-this ensures that it is portable across platforms e.g. ppc64/linux
-uses lib64 not lib
-
-Upstream-Status: Submitted [https://github.com/edenhill/librdkafka/pull/3770]
-Signed-off-by: Khem Raj <[email protected]>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d1129bce..774473fa 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -219,7 +219,7 @@ configure_file("packaging/cmake/config.h.in" "${GENERATED_DIR}/config.h")
- 
- include(GNUInstallDirs)
- 
--set(config_install_dir "lib/cmake/${PROJECT_NAME}")
-+set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
- 
- set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
- 
--- 
-2.35.1
-
meta-oe/recipes-support/librdkafka/librdkafka_2.11.0.bb renamed from meta-oe/recipes-support/librdkafka/librdkafka_1.8.2.bb +4 -7
similarity index 66%
rename from meta-oe/recipes-support/librdkafka/librdkafka_1.8.2.bb
rename to meta-oe/recipes-support/librdkafka/librdkafka_2.11.0.bb
index 968094daff..b1f5196f93 100644
@@ -5,18 +5,15 @@ HOMEPAGE = "https://github.com/edenhill/librdkafka"
 SECTION = "libs"
 LICENSE = "BSD-2-Clause"
 
-LIC_FILES_CHKSUM = "file://LICENSE;md5=2be8675acbfdac48935e73897af5f646"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=40b04809b5d6f648f20f45143cbcb1ad"
 
-SRC_URI = "git://github.com/edenhill/librdkafka;protocol=https;branch=master \
-           file://0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch \
-          "
-SRCREV = "063a9ae7a65cebdf1cc128da9815c05f91a2a996"
+SRC_URI = "git://github.com/edenhill/librdkafka;protocol=https;branch=master"
+SRCREV = "c56a3e68483ae33622901988ab9c4085f0785c3c"
 
-DEPENDS = "zlib openssl zstd"
+DEPENDS = "zlib openssl zstd curl"
 
 inherit cmake
 
-
 FILES:${PN} += "${datadir}"
 
 EXTRA_OECMAKE += "-DRDKAFKA_BUILD_EXAMPLES=OFF -DRDKAFKA_BUILD_TESTS=OFF"
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 2/20 msgpack-c: Upgrade 6.0.0 -> 6.1.0 to allow CMake 4+ compatibility

Changelog:

https://github.com/msgpack/msgpack-c/blob/c-6.1.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!
---
 .../msgpack/{msgpack-c_6.0.0.bb => msgpack-c_6.1.0.bb}    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
 rename meta-oe/recipes-devtools/msgpack/{msgpack-c_6.0.0.bb => msgpack-c_6.1.0.bb} (82%)
meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_6.0.0.bb +3 -5
similarity index 82%
rename from meta-oe/recipes-devtools/msgpack/msgpack-c_6.0.0.bb
rename to meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb
index aa7629763c..b7f3625c2a 100644
@@ -7,13 +7,11 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
                     file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c \
                    "
 
-SRC_URI = "git://github.com/msgpack/msgpack-c;branch=c_master;protocol=https \
-           "
-SRCREV = "8160ede5e20fd3019a77eea46d9c72cf6163f802"
-
+SRC_URI = "git://github.com/msgpack/msgpack-c;branch=c_master;protocol=https"
+SRCREV = "445880108a1d171f755ff6ac77e03fbebbb23729"
 
 inherit cmake pkgconfig
 
-EXTRA_OECMAKE += "-DMSGPACK_BUILD_TESTS=off" 
+EXTRA_OECMAKE += "-DMSGPACK_BUILD_TESTS=off"
 
 BBCLASSEXTEND += "native nativesdk"
Signature · 1 line
2.43.0
author
#2 lore raw

PATCH 3/20 ade: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:7 (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!
---
 .../ade/0001-allow-build-with-cmake-4.patch   | 43 +++++++++++++++++++
 meta-oe/recipes-support/opencv/ade_0.1.2.bb   |  4 +-
 2 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch new file +43 -0
new file mode 100644
index 0000000000..6deabea160
@@ -0,0 +1,43 @@
+From 342406450ebd9fbc68a3c3022b2c91c6e0c3de03 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 11:00:41 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:7 (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!
+
+Upstream-Status: Backport [https://github.com/opencv/ade/commit/8b24d5f1286d178fd0d3a22d584e1a798f5e9a6c]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index af78061..45dfb09 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: Apache-2.0
+ #
+ 
+-cmake_minimum_required(VERSION 3.2)
++cmake_minimum_required(VERSION 3.5)
+ 
+ project(ade)
+ 
+-- 
+2.43.0
+
meta-oe/recipes-support/opencv/ade_0.1.2.bb +2 -2
index b54c28d624..6a0559a577 100644
@@ -4,7 +4,8 @@ and processing framework. ADE Framework is suitable for \
 organizing data flow processing and execution."
 HOMEPAGE = "https://github.com/opencv/ade"
 
-SRC_URI = "git://github.com/opencv/ade.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/opencv/ade.git;branch=master;protocol=https \
+        file://0001-allow-build-with-cmake-4.patch"
 
 SRCREV = "1e02d7486bdb9c87993d91b9910e7cc6c4ddbf66"
 
@@ -13,7 +14,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 inherit cmake
 
-
 EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release"
 
 FILES:${PN}-dev += "${datadir}/${BPN}/*.cmake"
Signature · 1 line
2.43.0
#3 lore raw

Re: [oe] [meta-openembedded][PATCH 03/20] ade: Add patch for CMake 4+ compatibility

meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch line 22

Quoted 4 lines · Alper Ak via lists.openembedded.org
meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch new file +3 -0
+
+Upstream-Status: Backport [https://github.com/opencv/ade/commit/8b24d5f1286d178fd0d3a22d584e1a798f5e9a6c]
+

There are multiple new tags that contain this commit (v0.1.2c ... v0.1.2e), unless we need this specific old tag, I think a tag bump would be better over having a patch.

author
#4 lore raw

Re: [oe] [meta-openembedded][PATCH 03/20] ade: Add patch for CMake 4+ compatibility

Sent a v2 patch ->
https://lists.openembedded.org/g/openembedded-devel/message/118421

Gyorgy Sarvari <[email protected]>, 9 Tem 2025 Çar, 21:44 tarihinde şunu yazdı:

Quoted 9 lines · Alper Ak via lists.openembedded.org

meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch line 22

Quoted 4 lines
meta-oe/recipes-support/opencv/ade/0001-allow-build-with-cmake-4.patch new file +3 -0
+
+Upstream-Status: Backport [https://github.com/opencv/ade/commit/8b24d5f1286d178fd0d3a22d584e1a798f5e9a6c]
+

There are multiple new tags that contain this commit (v0.1.2c ... v0.1.2e), unless we need this specific old tag, I think a tag bump would be better over having a patch.

author
#5 lore raw

PATCH 4/20 mraa: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../mraa/0003-allow-build-with-cmake-4.patch  | 40 +++++++++++++++++++
 meta-oe/recipes-extended/mraa/mraa_git.bb     |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-extended/mraa/mraa/0003-allow-build-with-cmake-4.patch
meta-oe/recipes-extended/mraa/mraa/0003-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..4b9699ac46
@@ -0,0 +1,40 @@
+From daa2cd10b3858f3908a0a29ad69430bfd94c13f0 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 11:09:26 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1141]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 370b891..0814e5c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 2.8.11)
++cmake_minimum_required (VERSION 3.5)
+ project (mraa C)
+ 
+ FIND_PACKAGE (Threads REQUIRED)
+-- 
+2.43.0
+
meta-oe/recipes-extended/mraa/mraa_git.bb +1 -0
index b53be9803e..f9b4122439 100644
@@ -12,6 +12,7 @@ SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=https;branch=master \
            file://0001-cmake-Use-a-regular-expression-to-match-x86-architec.patch \
            file://0001-mraa-Use-posix-basename.patch \
            file://0002-gpio-Include-limits.h-for-PATH_MAX.patch \
+           file://0003-allow-build-with-cmake-4.patch \
            "
 
 
Signature · 1 line
2.43.0
author
#6 lore raw

PATCH 5/20 libcbor: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0001-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../libcbor/libcbor_0.12.0.bb                 |  5 ++-
 2 files changed, 43 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..1edca539ba
@@ -0,0 +1,40 @@
+From 4b34fd7b4d674eeba5e9572df1d88bafa1d100e3 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 11:29:39 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Backport [https://github.com/PJK/libcbor/commit/1183292d4695300785b272532c1e02d68840e4b8]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 815675e..a9f9bd5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ 
+ project(libcbor)
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
+-- 
+2.43.0
+
meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb +3 -2
index 60c3c6fadd..fa48d23bde 100755
@@ -4,9 +4,10 @@ DESCRIPTION = "C library for parsing and generating CBOR, the general-purpose sc
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f3b3881df62ca763a02d359a6e94071"
 
-SRC_URI = "git://github.com/PJK/libcbor.git;protocol=https;branch=master"
-SRCREV = "ae000f44e8d2a69e1f72a738f7c0b6b4b7cc4fbf"
+SRC_URI = "git://github.com/PJK/libcbor.git;protocol=https;branch=master \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "ae000f44e8d2a69e1f72a738f7c0b6b4b7cc4fbf"
 
 inherit cmake
 
Signature · 1 line
2.43.0
author
#7 lore raw

PATCH 6/20 p8platform: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:3 (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!
---
 .../0001-allow-build-with-cmake-4.patch       | 42 +++++++++++++++++++
 .../p8platform/p8platform_git.bb              |  5 ++-
 2 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-extended/p8platform/p8platform/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-extended/p8platform/p8platform/0001-allow-build-with-cmake-4.patch new file +42 -0
new file mode 100644
index 0000000000..cb49cf3624
@@ -0,0 +1,42 @@
+From 0cfe5772f35d067cb10daf3c66b7fe5f3901f260 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 11:47:58 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:3 (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!
+
+Upstream-Status: Backport [https://github.com/Pulse-Eight/platform/commit/d7faed1c696b1a6a67f114a63a0f4c085f0f9195]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f5b2ff8..b7cf077 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ project(p8-platform)
+ 
+-cmake_minimum_required(VERSION 2.8.9)
++cmake_minimum_required(VERSION 3.5)
+ enable_language(CXX)
+ 
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
+-- 
+2.43.0
+
meta-oe/recipes-extended/p8platform/p8platform_git.bb +3 -2
index e69d544b66..e7af1c7298 100644
@@ -6,9 +6,10 @@ LIC_FILES_CHKSUM = "file://src/os.h;md5=752555fa94e82005d45fd201fee5bd33"
 
 PV = "2.1.0.1+git"
 
-SRC_URI = "git://github.com/Pulse-Eight/platform.git;branch=master;protocol=https"
-SRCREV = "a7cd0d5780ed80a4e70480d1650749f29e8a1fb2"
+SRC_URI = "git://github.com/Pulse-Eight/platform.git;branch=master;protocol=https \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "a7cd0d5780ed80a4e70480d1650749f29e8a1fb2"
 
 inherit cmake pkgconfig
 
Signature · 1 line
2.43.0
#8 lore raw

Re: [oe] [meta-openembedded][PATCH 06/20] p8platform: Add patch for CMake 4+ compatibility

Quoted 4 lines · Alper Ak via lists.openembedded.org
meta-oe/recipes-extended/p8platform/p8platform_git.bb +0 -0
@@ -6,9 +6,10 @@ LIC_FILES_CHKSUM = "file://src/os.h;md5=752555fa94e82005d45fd201fee5bd33"
 

meta-oe/recipes-extended/p8platform/p8platform_git.bb LIC_FILES_CHKSUM = "file://src/os.h;md5=752555fa94e82005d45fd201fee5bd33" · line 14

Quoted 10 lines
meta-oe/recipes-extended/p8platform/p8platform_git.bb +3 -2
 PV = "2.1.0.1+git"
 
-SRC_URI = "git://github.com/Pulse-Eight/platform.git;branch=master;protocol=https"
-SRCREV = "a7cd0d5780ed80a4e70480d1650749f29e8a1fb2"
+SRC_URI = "git://github.com/Pulse-Eight/platform.git;branch=master;protocol=https \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "a7cd0d5780ed80a4e70480d1650749f29e8a1fb2"
 
 

This is also 5 years old revision - but this project seems to be fairly slowly moving nowadays. There weren't too many commits since - maybe it could be just bumped to the latest revision instead of a patch?

author
#9 lore raw

PATCH 7/20 libsimplelog: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error in CMakeLists.txt:
|   No cmake_minimum_required command is present.  A line of code such as
|
|     cmake_minimum_required(VERSION 4.0)
|
|   should be added at the top of the file.  The version specified may be lower
|   if you wish to support older CMake versions for this project.  For more
|   information run "cmake --help-policy CMP0000".
|
|
| -- Configuring incomplete, errors occurred!
---
 .../0001-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../libsimplelog/libsimplelog_1.0.8.bb        |  4 +-
 2 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..17adf92bb0
@@ -0,0 +1,40 @@
+From 77be1b3e7d6ff4261114424278413a679672bb92 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 12:10:37 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error in CMakeLists.txt:
+|   No cmake_minimum_required command is present.  A line of code such as
+|
+|     cmake_minimum_required(VERSION 4.0)
+|
+|   should be added at the top of the file.  The version specified may be lower
+|   if you wish to support older CMake versions for this project.  For more
+|   information run "cmake --help-policy CMP0000".
+|
+|
+| -- Configuring incomplete, errors occurred!
+
+Upstream-Status: Submitted [https://github.com/thuanalg/simplelog-topic/pull/1]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index dca80f1..0fc6db0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,3 +1,5 @@
++cmake_minimum_required(VERSION 3.5)
++
+ # Add main.cpp file of the project root directory as a source file
+ project(simplelog_topic_project)
+ set(SOURCE_LIB_FILES src/simplelog.c )
+-- 
+2.43.0
+
meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb +2 -2
index 31dce12155..41b9d47686 100644
@@ -5,11 +5,11 @@ HOMEPAGE = "https://github.com/thuanalg/simplelog-topic"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c"
 
-SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV} \
+        file://0001-allow-build-with-cmake-4.patch"
 
 SRCREV = "093d80b4006042b75a433a5e63760ae9bebad142"
 
-
 inherit cmake
 
 # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
Signature · 1 line
2.43.0
author
#10 lore raw

PATCH 8/20 snort3: Upgrade 3.7.1.0 -> 3.9.1.0 to allow CMake 4+ compatibility

In reply to Alper Ak

- Drop 0001-Fix-build-with-gcc-15.patch because fixed in the newer version.

Changelog:

https://github.com/snort3/snort3/blob/3.9.1.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!
---
 .../snort3/0001-Fix-build-with-gcc-15.patch   | 79 -------------------
 .../{snort3_3.7.1.0.bb => snort3_3.9.1.0.bb}  |  6 +-
 2 files changed, 2 insertions(+), 83 deletions(-)
 delete mode 100644 meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch
 rename meta-networking/recipes-connectivity/snort/{snort3_3.7.1.0.bb => snort3_3.9.1.0.bb} (87%)
meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch deleted +0 -79
deleted file mode 100644
index f9cade5256..0000000000
@@ -1,79 +0,0 @@
-From 2bfb46b11d35f2fc5f3926376651cc936c6eab13 Mon Sep 17 00:00:00 2001
-From: Nguyen Dat Tho <[email protected]>
-Date: Mon, 31 Mar 2025 15:59:51 +0900
-Subject: [PATCH] Fix build with gcc-15
-
-Signed-off-by: Nguyen Dat Tho <[email protected]>
-
-Upstream-Status: Submitted <https://github.com/snort3/snort3/pull/408>
----
- tools/snort2lua/config_states/config_ignore_ports.cc     | 1 +
- tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc | 1 +
- tools/snort2lua/preprocessor_states/pps_frag3_engine.cc  | 1 +
- tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc   | 1 +
- tools/snort2lua/rule_states/rule_gid_sid.cc              | 1 +
- 5 files changed, 5 insertions(+)
-
-diff --git a/tools/snort2lua/config_states/config_ignore_ports.cc b/tools/snort2lua/config_states/config_ignore_ports.cc
-index 4ddfebb5d..ec180a558 100644
---- a/tools/snort2lua/config_states/config_ignore_ports.cc
-+++ b/tools/snort2lua/config_states/config_ignore_ports.cc
-@@ -21,6 +21,7 @@
- #include <vector>
- #include <string>
- #include <stdexcept>
-+#include <cstdint>
- 
- #include "conversion_state.h"
- #include "helpers/converter.h"
-diff --git a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
-index 2a41decb8..79e98dd2b 100644
---- a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
-+++ b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
-@@ -25,6 +25,7 @@
- 
- #include <algorithm>
- #include <cstring>
-+#include <cstdint>
- 
- namespace preprocessors
- {
-diff --git a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
-index d5c1fcf4d..c0309cc6f 100644
---- a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
-+++ b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
-@@ -19,6 +19,7 @@
- 
- #include <sstream>
- #include <vector>
-+#include <cstdint>
- 
- #include "conversion_state.h"
- #include "helpers/converter.h"
-diff --git a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
-index 1e97a58ad..3df35340e 100644
---- a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
-+++ b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
-@@ -20,6 +20,7 @@
- #include <sstream>
- #include <vector>
- #include <string>
-+#include <cstdint>
- 
- #include "conversion_state.h"
- #include "helpers/s2l_util.h"
-diff --git a/tools/snort2lua/rule_states/rule_gid_sid.cc b/tools/snort2lua/rule_states/rule_gid_sid.cc
-index 7f2b84ae4..d3215b655 100644
---- a/tools/snort2lua/rule_states/rule_gid_sid.cc
-+++ b/tools/snort2lua/rule_states/rule_gid_sid.cc
-@@ -27,6 +27,7 @@
- 
- #include <sstream>
- #include <unordered_map>
-+#include <cstdint>
- 
- #include "conversion_state.h"
- #include "helpers/converter.h"
--- 
-2.34.1
-
meta-networking/recipes-connectivity/snort/snort3_3.9.1.0.bb renamed from meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb +2 -4
similarity index 87%
rename from meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb
rename to meta-networking/recipes-connectivity/snort/snort3_3.9.1.0.bb
index e9169a050f..598b1f4dfb 100644
@@ -9,11 +9,9 @@ DEPENDS = "flex-native hwloc libdaq libdnet libpcap libpcre libtirpc libunwind l
 
 SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \
            file://0001-cmake-Check-for-HP-libunwind.patch \
-           file://0001-cmake-Pass-noline-flag-to-flex.patch \
-           file://0001-Fix-build-with-gcc-15.patch"
-
-SRCREV = "6a11279883a8584e06ad9ab2df162c639961cd61"
+           file://0001-cmake-Pass-noline-flag-to-flex.patch"
 
+SRCREV = "6730d53f99f3714654804d07203f33e6b1b8a107"
 
 PACKAGES =+ "${PN}-scripts"
 
Signature · 1 line
2.43.0
author
#11 lore raw

PATCH 9/20 libuvc: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0001-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../recipes-multimedia/libuvc/libuvc_0.0.7.bb |  5 ++-
 2 files changed, 43 insertions(+), 2 deletions(-)
 create mode 100644 meta-multimedia/recipes-multimedia/libuvc/libuvc/0001-allow-build-with-cmake-4.patch
meta-multimedia/recipes-multimedia/libuvc/libuvc/0001-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..bc91f3bf92
@@ -0,0 +1,40 @@
+From 347567b4a01079faa1e5d3796f185241efee6e4c Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 12:49:18 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/libuvc/libuvc/pull/294]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fbaffc9..54e7431 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ project(libuvc
+   VERSION 0.0.7
+   LANGUAGES C
+-- 
+2.43.0
+
meta-multimedia/recipes-multimedia/libuvc/libuvc_0.0.7.bb +3 -2
index 10e64e9878..9a3f718e16 100644
@@ -6,8 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2f1963e0bb88c93463af750daf9ba0c2"
 
 DEPENDS = "libusb jpeg"
 
-SRC_URI = "git://github.com/libuvc/libuvc.git;branch=master;protocol=https"
-SRCREV = "68d07a00e11d1944e27b7295ee69673239c00b4b"
+SRC_URI = "git://github.com/libuvc/libuvc.git;branch=master;protocol=https \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "68d07a00e11d1944e27b7295ee69673239c00b4b"
 
 inherit cmake pkgconfig
Signature · 1 line
2.43.0
author
#12 lore raw

PATCH 10/20 flatcc: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:2 (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!
---
 .../0002-allow-build-with-cmake-4.patch       | 52 +++++++++++++++++++
 meta-oe/recipes-devtools/flatcc/flatcc_git.bb |  2 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/flatcc/flatcc/0002-allow-build-with-cmake-4.patch
meta-oe/recipes-devtools/flatcc/flatcc/0002-allow-build-with-cmake-4.patch new file +52 -0
new file mode 100644
index 0000000000..b0b0cedbfb
@@ -0,0 +1,52 @@
+From 4a53680194dac08b8f0247a7f3459c95ce0fddbb Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 13:03:33 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:2 (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!
+
+Upstream-Status: Submitted [https://github.com/dvidelabs/flatcc/pull/349]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt               | 2 +-
+ external/hash/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cb6715a..b69b0bb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ # Ubuntu 14.04 (Trusty)
+-cmake_minimum_required (VERSION 2.8.12.2)
++cmake_minimum_required (VERSION 3.5)
+ # Centos 7
+ #cmake_minimum_required (VERSION 2.8.11)
+ #cmake_minimum_required (VERSION 2.8)
+diff --git a/external/hash/CMakeLists.txt b/external/hash/CMakeLists.txt
+index 7b7d990..12eb3da 100644
+--- a/external/hash/CMakeLists.txt
++++ b/external/hash/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 3.0.2)
++cmake_minimum_required (VERSION 3.5)
+ 
+ project (HashTest)
+ 
+-- 
+2.43.0
+
meta-oe/recipes-devtools/flatcc/flatcc_git.bb +1 -1
index 2565e3b9bd..a4bdda162d 100644
@@ -11,10 +11,10 @@ PV = "0.6.2+git"
 SRC_URI = " \
            git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master \
            file://0001-Check-for-C-standard-version-23-for-__fallthrough__.patch \
+           file://0002-allow-build-with-cmake-4.patch \
 "
 SRCREV = "1653ec964730ec7d9892a08a1695ada6d20f5196"
 
-
 inherit cmake
 
 # Enable installation for target
Signature · 1 line
2.43.0
author
#13 lore raw

PATCH 11/20 nanomsg: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:27 (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!
---
 .../0001-allow-build-with-cmake-4.patch       | 57 +++++++++++++++++++
 .../nanomsg/nanomsg_1.2.1.bb                  |  4 +-
 2 files changed, 60 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-connectivity/nanomsg/nanomsg/0001-allow-build-with-cmake-4.patch
meta-networking/recipes-connectivity/nanomsg/nanomsg/0001-allow-build-with-cmake-4.patch new file +57 -0
new file mode 100644
index 0000000000..f61966134d
@@ -0,0 +1,57 @@
+From 2e293eb9d3753ef87a5e05bc6ac270add0ad8fa8 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 13:25:54 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:27 (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!
+
+Upstream-Status: Submitted [https://github.com/nanomsg/nanomsg/pull/1123]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt      | 2 +-
+ demo/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a9ae6a24..2e93724d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -24,7 +24,7 @@
+ #   IN THE SOFTWARE.
+ #
+ 
+-cmake_minimum_required (VERSION 2.8.12)
++cmake_minimum_required (VERSION 3.5)
+ 
+ project (nanomsg C)
+ include (CheckFunctionExists)
+diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
+index 4807f160..5ea96c4a 100644
+--- a/demo/CMakeLists.txt
++++ b/demo/CMakeLists.txt
+@@ -6,7 +6,7 @@
+ #
+ # Thanks for the idea goes to @maddouri.
+ #
+-cmake_minimum_required (VERSION 2.8.7)
++cmake_minimum_required (VERSION 3.5)
+ 
+ project(nanomsg-demo)
+ 
+-- 
+2.43.0
+
meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb +3 -1
index 8dce6c5c4a..3aaf056adf 100644
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755"
 
 SECTION = "libs/networking"
 
-SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master"
+SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master \
+        file://0001-allow-build-with-cmake-4.patch"
+
 SRCREV = "fc3f684a80151a3319446fc96083a9ff384ee4fe"
 
 
Signature · 1 line
2.43.0
author
#14 lore raw

PATCH 12/20 cppgenerate: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:6 (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!
---
 .../0001-allow-build-with-cmake-4.patch       | 43 +++++++++++++++++++
 .../cppgenerate/cppgenerate_0.3.bb            |  5 ++-
 2 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/cppgenerate/cppgenerate/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-devtools/cppgenerate/cppgenerate/0001-allow-build-with-cmake-4.patch new file +43 -0
new file mode 100644
index 0000000000..419a9c0b5d
@@ -0,0 +1,43 @@
+From c7df183e6c34171fc4ce316c049ce69e87ae38a1 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 13:39:08 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:6 (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!
+
+Upstream-Status: Submitted [https://github.com/rm5248/libcppgenerate/pull/11]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bec9d86..00b4abf 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,7 +3,7 @@
+ #
+ # Copyright 2018 Robert Middleton [email protected]
+ #
+-cmake_minimum_required( VERSION 3.1 )
++cmake_minimum_required( VERSION 3.5 )
+ 
+ project( libcppgenerate VERSION 0.3)
+ 
+-- 
+2.43.0
+
meta-oe/recipes-devtools/cppgenerate/cppgenerate_0.3.bb +3 -2
index 6e709b6e7e..edb5538425 100644
@@ -4,9 +4,10 @@ SECTION = "libs"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
 
-SRC_URI = "git://github.com/rm5248/libcppgenerate.git;branch=master;protocol=https"
-SRCREV = "930c5503f76c877b72b9ff8546353d6f422bd010"
+SRC_URI = "git://github.com/rm5248/libcppgenerate.git;branch=master;protocol=https \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "930c5503f76c877b72b9ff8546353d6f422bd010"
 
 inherit cmake
 
Signature · 1 line
2.43.0
author
#15 lore raw

PATCH 13/20 read-edid: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0002-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../read-edid/read-edid_3.0.2.bb              |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-support/read-edid/read-edid/0002-allow-build-with-cmake-4.patch
meta-oe/recipes-support/read-edid/read-edid/0002-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..b1a1352945
@@ -0,0 +1,40 @@
+From affb4ef9dda539222eaad0784577254be1e17195 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 14:02:08 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Pending
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2b9bc86..98c90aa 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 2.6)
++cmake_minimum_required (VERSION 3.5)
+ project (read-edid)
+ 
+ option(I2CBUILD "Build I2C get-edid implementation" ON)
+-- 
+2.43.0
+
meta-oe/recipes-support/read-edid/read-edid_3.0.2.bb +1 -0
index 5ea0fb852a..86ea350d1d 100644
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=292c42e2aedc4af636636bf7af0e2b26"
 SRC_URI = "http://polypux.org/projects/read-edid/read-edid-${PV}.tar.gz \
            file://0001-Do-not-install-license-file.patch \
            file://0001-get-edid-define-quiet-once.patch \
+           file://0002-allow-build-with-cmake-4.patch \
 	   "
 SRC_URI[sha256sum] = "c7c6d8440f5b90f98e276829271ccea5b2ff5a3413df8a0f87ec09f834af186f"
 
Signature · 1 line
2.43.0
#16 lore raw

Re: [oe] [meta-openembedded][PATCH 13/20] read-edid: Add patch for CMake 4+ compatibility

meta-oe/recipes-support/read-edid/read-edid/0002-allow-build-with-cmake-4.patch line 22

Quoted 5 lines · Alper Ak via lists.openembedded.org

+| -- Configuring incomplete, errors occurred!

meta-oe/recipes-support/read-edid/read-edid/0002-allow-build-with-cmake-4.patch new file +3 -0
+
+Upstream-Status: Pending
+

It looks that the developer accept contributions via email, according to the homepage of the project: http://www.polypux.org/projects/read-edid/
- maybe you could send him also the same patch for the application?

author
#17 lore raw

PATCH 14/20 ettercap: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0002-allow-build-with-cmake-4.patch       | 54 +++++++++++++++++++
 .../ettercap/ettercap_0.8.3.1.bb              |  4 +-
 2 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 meta-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch
meta-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch new file +54 -0
new file mode 100644
index 0000000000..70e48f7d9e
@@ -0,0 +1,54 @@
+From 337e790d4fc8fed00a4f62047de1bc702f06105e Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 14:15:32 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/Ettercap/ettercap/pull/1279]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt               | 2 +-
+ cmake/Modules/FindGTK3.cmake | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1c08875a..600bd9f4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 3.5)
+ project(ettercap C)
+ 
+ set(VERSION "0.8.3.1")
+diff --git a/cmake/Modules/FindGTK3.cmake b/cmake/Modules/FindGTK3.cmake
+index e07a4e90..f37fee1c 100644
+--- a/cmake/Modules/FindGTK3.cmake
++++ b/cmake/Modules/FindGTK3.cmake
+@@ -351,7 +351,7 @@ endif()
+ #
+ if(GTK3_FIND_VERSION)
+   if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
+-    cmake_minimum_required(VERSION 2.6.2)
++    cmake_minimum_required(VERSION 3.5)
+   endif()
+   set(GTK3_FAILED_VERSION_CHECK true)
+   if(GTK3_DEBUG)
+-- 
+2.43.0
+
meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb +2 -2
index d5dc10a889..027b6dd190 100644
@@ -21,11 +21,11 @@ DEPENDS += "ethtool \
 RDEPENDS:${PN} += "bash ethtool libgcc"
 
 SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \
-           file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch"
+           file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch \
+           file://0002-allow-build-with-cmake-4.patch"
 
 SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31"
 
-
 EXTRA_OECMAKE = " \
     -DCMAKE_SKIP_RPATH=TRUE \
     -DBUNDLED_LIBS=ON \
Signature · 1 line
2.43.0
author
#18 lore raw

PATCH 15/20 dlt-daemon: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:17 (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!
---
 .../0003-allow-build-with-cmake-4.patch       | 99 +++++++++++++++++++
 .../dlt-daemon/dlt-daemon_2.18.10.bb          |  1 +
 2 files changed, 100 insertions(+)
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch
meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch new file +99 -0
new file mode 100644
index 0000000000..ac5fec5684
@@ -0,0 +1,99 @@
+From ae23f2cccc169874d89903cad24bf36e19bef659 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 18:18:33 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:17 (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!
+
+Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/755]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt                   | 2 +-
+ examples/example1/CMakeLists.txt | 2 +-
+ examples/example2/CMakeLists.txt | 2 +-
+ examples/example3/CMakeLists.txt | 2 +-
+ examples/example4/CMakeLists.txt | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 94185b8..2a0f619 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,7 @@
+ #######
+ 
+ # Set minimum Cmake version and setup policy behavior
+-cmake_minimum_required(VERSION 3.3)
++cmake_minimum_required(VERSION 3.5)
+ 
+ if(${CMAKE_VERSION} VERSION_GREATER "3.20" OR ${CMAKE_VERSION} VERSION_EQUAL "3.20")
+     cmake_policy(SET CMP0115 OLD)
+diff --git a/examples/example1/CMakeLists.txt b/examples/example1/CMakeLists.txt
+index 60644a1..44cd053 100644
+--- a/examples/example1/CMakeLists.txt
++++ b/examples/example1/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # DLT example implementation
+ #
+ 
+-cmake_minimum_required( VERSION 2.6 )
++cmake_minimum_required( VERSION 3.5 )
+ project( automotive-dlt-example1 )
+ 
+ #
+diff --git a/examples/example2/CMakeLists.txt b/examples/example2/CMakeLists.txt
+index 66a4f24..a8efbcf 100644
+--- a/examples/example2/CMakeLists.txt
++++ b/examples/example2/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # DLT example implementation
+ #
+ 
+-cmake_minimum_required( VERSION 2.6 )
++cmake_minimum_required( VERSION 3.5 )
+ project( automotive-dlt-example2 )
+ 
+ #
+diff --git a/examples/example3/CMakeLists.txt b/examples/example3/CMakeLists.txt
+index 45b7467..4d4958d 100644
+--- a/examples/example3/CMakeLists.txt
++++ b/examples/example3/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # DLT example implementation
+ #
+ 
+-cmake_minimum_required( VERSION 2.6 )
++cmake_minimum_required( VERSION 3.5 )
+ project( automotive-dlt-example3 )
+ 
+ #
+diff --git a/examples/example4/CMakeLists.txt b/examples/example4/CMakeLists.txt
+index 53a4fad..161c333 100644
+--- a/examples/example4/CMakeLists.txt
++++ b/examples/example4/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ # DLT example implementation
+ #
+ 
+-cmake_minimum_required( VERSION 2.6 )
++cmake_minimum_required( VERSION 3.5 )
+ project( automotive-dlt-example4 )
+ 
+ #
+-- 
+2.43.0
+
meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb +1 -0
index 8b48d20aac..82edde6c9d 100644
@@ -20,6 +20,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
            file://544.patch \
            file://567.patch \
            file://0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch \
+           file://0003-allow-build-with-cmake-4.patch \
            "
 SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f"
 
Signature · 1 line
2.43.0
author
#19 lore raw

PATCH 16/20 cpputest: Add patch for CMake 4+ compatibility

In reply to Alper Ak

Fix:

| CMake Error at CMakeLists.txt:8 (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!
---
 .../0001-allow-build-with-cmake-4.patch       | 43 +++++++++++++++++++
 meta-oe/recipes-test/cpputest/cpputest_4.0.bb |  5 ++-
 2 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-test/cpputest/cpputest/0001-allow-build-with-cmake-4.patch
meta-oe/recipes-test/cpputest/cpputest/0001-allow-build-with-cmake-4.patch new file +43 -0
new file mode 100644
index 0000000000..cb12fe5f63
@@ -0,0 +1,43 @@
+From 2f264a05a1b0be02a8889427ff1e917f851097ea Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 18:50:25 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fix:
+
+| CMake Error at CMakeLists.txt:8 (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!
+
+Upstream-Status: Backport [https://github.com/cpputest/cpputest/commit/fbb8526750aa370e642da7c21a98d6efdf7a3f37]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 88e0cfb5..1fa3f27e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@ set(CppUTest_version_minor 0)
+ 
+ # 2.6.3 is needed for ctest support
+ # 3.1 is needed for target_sources
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ 
+ ###############
+ # Conan support
+-- 
+2.43.0
+
meta-oe/recipes-test/cpputest/cpputest_4.0.bb +3 -2
index 5710585b6c..bdc954c1e9 100644
@@ -5,9 +5,10 @@ SECTION = "devel"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=ce5d5f1fe02bcd1343ced64a06fd4177"
 
-SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https;branch=master"
-SRCREV = "67d2dfd41e13f09ff218aa08e2d35f1c32f032a1"
+SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https;branch=master \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "67d2dfd41e13f09ff218aa08e2d35f1c32f032a1"
 
 inherit cmake
 
Signature · 1 line
2.43.0
#20 lore raw

Re: [oe] [meta-openembedded][PATCH 16/20] cpputest: Add patch for CMake 4+ compatibility

meta-oe/recipes-test/cpputest/cpputest_4.0.bb SECTION = "devel" · line 12

Quoted 13 lines · Alper Ak via lists.openembedded.org
meta-oe/recipes-test/cpputest/cpputest_4.0.bb +3 -2
@@ -5,9 +5,10 @@ SECTION = "devel"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=ce5d5f1fe02bcd1343ced64a06fd4177"
 
-SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https;branch=master"
-SRCREV = "67d2dfd41e13f09ff218aa08e2d35f1c32f032a1"
+SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https;branch=master \
+        file://0001-allow-build-with-cmake-4.patch"
 
+SRCREV = "67d2dfd41e13f09ff218aa08e2d35f1c32f032a1"
 

Apparently this, 4.0 is the last tagged release of this application - which is now over 5 years old. However it seems to be actively developed ever since. Would it worth trying to switch to the latest git revision (which has the cmake fix also), instead of patching? The developer claims in https://github.com/cpputest/cpputest/issues/1651 that is the revision survives their CI build, than it is considered "pretty stable", just like the latest tag.

(If you are busy, that's fine, I can give it a test also later)

author
#21 lore raw

PATCH 17/20 msgpack-cpp: Upgrade 6.1.1 -> 7.0.0 to allow CMake 4+ compatibility

In reply to Alper Ak

Changelog:

https://github.com/msgpack/msgpack-c/blob/cpp-7.0.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!
---
 .../msgpack/{msgpack-cpp_6.1.1.bb => msgpack-cpp_7.0.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/msgpack/{msgpack-cpp_6.1.1.bb => msgpack-cpp_7.0.0.bb} (90%)
meta-oe/recipes-devtools/msgpack/msgpack-cpp_7.0.0.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-cpp_6.1.1.bb +1 -1
similarity index 90%
rename from meta-oe/recipes-devtools/msgpack/msgpack-cpp_6.1.1.bb
rename to meta-oe/recipes-devtools/msgpack/msgpack-cpp_7.0.0.bb
index 3457964609..5b296a20cd 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
                    "
 
 SRC_URI = "https://github.com/msgpack/msgpack-c/releases/download/cpp-${PV}/msgpack-cxx-${PV}.tar.gz"
-SRC_URI[sha256sum] = "5fd555742e37bbd58d166199e669f01f743c7b3c6177191dd7b31fb0c37fa191"
+SRC_URI[sha256sum] = "7504b7af7e7b9002ce529d4f941e1b7fb1fb435768780ce7da4abaac79bb156f"
 
 UPSTREAM_CHECK_URI = "https://github.com/msgpack/msgpack-c/releases"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
Signature · 1 line
2.43.0
author
#22 lore raw

PATCH 18/20 fatcat: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0003-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../recipes-utils/fatcat/fatcat_1.1.1.bb      |  2 +-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 meta-filesystems/recipes-utils/fatcat/fatcat/0003-allow-build-with-cmake-4.patch
meta-filesystems/recipes-utils/fatcat/fatcat/0003-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..1baa9c7e87
@@ -0,0 +1,40 @@
+From a2a3d85d44fc27edfee5c4d9667b2c315dfacd23 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 19:38:06 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/Gregwar/fatcat/pull/46]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d6a2649..8f3eadc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 3.5)
+ project(fatcat)
+ 
+ OPTION(DEFINE_WIN "Compiling windows" OFF)
+-- 
+2.43.0
+
meta-filesystems/recipes-utils/fatcat/fatcat_1.1.1.bb +1 -1
index bdde0d311a..876e8618eb 100644
@@ -11,9 +11,9 @@ SRC_URI = "git://github.com/Gregwar/fatcat.git;branch=master;protocol=https \
            file://0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch \
            file://0002-Enable-64bit-off_t.patch \
            file://0001-Replace-std-ptr_fun-for-c-17.patch \
+           file://0003-allow-build-with-cmake-4.patch \
            "
 
 SRCREV = "99cb99fc86eb1601ac7ae27f5bba23add04d2543"
 
-
 inherit cmake
Signature · 1 line
2.43.0
author
#23 lore raw

PATCH 19/20 serial: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0002-allow-build-with-cmake-4.patch       | 40 +++++++++++++++++++
 .../recipes-support/serial/serial_1.2.1.bb    |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-support/serial/serial/0002-allow-build-with-cmake-4.patch
meta-oe/recipes-support/serial/serial/0002-allow-build-with-cmake-4.patch new file +40 -0
new file mode 100644
index 0000000000..7dba62429c
@@ -0,0 +1,40 @@
+From 35fe02e5376fd1372fd5feaee5b9148744ed77eb Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 19:54:57 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/wjwwood/serial/pull/311]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0e4ede8..d03e39b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.3)
++cmake_minimum_required(VERSION 3.5)
+ project(serial)
+ set (SERIAL_VERSION_MAJOR 1)
+ set (SERIAL_VERSION_MINOR 2)
+-- 
+2.43.0
+
meta-oe/recipes-support/serial/serial_1.2.1.bb +1 -0
index 42151da532..654173fa38 100644
@@ -7,6 +7,7 @@ SRC_URI = " \
     git://github.com/wjwwood/${BPN}.git;protocol=https;branch=main \
     file://Findcatkin.cmake \
     file://0001-Add-SOVERSION-for-shared-lib-and-comment-example.patch \
+    file://0002-allow-build-with-cmake-4.patch \
 "
 SRCREV = "10ac4e1c25c2cda1dc0a32a8e12b87fd89f3bb4f"
 SRC_URI[sha256sum] = "c8cd235dda2ef7d977ba06dfcb35c35e42f45cfd9149ba3ad257756123d8ff96"
Signature · 1 line
2.43.0
author
#24 lore raw

PATCH 20/20 libcyusbserial: Add patch for CMake 4+ compatibility

In reply to Alper Ak

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!
---
 .../0002-allow-build-with-cmake-4.patch       | 51 +++++++++++++++++++
 .../libcyusbserial/libcyusbserial_git.bb      |  2 +-
 2 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/libcyusbserial/libcyusbserial/0002-allow-build-with-cmake-4.patch
meta-oe/recipes-support/libcyusbserial/libcyusbserial/0002-allow-build-with-cmake-4.patch new file +51 -0
new file mode 100644
index 0000000000..433c845f4c
@@ -0,0 +1,51 @@
+From 0998662e52a4a31e8e7cfe89d695341082aea238 Mon Sep 17 00:00:00 2001
+From: Alper Ak <[email protected]>
+Date: Wed, 9 Jul 2025 20:19:39 +0300
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+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!
+
+Upstream-Status: Submitted [https://github.com/cyrozap/libcyusbserial/pull/8]
+
+Signed-off-by: Alper Ak <[email protected]>
+---
+ CMakeLists.txt         | 2 +-
+ include/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4d42eb2..4bbb2b0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.4)
++cmake_minimum_required(VERSION 3.5)
+ 
+ project(libcyusbserial C)
+ 
+diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
+index 8f0c90b..63f4d02 100644
+--- a/include/CMakeLists.txt
++++ b/include/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 3.5)
+ 
+ ################################################################################
+ # Install libbladeRF header files
+-- 
+2.43.0
+
meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb +1 -1
index 939e7db24e..7c9a9908ad 100644
@@ -11,9 +11,9 @@ SRCREV = "655e2d544183d094f0e2d119c7e0c6206a0ddb3f"
 SRC_URI = "git://github.com/cyrozap/${BPN}.git;branch=master;protocol=https \
     file://0001-CMakeLists.txt-don-t-fall-back-CMAKE_INSTALL_LIBDIR-.patch \
     file://0001-Fix-gcc-15-incompatible-pointer-types-error.patch \
+    file://0002-allow-build-with-cmake-4.patch \
 "
 
-
 inherit cmake
 
 PACKAGES =+ "${PN}-utils"
Signature · 1 line
2.43.0