diff options
author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-09 20:30:48 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-09 13:35:19 -0700 |
commit | 38c37d867c228d8ac1e650bf7f7186e7b89c5c69 (patch) | |
tree | 83c17a784133906bfbe11016a5499e95b3188e50 | |
parent | 95b7e24f9e516d10d6bee1bdbf99ed6c8a9a6e31 (diff) | |
download | meta-openembedded-38c37d867c228d8ac1e650bf7f7186e7b89c5c69.tar.gz |
ettercap: Add patch for CMake 4+ compatibility
Fix:
| 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.
|
|
| -- 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-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch | 54 | ||||
-rw-r--r-- | meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb | 4 |
2 files changed, 56 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch b/meta-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..70e48f7d9e --- /dev/null +++ b/meta-networking/recipes-support/ettercap/ettercap/0002-allow-build-with-cmake-4.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | From 337e790d4fc8fed00a4f62047de1bc702f06105e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
3 | Date: Wed, 9 Jul 2025 14:15:32 +0300 | ||
4 | Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ | ||
5 | compatibility | ||
6 | |||
7 | Fix: | ||
8 | |||
9 | | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | ||
10 | | Compatibility with CMake < 3.5 has been removed from CMake. | ||
11 | | | ||
12 | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | ||
13 | | to tell CMake that the project requires at least <min> but has been updated | ||
14 | | to work with policies introduced by <max> or earlier. | ||
15 | | | ||
16 | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | ||
17 | | | ||
18 | | | ||
19 | | -- Configuring incomplete, errors occurred! | ||
20 | |||
21 | Upstream-Status: Submitted [https://github.com/Ettercap/ettercap/pull/1279] | ||
22 | |||
23 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
24 | --- | ||
25 | CMakeLists.txt | 2 +- | ||
26 | cmake/Modules/FindGTK3.cmake | 2 +- | ||
27 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
30 | index 1c08875a..600bd9f4 100644 | ||
31 | --- a/CMakeLists.txt | ||
32 | +++ b/CMakeLists.txt | ||
33 | @@ -1,4 +1,4 @@ | ||
34 | -cmake_minimum_required(VERSION 2.8) | ||
35 | +cmake_minimum_required(VERSION 3.5) | ||
36 | project(ettercap C) | ||
37 | |||
38 | set(VERSION "0.8.3.1") | ||
39 | diff --git a/cmake/Modules/FindGTK3.cmake b/cmake/Modules/FindGTK3.cmake | ||
40 | index e07a4e90..f37fee1c 100644 | ||
41 | --- a/cmake/Modules/FindGTK3.cmake | ||
42 | +++ b/cmake/Modules/FindGTK3.cmake | ||
43 | @@ -351,7 +351,7 @@ endif() | ||
44 | # | ||
45 | if(GTK3_FIND_VERSION) | ||
46 | if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION) | ||
47 | - cmake_minimum_required(VERSION 2.6.2) | ||
48 | + cmake_minimum_required(VERSION 3.5) | ||
49 | endif() | ||
50 | set(GTK3_FAILED_VERSION_CHECK true) | ||
51 | if(GTK3_DEBUG) | ||
52 | -- | ||
53 | 2.43.0 | ||
54 | |||
diff --git a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb index d5dc10a889..027b6dd190 100644 --- a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb +++ b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb | |||
@@ -21,11 +21,11 @@ DEPENDS += "ethtool \ | |||
21 | RDEPENDS:${PN} += "bash ethtool libgcc" | 21 | RDEPENDS:${PN} += "bash ethtool libgcc" |
22 | 22 | ||
23 | SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \ | 23 | SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \ |
24 | file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch" | 24 | file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch \ |
25 | file://0002-allow-build-with-cmake-4.patch" | ||
25 | 26 | ||
26 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" | 27 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" |
27 | 28 | ||
28 | |||
29 | EXTRA_OECMAKE = " \ | 29 | EXTRA_OECMAKE = " \ |
30 | -DCMAKE_SKIP_RPATH=TRUE \ | 30 | -DCMAKE_SKIP_RPATH=TRUE \ |
31 | -DBUNDLED_LIBS=ON \ | 31 | -DBUNDLED_LIBS=ON \ |