diff options
| author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-08 01:54:03 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-07-08 23:40:33 -0700 |
| commit | 5acdf49830ad7f5650eb4622f25025c403084f1f (patch) | |
| tree | c4b08cf6deb3aabafa02a807453758fb934da861 | |
| parent | 021a2cd28666c99291dd09baf7cbe2fcc25945a5 (diff) | |
| download | meta-openembedded-5acdf49830ad7f5650eb4622f25025c403084f1f.tar.gz | |
cdrkit: Add patch 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!
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb index 4b57957cfc..16b15f745e 100644 --- a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb +++ b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ | |||
| 14 | file://0001-add-new-option-eltorito-platform.patch \ | 14 | file://0001-add-new-option-eltorito-platform.patch \ |
| 15 | file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ | 15 | file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ |
| 16 | file://fix-incompatible-pointer-type-error.patch \ | 16 | file://fix-incompatible-pointer-type-error.patch \ |
| 17 | file://0003-allow-build-with-cmake-4.patch \ | ||
| 17 | " | 18 | " |
| 18 | SRC_URI:append:class-nativesdk = " \ | 19 | SRC_URI:append:class-nativesdk = " \ |
| 19 | file://0001-install-netscsid-to-bin-for-nativesdk.patch \ | 20 | file://0001-install-netscsid-to-bin-for-nativesdk.patch \ |
diff --git a/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch b/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..bcab44a5a4 --- /dev/null +++ b/meta-oe/recipes-multimedia/cdrkit/files/0003-allow-build-with-cmake-4.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From 4ce4c135f83f9d7894ccbb0901391f5cbf2b1935 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
| 3 | Date: Mon, 7 Jul 2025 21:34:32 +0300 | ||
| 4 | Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ | ||
| 5 | compatibility | ||
| 6 | |||
| 7 | | CMake Error in CMakeLists.txt: | ||
| 8 | | No cmake_minimum_required command is present. A line of code such as | ||
| 9 | | | ||
| 10 | | cmake_minimum_required(VERSION 4.0) | ||
| 11 | | | ||
| 12 | | should be added at the top of the file. The version specified may be lower | ||
| 13 | | if you wish to support older CMake versions for this project. For more | ||
| 14 | | information run "cmake --help-policy CMP0000". | ||
| 15 | | | ||
| 16 | | | ||
| 17 | | -- Configuring incomplete, errors occurred! | ||
| 18 | |||
| 19 | Upstream-Status: Pending | ||
| 20 | |||
| 21 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
| 22 | --- | ||
| 23 | CMakeLists.txt | 1 + | ||
| 24 | 1 file changed, 1 insertion(+) | ||
| 25 | |||
| 26 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 27 | index 57edba6..bdfb8bb 100644 | ||
| 28 | --- a/CMakeLists.txt | ||
| 29 | +++ b/CMakeLists.txt | ||
| 30 | @@ -1,3 +1,4 @@ | ||
| 31 | +cmake_minimum_required(VERSION 3.5) | ||
| 32 | PROJECT (cdrkit C) | ||
| 33 | SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) | ||
| 34 | |||
| 35 | -- | ||
| 36 | 2.43.0 | ||
| 37 | |||
