package/azure-iot-sdk-c: fix cmake 4 compatibility
PATCH 1/21 package/azure-iot-sdk-c: fix cmake 4 compatibility
--- ...make-version-and-update-dependencies.patch | 30 +++++++++++++++++++ ...make-version-and-update-dependencies.patch | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 package/azure-iot-sdk-c/0001-Bump-cmake-version-and-update-dependencies.patch create mode 100644 package/azure-iot-sdk-c/0002-Bump-cmake-version-and-update-dependencies.patch
package/azure-iot-sdk-c/0001-Bump-cmake-version-and-update-dependencies.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 1a9a5fd688d811ca7300edccbdfc623fdaa1b8dc Mon Sep 17 00:00:00 2001 +From: Dan Cristoloveanu <[email protected]> +Date: Wed, 27 Jan 2021 12:59:18 -0800 +Subject: [PATCH] Bump cmake version and update dependencies (#65) + +* Bump cmake version to 3.18 + +Upstream: https://github.com/Azure/macro-utils-c/commit/1a9a5fd688d811ca7300edccbdfc623fdaa1b8dc + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to LTS_03_2025] +--- + deps/azure-macro-utils-c/CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 29b3416..3b82d4e 100644 +--- a/deps/azure-macro-utils-c/CMakeLists.txt ++++ b/deps/azure-macro-utils-c/CMakeLists.txt +@@ -1,7 +1,9 @@ + #Copyright (c) Microsoft. All rights reserved. + #Licensed under the MIT license. See LICENSE file in the project root for full license information. + +-cmake_minimum_required(VERSION 2.8.11) ++if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION) ++ cmake_minimum_required(VERSION 3.18) ++endif() + + if(TARGET azure_macro_utils_c) + return()
package/azure-iot-sdk-c/0002-Bump-cmake-version-and-update-dependencies.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 02ed1852d45fda6994748118bab129e5d2527c0f Mon Sep 17 00:00:00 2001 +From: Dan Cristoloveanu <[email protected]> +Date: Wed, 27 Jan 2021 21:35:21 -0800 +Subject: [PATCH] Bump cmake version (#189) + +* Bump version for cmake + +Upstream: https://github.com/Azure/umock-c/commit/02ed1852d45fda6994748118bab129e5d2527c0f + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to LTS_03_2025] +--- + deps/umock-c/CMakeLists.txt | 5 ++++- + 1 files change, 13 insertions(+), 74 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f1a7a9f4..fc479cac 100644 +--- a/deps/umock-c/CMakeLists.txt ++++ b/deps/umock-c/CMakeLists.txt +@@ -1,7 +1,9 @@ + #Copyright (c) Microsoft. All rights reserved. + #Licensed under the MIT license. See LICENSE file in the project root for full license information. + +-cmake_minimum_required(VERSION 2.8.11) ++if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION) ++ cmake_minimum_required(VERSION 3.18) ++endif() + + if(TARGET umock_c) + return()
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/21 package/bullet: fix cmake 4 compatibility
--- .../0001-update-CMake-required-version.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/bullet/0001-update-CMake-required-version.patch
package/bullet/0001-update-CMake-required-version.patch new file +22 -0
@@ -0,0 +1,22 @@ +From d1a4256b3a019117f2bb6cb8c63d6367aaf512e2 Mon Sep 17 00:00:00 2001 +From: Erwin Coumans <[email protected]> +Date: Wed, 23 Apr 2025 14:17:20 -0700 +Subject: [PATCH] update CMake required version + +Upstream: https://github.com/bulletphysics/bullet3/commit/d1a4256b3a019117f2bb6cb8c63d6367aaf512e2 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a695b71726..e7a58e6d67 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.4.3) ++cmake_minimum_required(VERSION 3.5) + set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) + cmake_policy(SET CMP0017 NEW) + #this line has to appear before 'PROJECT' in order to be able to disable incremental linking
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/21 package/docopt-cpp: fix cmake 4 compatibility
In reply to Bernd Kuhls--- ...crease-cmake_minimum_required-to-3.5.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/docopt-cpp/0002-Increase-cmake_minimum_required-to-3.5.patch
package/docopt-cpp/0002-Increase-cmake_minimum_required-to-3.5.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 05d507da0d153faff381f44968833ebffdc03447 Mon Sep 17 00:00:00 2001 +From: Eero Aaltonen <[email protected]> +Date: Wed, 1 Nov 2023 13:39:42 +0200 +Subject: [PATCH] Increase cmake_minimum_required to 3.5 + +CMake version 3.27 deprecates compatibility with versions older than +3.5. Increase the minimum required so that the project can be built +without warnings. + +Upstream: https://github.com/docopt/docopt.cpp/commit/05d507da0d153faff381f44968833ebffdc03447 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + README.rst | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 28da614..246e90e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.5) + project(docopt.cpp VERSION 0.6.2) + + include(GNUInstallDirs) +diff --git a/README.rst b/README.rst +index 5fe8b4f..6d7012d 100644 +--- a/README.rst ++++ b/README.rst +@@ -87,7 +87,7 @@ Alternatively manual installation is done using (unix):: + To link *docopt.cpp*, the simplest is to use CMake. The general structure of your + ``CMakeLists.txt`` would be as follows:: + +- cmake_minimum_required(VERSION 3.1) ++ cmake_minimum_required(VERSION 3.5) + + project(example) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/21 package/double-conversion: fix cmake 4 compatibility
In reply to Bernd Kuhls--- ...CMake-Raised-required-version-to-3.5.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/double-conversion/0001-CMake-Raised-required-version-to-3.5.patch
package/double-conversion/0001-CMake-Raised-required-version-to-3.5.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 101e1ba89dc41ceb75090831da97c43a76cd2906 Mon Sep 17 00:00:00 2001 +From: Heiko Becker <[email protected]> +Date: Thu, 20 Feb 2025 15:20:07 +0100 +Subject: [PATCH] CMake: Raised required version to 3.5 (#240) + +CMake >= 4.0.0-rc1 removed compatibility with versions < 3.5 and errors +out with such versions passed to cmake_minimum_required(). 3.5.0 has +been released 9 years ago, so I'd assume it's available almost +everywhere. + +Upstream: https://github.com/google/double-conversion/commit/101e1ba89dc41ceb75090831da97c43a76cd2906 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8749ef86..31457723 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.5) + project(double-conversion VERSION 3.3.0) + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/21 package/flann: fix cmake 4 compatibility
In reply to Bernd Kuhls--- ...x-to-3.10-in-cmake_minimum_required-.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/flann/0001-Set-policy_max-to-3.10-in-cmake_minimum_required-.patch
package/flann/0001-Set-policy_max-to-3.10-in-cmake_minimum_required-.patch new file +24 -0
@@ -0,0 +1,24 @@ +From a6803c235c0107f3690010c2fc429e3875c4b7c6 Mon Sep 17 00:00:00 2001 +From: Silvio Traversaro <[email protected]> +Date: Thu, 22 May 2025 19:26:16 +0200 +Subject: [PATCH] Set policy_max to 3.10 in cmake_minimum_required to support + CMake 4.0 + +Upstream: https://github.com/flann-lib/flann/pull/526 + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to 1.9.2] +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f79d173a..85d5a560 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 2.8.12...3.10) + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 6/21 package/flare-engine: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0001-Minimum-CMake-version-3.5.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/flare-engine/0001-Minimum-CMake-version-3.5.patch
package/flare-engine/0001-Minimum-CMake-version-3.5.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 9500379f886484382bba2f893faf49865de9f2c0 Mon Sep 17 00:00:00 2001 +From: Justin Jacobs <[email protected]> +Date: Sat, 5 Apr 2025 18:27:55 -0400 +Subject: [PATCH] Minimum CMake version = 3.5 + +From the CMake 4.0 release notes: +> Compatibility with versions of CMake older than 3.5 has been removed. + +Upstream: https://github.com/flareteam/flare-engine/commit/9500379f886484382bba2f893faf49865de9f2c0 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 897c19c3d..def8121c4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + Project (Flare) +-cmake_minimum_required (VERSION 2.8.12) ++cmake_minimum_required (VERSION 3.5) + + Set (PACKAGE "FLARE") + Set (VERSION "1.14")
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 7/21 package/flare-game: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0001-Minimum-CMake-version-3.5.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/flare-game/0001-Minimum-CMake-version-3.5.patch
package/flare-game/0001-Minimum-CMake-version-3.5.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 5b61dfd69f4ecbaca6439caa9ae41b3168e4d21a Mon Sep 17 00:00:00 2001 +From: Justin Jacobs <[email protected]> +Date: Sat, 5 Apr 2025 18:31:03 -0400 +Subject: [PATCH] Minimum CMake version = 3.5 + +From the CMake 4.0 release notes: +> Compatibility with versions of CMake older than 3.5 has been removed. + +Upstream: https://github.com/flareteam/flare-game/commit/5b61dfd69f4ecbaca6439caa9ae41b3168e4d21a + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d98c2ae5f..9c1750552 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + Project (Flare-Game LANGUAGES NONE) +-cmake_minimum_required (VERSION 2.8.12) ++cmake_minimum_required (VERSION 3.5) + + Set (PACKAGE "FLARE-GAME") + Set (VERSION "1.14")
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 8/21 package/gflags: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../gflags/0001-build-support-cmake-4.0.patch | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 package/gflags/0001-build-support-cmake-4.0.patch
package/gflags/0001-build-support-cmake-4.0.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 70c01a642f08734b7bddc9687884844ca117e080 Mon Sep 17 00:00:00 2001 +From: Rui Chen <[email protected]> +Date: Mon, 31 Mar 2025 18:35:49 -0400 +Subject: [PATCH] build: support cmake 4.0 (#367) + +Signed-off-by: Rui Chen <[email protected]> + +Upstream: https://github.com/gflags/gflags/commit/70c01a642f08734b7bddc9687884844ca117e080 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + test/config/CMakeLists.txt | 2 +- + test/nc/CMakeLists.txt | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4b5db235..a664bb12 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -70,7 +70,7 @@ + ## - GFLAGS_INSTALL_SHARED_LIBS + ## - GFLAGS_INSTALL_STATIC_LIBS + +-cmake_minimum_required (VERSION 3.0.2 FATAL_ERROR) ++cmake_minimum_required (VERSION 3.5 FATAL_ERROR) + + if (POLICY CMP0042) + cmake_policy (SET CMP0042 NEW) +diff --git a/test/config/CMakeLists.txt b/test/config/CMakeLists.txt +index 6190b253..205121e8 100644 +--- a/test/config/CMakeLists.txt ++++ b/test/config/CMakeLists.txt +@@ -1,6 +1,6 @@ + ## gflags package configuration tests + +-cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) ++cmake_minimum_required (VERSION 3.5 FATAL_ERROR) + + project (gflags_${TEST_NAME}) + +diff --git a/test/nc/CMakeLists.txt b/test/nc/CMakeLists.txt +index d00b07d0..1b4d511a 100644 +--- a/test/nc/CMakeLists.txt ++++ b/test/nc/CMakeLists.txt +@@ -1,6 +1,6 @@ + ## gflags negative compilation tests + +-cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) ++cmake_minimum_required (VERSION 3.5 FATAL_ERROR) + + if (NOT TEST_NAME) + message (FATAL_ERROR "Missing TEST_NAME CMake flag")
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 9/21 package/json-c: fix cmake 4 compatibility
In reply to Bernd KuhlsFixes:
https://autobuild.buildroot.net/results/dcf/dcf72922750a830901279e8eb8fc2def95d35e01/
--- .../0001-Allow-build-with-cmake-4.0.0.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/json-c/0001-Allow-build-with-cmake-4.0.0.patch
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 42864e12b0d7af01b1cf989d6da9e9a4477775a1 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Fri, 28 Mar 2025 23:14:48 +1100 +Subject: [PATCH] Allow build with cmake 4.0.0 + +Update the min version to match parent CMakeLists.txt 3.9...3.12 + +Upstream: https://github.com/json-c/json-c/commit/42864e12b0d7af01b1cf989d6da9e9a4477775a1 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + apps/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt +index f7c9dec633..ef2271d131 100644 +--- a/apps/CMakeLists.txt ++++ b/apps/CMakeLists.txt +@@ -1,5 +1,5 @@ + +-cmake_minimum_required(VERSION 2.8) # see ../CMakeLists.txt for why 2.8 ++cmake_minimum_required(VERSION 3.9...3.12) + + if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH/next 09/21] package/json-c: fix cmake 4 compatibility
Hi Bernd,
Quoted 24 lines · Bernd Kuhls
Fixes:
https://autobuild.buildroot.net/results/dcf/dcf72922750a830901279e8eb8fc2def95d35e01/Signed-off-by Bernd Kuhls <[email protected]>--- .../0001-Allow-build-with-cmake-4.0.0.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644
package/json-c/0001-Allow-build-with-cmake-4.0.0.patchpackage/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +8
-0@@ -0,0 +1,25 @@ +From 42864e12b0d7af01b1cf989d6da9e9a4477775a1 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Fri, 28 Mar 2025 23:14:48 +1100 +Subject: [PATCH] Allow build with cmake 4.0.0 + +Update the min version to match parent CMakeLists.txt 3.9...3.12 + +Upstream:https://github.com/json-c/json-c/commit/42864e12b0d7af01b1cf989d6da9e9a4477775a1
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch line 18
Quoted 10 lines
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +10
-0+ +Signed-off-by: Bernd Kuhls <[email protected]> +--- + apps/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt +index f7c9dec633..ef2271d131 100644 +--- a/apps/CMakeLists.txt ++++ b/apps/CMakeLists.txt
This package is currently always built with -DBUILD_APPS=OFF
See:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11-rc2/package/json-c/json-c.mk?ref_type=tags#L13
and
https://github.com/json-c/json-c/blob/json-c-0.18/CMakeLists.txt#L582
This package patch seems to fix only the apps. I don't think it is currently needed in Buildroot. Can you confirm?
Quoted 10 lines
+@@ -1,5 +1,5 @@
+
+-cmake_minimum_required(VERSION 2.8) # see../CMakeLists.txtfor why 2.8
++cmake_minimum_required(VERSION 3.9...3.12)package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +3
-1+ + if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) --2.47.3
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH/next 09/21] package/json-c: fix cmake 4 compatibility
Hi again,
Quoted 42 lines · Julien Olivain via buildroot
Hi Bernd,
Quoted 26 lines · Bernd Kuhls
Fixes:
https://autobuild.buildroot.net/results/dcf/dcf72922750a830901279e8eb8fc2def95d35e01/Signed-off-by Bernd Kuhls <[email protected]>--- .../0001-Allow-build-with-cmake-4.0.0.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644
package/json-c/0001-Allow-build-with-cmake-4.0.0.patchpackage/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +1
-0@@ -0,0 +1,25 @@ +From 42864e12b0d7af01b1cf989d6da9e9a4477775a1 Mon Sep 17 00:00:002001
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +7
-0+From: Rudi Heitbaum <[email protected]> +Date: Fri, 28 Mar 2025 23:14:48 +1100 +Subject: [PATCH] Allow build with cmake 4.0.0 + +Update the min version to match parent CMakeLists.txt 3.9...3.12 + +Upstream:https://github.com/json-c/json-c/commit/42864e12b0d7af01b1cf989d6da9e9a4477775a1
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch line 18
Quoted 10 lines
package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +10
-0+ +Signed-off-by: Bernd Kuhls <[email protected]> +--- + apps/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt +index f7c9dec633..ef2271d131 100644 +--- a/apps/CMakeLists.txt ++++ b/apps/CMakeLists.txtThis package is currently always built with -DBUILD_APPS=OFF
Quoted 7 lines
See:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11-rc2/package/json-c/json-c.mk?ref_type=tags#L13
and
https://github.com/json-c/json-c/blob/json-c-0.18/CMakeLists.txt#L582This package patch seems to fix only the apps. I don't think it is currently needed in Buildroot. Can you confirm?
Looking better at the autobuilder log, I noticed apps are built in the case of host-json-c. So this patch is needed at least for the host variant.
I'll apply this version of the patch.
Quoted 13 lines
Quoted 10 lines
+@@ -1,5 +1,5 @@
+
+-cmake_minimum_required(VERSION 2.8) # see../CMakeLists.txtfor why 2.8
++cmake_minimum_required(VERSION 3.9...3.12)package/json-c/0001-Allow-build-with-cmake-4.0.0.patch new file +3
-1+ + if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) --2.47.3
Best regards,
Quoted 1 line
Julien.
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 10/21 package/libcue: fix cmake 4 compatibility
In reply to Bernd KuhlsNot yet found by buildroot autobuilders.
--- ...-Raise-CMake-minimum-version-to-3.10.patch | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/libcue/0001-Raise-CMake-minimum-version-to-3.10.patch
package/libcue/0001-Raise-CMake-minimum-version-to-3.10.patch new file +42 -0
@@ -0,0 +1,42 @@ +From d62e39506f4f9b12d58efbd2f1e2667c06b13a19 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <[email protected]> +Date: Sun, 28 Sep 2025 22:12:39 +0200 +Subject: [PATCH] Raise CMake minimum version to 3.10 + +Signed-off-by: Andreas Sturmlechner <[email protected]> + +Downloaded from Gentoo commit +https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67d125dc0333e62fccb360f5918b044aa4bdf978 + +Upstream: https://github.com/lipnitsk/libcue/pull/73 + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to 2.3.0] +--- + CMakeLists.txt | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c4f9d8e..0d3cb04 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,10 +1,14 @@ ++CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR) ++ ++if (POLICY CMP0145) ++ cmake_policy(SET CMP0145 OLD) # since 3.27 ++endif() ++ + SET(PACKAGE libcue) + SET(PACKAGE_NAME libcue) + SET(PACKAGE_VERSION 2.3.0) + SET(PACKAGE_SOVERSION 2) + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) +- + PROJECT(libcue C) + + include(GNUInstallDirs) +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 11/21 package/libebml: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0001-drop-CMake-older-than-3.5.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/libebml/0001-drop-CMake-older-than-3.5.patch
package/libebml/0001-drop-CMake-older-than-3.5.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 6725c5f0169981cb0bd2ee124fbf0d8ca30b762d Mon Sep 17 00:00:00 2001 +From: Steve Lhomme <[email protected]> +Date: Sat, 24 Feb 2024 08:33:56 +0100 +Subject: [PATCH] drop CMake older than 3.5 + +It generates a warning with newer versions of CMake. +3.4 was released in 2015. We require C++17 with compilers only available in 2017/2018. +If your CMake is older than your toolchain, you have a problem. + +There's no need to support legacy CMake going forward in libebml 2. + +Upstream: https://github.com/Matroska-Org/libebml/commit/6725c5f0169981cb0bd2ee124fbf0d8ca30b762d + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to version 1.4.5] +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 11ee059a..c7b969a8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1.2) ++cmake_minimum_required(VERSION 3.5) + + project(ebml VERSION 1.4.5) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 12/21 package/libmatroska: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0001-drop-CMake-older-than-3.5.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/libmatroska/0001-drop-CMake-older-than-3.5.patch
package/libmatroska/0001-drop-CMake-older-than-3.5.patch new file +29 -0
@@ -0,0 +1,29 @@ +From dc80e194e93e6f0e25c8ad3e015d83aca2a99e10 Mon Sep 17 00:00:00 2001 +From: Steve Lhomme <[email protected]> +Date: Sat, 24 Feb 2024 08:38:00 +0100 +Subject: [PATCH] drop CMake older than 3.5 + +It generates a warning with newer versions of CMake. +3.4 was released in 2015. We require C++17 with compilers only available in 2017/2018. +If your CMake is older than your toolchain, you have a problem. + +There's no need to support legacy CMake going forward in libebml 2/libmatroska 2. + +Upstream: https://github.com/Matroska-Org/libmatroska/commit/dc80e194e93e6f0e25c8ad3e015d83aca2a99e10 + +Signed-off-by: Bernd Kuhls <[email protected]> +[backported to version 1.7.1] +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 221c8ac6..97b392e0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1.2) ++cmake_minimum_required(VERSION 3.5) + + project(matroska VERSION 1.7.1) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 13/21 package/libmodplug: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0002-Fix-build-with-cmake-4.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/libmodplug/0002-Fix-build-with-cmake-4.patch
package/libmodplug/0002-Fix-build-with-cmake-4.patch new file +36 -0
@@ -0,0 +1,36 @@ +From a133c89548383f88fe0d0da618ef3c06c7f08f22 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Tue, 2 Dec 2025 18:00:15 +0100 +Subject: [PATCH] Fix build with cmake 4 + +Fixes build error with cmake 4.20: + +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. + +Upstream: https://github.com/Konstanty/libmodplug/pull/101 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d9fd20d..9f9c94f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.12) + + project(libmodplug) + +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 14/21 package/libsoxr: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../0002-allow-compile-with-cmake-4.0.0.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/libsoxr/0002-allow-compile-with-cmake-4.0.0.patch
package/libsoxr/0002-allow-compile-with-cmake-4.0.0.patch new file +28 -0
@@ -0,0 +1,28 @@ +From c157f862ecca9a0613e25c2058aceb127ee4ea4f Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Fri, 28 Mar 2025 13:47:55 +0000 +Subject: [PATCH] allow compile with cmake 4.0.0 + +Upstream: https://sourceforge.net/p/soxr/code/merge-requests/6/ + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ee48f6c..2eea1e9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + # SoX Resampler Library Copyright (c) 2007-18 [email protected] + # Licence for this file: LGPL v2.1 See LICENCE for details. + +-cmake_minimum_required (VERSION 3.1 FATAL_ERROR) ++cmake_minimum_required (VERSION 3.1...3.10 FATAL_ERROR) + + project (soxr C) + set (DESCRIPTION_SUMMARY +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 15/21 package/libuecc: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../libuecc/0001-Fix-build-with-CMake-4.patch | 158 ++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 package/libuecc/0001-Fix-build-with-CMake-4.patch
package/libuecc/0001-Fix-build-with-CMake-4.patch new file +158 -0
@@ -0,0 +1,158 @@ +From b3812bf5ab1777193c4b85863311c33997d141f9 Mon Sep 17 00:00:00 2001 +From: Sven Eckelmann <[email protected]> +Date: Mon, 1 Sep 2025 10:21:38 +0200 +Subject: [PATCH] Fix build with CMake 4 + +CMake 4 dropped support for policies which were introduced before version +3.5. Trying to build uisng cmake 4 results in: + + 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. + +Just increasing minimum version to 3.18 (from 2020-07-15) fixes this +problem. This version is low enough to still support Debian bullseye or +Ubuntu 22.04. + +With this version increase, following policies are enabled + +* 3.18 + - CMP0108: A target cannot link to itself through an alias. + - CMP0107: An ALIAS target cannot overwrite another target. + - CMP0106: The Documentation module is removed. + - CMP0105: Device link step uses the link options. + - CMP0104: CMAKE_CUDA_ARCHITECTURES now detected for NVCC, empty CUDA_ARCHITECTURES not allowed. + - CMP0103: Multiple export() with same FILE without APPEND is not allowed. +* 3.17 + - CMP0102: mark_as_advanced() does nothing if a cache entry does not exist. + - CMP0101: target_compile_options honors BEFORE keyword in all scopes. + - CMP0100: Let AUTOMOC and AUTOUIC process .hh header files. + - CMP0099: Link properties are transitive over private dependencies of static libraries. + - CMP0098: FindFLEX runs flex in CMAKE_CURRENT_BINARY_DIR when executing. +* 3.16 + - CMP0097: ExternalProject_Add with GIT_SUBMODULES "" initializes no submodules. + - CMP0096: project() preserves leading zeros in version components. + - CMP0095: RPATH entries are properly escaped in the intermediary CMake install script. +* 3.15 + - CMP0094: FindPython3, FindPython2 and FindPython use LOCATION for lookup strategy. + - CMP0093: FindBoost reports Boost_VERSION in x.y.z format. + - CMP0092: MSVC warning flags are not in CMAKE_{C,CXX}_FLAGS by default. + - CMP0091: MSVC runtime library flags are selected by an abstraction. + - CMP0090: export(PACKAGE) does not populate package registry by default. + - CMP0089: Compiler id for IBM Clang-based XL compilers is now XLClang. +* 3.14 + - CMP0088: FindBISON runs bison in CMAKE_CURRENT_BINARY_DIR when executing. + - CMP0087: install(SCRIPT | CODE) supports generator expressions. + - CMP0086: UseSWIG honors SWIG_MODULE_NAME via -module flag. + - CMP0085: IN_LIST generator expression handles empty list items. + - CMP0084: The FindQt module does not exist for find_package(). + - CMP0083: Add PIE options when linking executable. + - CMP0082: Install rules from add_subdirectory() are interleaved with those in caller. +* 3.13 + - CMP0081: Relative paths not allowed in LINK_DIRECTORIES target property. + - CMP0080: BundleUtilities cannot be included at configure time. + - CMP0079: target_link_libraries allows use with targets in other directories. + - CMP0078: UseSWIG generates standard target names. + - CMP0077: option() honors normal variables. + - CMP0076: target_sources() command converts relative paths to absolute. +* 3.12 + - CMP0075: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. + - CMP0074: find_package uses PackageName_ROOT variables. + - CMP0073: Do not produce legacy _LIB_DEPENDS cache entries. +* 3.11 + - CMP0072: FindOpenGL prefers GLVND by default when available. +* 3.10 + - CMP0071: Let AUTOMOC and AUTOUIC process GENERATED files. + - CMP0070: Define file(GENERATE) behavior for relative paths. +* 3.9 + - CMP0069: INTERPROCEDURAL_OPTIMIZATION is enforced when enabled. + - CMP0068: RPATH settings on macOS do not affect install_name. +* 3.8 + - CMP0067: Honor language standard in try_compile() source-file signature. +* 3.7 + - CMP0066: Honor per-config flags in try_compile() source-file signature. +* 3.4 + - CMP0065: Do not add flags to export symbols from executables without the ENABLE_EXPORTS target property. + - CMP0064: Support new TEST if() operator. +* 3.3 + - CMP0063: Honor visibility properties for all target types. + - CMP0062: Disallow install() of export() result. + - CMP0061: CTest does not by default tell make to ignore errors (-i). + - CMP0060: Link libraries by full path even in implicit directories. + - CMP0059: Do not treat DEFINITIONS as a built-in directory property. + - CMP0058: Ninja requires custom command byproducts to be explicit. + - CMP0057: Support new IN_LIST if() operator. +* 3.2 + - CMP0056: Honor link flags in try_compile() source-file signature. + - CMP0055: Strict checking for break() command. +* 3.1 + - CMP0054: Only interpret if() arguments as variables or keywords when unquoted. + - CMP0053: Simplify variable reference and escape sequence evaluation. + - CMP0052: Reject source and build dirs in installed INTERFACE_INCLUDE_DIRECTORIES. + - CMP0051: List TARGET_OBJECTS in SOURCES target property. +* 3.0 + - CMP0050: Disallow add_custom_command SOURCE signatures. + - CMP0049: Do not expand variables in target source entries. + - CMP0048: project() command manages VERSION variables. + - CMP0047: Use QCC compiler id for the qcc drivers on QNX. + - CMP0046: Error on non-existent dependency in add_dependencies. + - CMP0045: Error on non-existent target in get_target_property. + - CMP0044: Case sensitive Lang_COMPILER_ID generator expressions. + - CMP0043: Ignore COMPILE_DEFINITIONS_Config properties. + - CMP0042: MACOSX_RPATH is enabled by default. + - CMP0041: Error on relative include with generator expression. + - CMP0040: The target in the TARGET signature of add_custom_command() must exist. + - CMP0039: Utility targets may not have link dependencies. + - CMP0038: Targets may not link directly to themselves. + - CMP0037: Target names should not be reserved and should match a validity pattern. + - CMP0036: The build_name command should not be called. + - CMP0035: The variable_requires command should not be called. + - CMP0034: The utility_source command should not be called. + - CMP0033: The export_library_dependencies command should not be called. + - CMP0032: The output_required_files command should not be called. + - CMP0031: The load_command command should not be called. + - CMP0030: The use_mangled_mesa command should not be called. + - CMP0029: The subdir_depends command should not be called. + - CMP0028: Double colon in target name means ALIAS or IMPORTED target. + - CMP0027: Conditionally linked imported targets with missing include directories. + - CMP0026: Disallow use of the LOCATION target property. + - CMP0025: Compiler id for Apple Clang is now AppleClang. + - CMP0024: Disallow include export result. +* 2.8 + - CMP0023: Plain and keyword target_link_libraries signatures cannot be mixed. + - CMP0022: INTERFACE_LINK_LIBRARIES defines the link interface. + - CMP0021: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. + - CMP0020: Automatically link Qt executables to qtmain target on Windows. + - CMP0019: Do not re-expand variables in include and link information. + - CMP0018: Ignore CMAKE_SHARED_LIBRARY_Lang_FLAGS variable. + - CMP0017: Prefer files from the CMake module directory when including from there. + - CMP0016: target_link_libraries() reports error if its only argument is not a target. + - CMP0015: link_directories() treats paths relative to the source dir. + - CMP0014: Input directories must have CMakeLists.txt. + - CMP0013: Duplicate binary directories are not allowed. + - CMP0012: if() recognizes numbers and boolean constants. + +Fixes: #1 +Signed-off-by: Sven Eckelmann <[email protected]> + +Upstream: https://github.com/neocturne/libuecc/commit/b3812bf5ab1777193c4b85863311c33997d141f9 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 779ac41..24bded3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 3.18) + project(LIBUECC C) + set(PROJECT_VERSION 7) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 16/21 package/libvncserver: fix cmake 4 compatibility
In reply to Bernd Kuhls--- ...001-CMake-require-at-least-CMake-3.5.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch new file +26 -0
@@ -0,0 +1,26 @@ +From e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= <[email protected]> +Date: Tue, 13 May 2025 08:37:07 +0300 +Subject: [PATCH] CMake: require at least CMake 3.5 + +CMake 4 dropped support for version requirements < 3.5. + +Fixes building with CMake >= 4. + +Upstream: https://github.com/LibVNC/libvncserver/commit/e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 205f3928..9b8118c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.4) ++cmake_minimum_required(VERSION 3.5) + + set(PROJECT_LANGUAGES C) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH/next 16/21] package/libvncserver: fix cmake 4 compatibility
Hi Bernd,
Thanks for the patch.
Quoted 27 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>--- ...001-CMake-require-at-least-CMake-3.5.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patchpackage/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch new file +10
-0@@ -0,0 +1,26 @@ +From e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= <[email protected]> +Date: Tue, 13 May 2025 08:37:07 +0300 +Subject: [PATCH] CMake: require at least CMake 3.5 + +CMake 4 dropped support for version requirements < 3.5. + +Fixes building with CMake >= 4. + +Upstream:https://github.com/LibVNC/libvncserver/commit/e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch new file +3
-0+ +Signed-off-by: Bernd Kuhls <[email protected]> +---
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch line 23
Quoted 10 lines
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch new file +10
-0+ CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 205f3928..9b8118c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.4) ++cmake_minimum_required(VERSION 3.5)
This package patch does not apply. It fails with:
Applying 0001-CMake-require-at-least-CMake-3.5.patch using patch:
patching file CMakeLists.txt
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej
Could you rebase the patch and send an updated version, please?
Quoted 5 lines
package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch new file +3
-1+ + set(PROJECT_LANGUAGES C) + --2.47.3
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 17/21 package/mariadb: fix cmake 4 compatibility
In reply to Bernd Kuhls--- .../mariadb/0002-cmake-version-REQUIRES.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/mariadb/0002-cmake-version-REQUIRES.patch
package/mariadb/0002-cmake-version-REQUIRES.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 726cc3684b4de08934c2b14f347799fd8c3aac9a Mon Sep 17 00:00:00 2001 +From: Leonid Fedorov <[email protected]> +Date: Tue, 30 Aug 2022 22:41:44 +0000 +Subject: [PATCH] Proper external_boost for storage manager, cmake version + REQUIRES + +Upstream: https://github.com/mariadb-corporation/mariadb-columnstore-engine/commit/726cc3684b4de08934c2b14f347799fd8c3aac9a + +Signed-off-by: Bernd Kuhls <[email protected]> +[partial backport for 10.11.15] +--- + storage/columnstore/columnstore/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0be025103b..15f0eb0f48 100644 +--- a/storage/columnstore/columnstore/CMakeLists.txt ++++ b/storage/columnstore/columnstore/CMakeLists.txt +@@ -1,5 +1,5 @@ + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.12) + + PROJECT(Columnstore) +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 18/21 package/psimd: fix cmake 4 compatibility
In reply to Bernd KuhlsThe current upstream repo shows this note:
"This repository was archived by the owner on May 27, 2024. It is now
read-only."
Switched to fork whose only difference is a commit fixing build errors with cmake 4:
https://github.com/snest/psimd/commit/4674816f56757dbd99b297cb5647f2520df08db1
Fixes:
https://autobuild.buildroot.net/results/130/13084ca4df5ae91d72f46ef51873676b05398ec9/
--- package/psimd/psimd.hash | 2 +- package/psimd/psimd.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
package/psimd/psimd.hash +1 -1
@@ -1,4 +1,4 @@ # Locally calculated -sha256 f6c4dab91ae9a03b3019e7cab0572743afd0e1b6e75b97fcca50259c737c924e psimd-072586a71b55b7f8c584153d223e95687148a900.tar.gz +sha256 8934a8dff062663331a17588dfb771940be9d22887596c8ca77e25026c2adc6f psimd-4674816f56757dbd99b297cb5647f2520df08db1.tar.gz # License files, locally calculated sha256 984ce1e0b8ee89d234e28b960381f240e03a07a8031f35012f9c3256f56964e2 LICENSE
package/psimd/psimd.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -PSIMD_VERSION = 072586a71b55b7f8c584153d223e95687148a900 -PSIMD_SITE = $(call github,Maratyszcza,psimd,$(PSIMD_VERSION)) +PSIMD_VERSION = 4674816f56757dbd99b297cb5647f2520df08db1 +PSIMD_SITE = $(call github,snest,psimd,$(PSIMD_VERSION)) PSIMD_LICENSE = MIT PSIMD_LICENSE_FILES = LICENSE PSIMD_INSTALL_STAGING = YES
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 19/21 package/qhull: fix cmake 4 compatibility
In reply to Bernd Kuhls--- package/qhull/0001-Cmake-improvements.patch | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/qhull/0001-Cmake-improvements.patch
package/qhull/0001-Cmake-improvements.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 62ccc56af071eaa478bef6ed41fd7a55d3bb2d80 Mon Sep 17 00:00:00 2001 +From: Cristian Le <[email protected]> +Date: Wed, 2 Jul 2025 15:07:37 +0200 +Subject: [PATCH] Cmake improvements (#158) + +* Bump CMake policies -- Add higher policy bound (it is not the maximum version of CMake that can build, it's an indication that the lower bound can be bumped up to that version without degradation) + +* Use GNUInstallDirs -- This has been the standard install interface since CMake 3.0 + +* Use more common design for the Config.cmake + +* Use `target_include_directories` -- Use target_include_directories to propagate the include directory. Note: I don't know how the user consumes the package as #include <file.h> or #include <dir/file.h>, it is the latter in this implementation. + +[cbbarber] user_eg_r.c uses + #include "libqhull_r/qhull_ra.h" + +Upstream: https://github.com/qhull/qhull/commit/62ccc56af071eaa478bef6ed41fd7a55d3bb2d80 + +Signed-off-by: Bernd Kuhls <[email protected]> +[removed other parts of the patch, kept cmake bump, rebased for 8.0.2] +--- + CMakeLists.txt | 105 ++++++++++++++++++++++++------------------ + 3 files changed, 63 insertions(+), 48 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b2060f49..28714b15 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -68,7 +68,7 @@ + # $DateTime: 2020/09/03 21:26:22 $$Author: bbarber $ + + project(qhull) +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.5...4.0) + + # Define qhull_VERSION in README.txt, Announce.txt, qh-get.htm, CMakeLists.txt + # qhull-zip.sh (twice), qhull-wiki.md, qhull-news.htm, File_id.diz, index.htm
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 20/21 package/read-edid: fix cmake 4 compatibility
In reply to Bernd Kuhls--- package/read-edid/0004-cmake4.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/read-edid/0004-cmake4.patch
package/read-edid/0004-cmake4.patch new file +10 -0
@@ -0,0 +1,10 @@ +Fix build with cmake 4 + +--- read-edid-3.0.2/CMakeLists.txt.orig 2025-12-02 08:53:55.032171422 +0100 ++++ read-edid-3.0.2/CMakeLists.txt 2025-12-02 08:54:25.324940568 +0100 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.6) ++cmake_minimum_required (VERSION 3.12) + project (read-edid C) + + option(I2CBUILD "Build I2C get-edid implementation" ON)
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH/next 20/21] package/read-edid: fix cmake 4 compatibility
Hi Bernd,
Thanks for the patch.
package/read-edid/0004-cmake4.patch line 1
Quoted 13 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>--- package/read-edid/0004-cmake4.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/read-edid/0004-cmake4.patchpackage/read-edid/0004-cmake4.patch new file +1
-0@@ -0,0 +1,10 @@ +Fix build with cmake 4
This package patch generates check-package errors:
package/read-edid/0004-cmake4.patch:0: missing Signed-off-by in the header (https://nightly.buildroot.org/#_format_and_licensing_of_the_package_patches)package/read-edid/0004-cmake4.patch:0: missing Upstream in the header (https://nightly.buildroot.org/#_additional_patch_documentation)
Could you send an updated patch addressing this issue please?
Quoted 11 lines
package/read-edid/0004-cmake4.patch new file +10
-1+ +--- read-edid-3.0.2/CMakeLists.txt.orig 2025-12-02 08:53:55.032171422 +0100 ++++ read-edid-3.0.2/CMakeLists.txt 2025-12-02 08:54:25.324940568 +0100 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.6) ++cmake_minimum_required (VERSION 3.12) + project (read-edid C) + + option(I2CBUILD "Build I2C get-edid implementation" ON) --
Quoted 1 line
2.47.3
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 21/21 package/websocketpp: fix cmake 4 compatibility
In reply to Bernd Kuhls--- ...pdate-minimum-required-CMake-version.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/websocketpp/0002-Update-minimum-required-CMake-version.patch
package/websocketpp/0002-Update-minimum-required-CMake-version.patch new file +26 -0
@@ -0,0 +1,26 @@ +From deb0a334471362608958ce59a6b0bcd3e5b73c24 Mon Sep 17 00:00:00 2001 +From: Alexander Bock <[email protected]> +Date: Mon, 31 Mar 2025 22:04:07 +0200 +Subject: [PATCH] Update minimum required CMake version to comply with CMake + 4.0 + +Upstream: https://github.com/zaphoyd/websocketpp/commit/deb0a334471362608958ce59a6b0bcd3e5b73c24 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4f93e243a..92990c7dc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,7 +2,7 @@ + ############ Setup project and cmake + # Minimum cmake requirement. We should require a quite recent + # cmake for the dependency find macros etc. to be up to date. +-cmake_minimum_required (VERSION 2.8.8) ++cmake_minimum_required (VERSION 3.10) + + ############ Paths +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Bernd, All,
Quoted 1 line · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>
I applied most of this series on branch next.
For the 3 patches I did not applied (json-c, libvncserver, read-edid), see my answers for those specific patches.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot