From 0d4ca3c5fec73738cd0490dae28b8381bb20b2a1 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Fri, 16 May 2025 16:30:26 +0200 Subject: [PATCH] package/cdrkit: add patch to fix CMake 4.0 build issue CMake 4.0 requires to have a cmake_minimum_required() in CMakeLists.txt, which cdrkit doesn't have, so ths commit adds a patch adding the missing statement. We have chosen version 3.18 because that the oldest version that we expect is 3.18. From package/cmake/Config.in.host: # The minimum system cmake version we expect if 3.18 as provided by # Debian bullseye, that we use in our reference build docker image. The patch cannot be upstreamed, as cdrkit basically no longer has any upstream. Fixes: https://autobuild.buildroot.org/results/3412e47836b54928a55c12b46549d6307ab623e7/ Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- ...Lists.txt-add-cmake_minimum_required.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/cdrkit/0005-CMakeLists.txt-add-cmake_minimum_required.patch diff --git a/package/cdrkit/0005-CMakeLists.txt-add-cmake_minimum_required.patch b/package/cdrkit/0005-CMakeLists.txt-add-cmake_minimum_required.patch new file mode 100644 index 0000000000..bbb652ae32 --- /dev/null +++ b/package/cdrkit/0005-CMakeLists.txt-add-cmake_minimum_required.patch @@ -0,0 +1,25 @@ +From 055130476b2ae349ab00b5cc5958d02da2fc2983 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Fri, 16 May 2025 16:12:03 +0200 +Subject: [PATCH] CMakeLists.txt: add cmake_minimum_required() + +Using cmake_minimum_required() is now mandatory with CMake 4.0. + +Upstream: N/A, no clear upstream +Signed-off-by: Thomas Petazzoni +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 57edba6..70c6993 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,3 +1,4 @@ ++cmake_minimum_required(VERSION 3.18) + PROJECT (cdrkit C) + SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) + +-- +2.49.0 +