[Buildroot] [PATCH] package/libcuefile: fix build with CMake 4

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Dec 16 09:29:15 UTC 2025


Fixes:

  https://autobuild.buildroot.net/results/b92211c11edcbf4a0c5abe823e0deaa14133ae89/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
Upstream is completely dead, no commits for a very long time, still
using Subversion. Another option is to just drop the
package (libcuefile, musepack).
---
 ...akeLists.txt-fix-compat-with-CMake-4.patch | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/libcuefile/0003-CMakeLists.txt-fix-compat-with-CMake-4.patch

diff --git a/package/libcuefile/0003-CMakeLists.txt-fix-compat-with-CMake-4.patch b/package/libcuefile/0003-CMakeLists.txt-fix-compat-with-CMake-4.patch
new file mode 100644
index 0000000000..c1858f3fa5
--- /dev/null
+++ b/package/libcuefile/0003-CMakeLists.txt-fix-compat-with-CMake-4.patch
@@ -0,0 +1,35 @@
+From bf7598c2f5a40d16f16a9649bb6415c3594c0a45 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
+Date: Tue, 16 Dec 2025 10:26:49 +0100
+Subject: [PATCH] CMakeLists.txt: fix compat with CMake 4
+
+Fixes:
+
+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: N/A, dead
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c1e4a8b..96bf5b4 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ 
+ project(libcuefile C)
+ 
+-- 
+2.52.0
+
-- 
2.52.0



More information about the buildroot mailing list