Skip to contentSkip to conversation

package/cdrkit: add patch to fix CMake 4.0 build issue

PATCH In review Thomas Petazzoni via buildroot 2 participants 2 messages May 16, 2025 – May 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/

---
 ...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
package/cdrkit/0005-CMakeLists.txt-add-cmake_minimum_required.patch new file +25 -0
new file mode 100644
index 0000000000..bbb652ae32
@@ -0,0 +1,25 @@
+From 055130476b2ae349ab00b5cc5958d02da2fc2983 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <[email protected]>
+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 <[email protected]>
+---
+ 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
+
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines · Thomas Petazzoni via buildroot

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.

Quoted 6 lines

Fixes:

https://autobuild.buildroot.org/results/3412e47836b54928a55c12b46549d6307ab623e7/

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot