diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-23 11:00:17 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-23 15:03:43 -0700 |
commit | 977d61c936cecdc98f4d3879cc6e741a474b8079 (patch) | |
tree | 6fc8ca049df42c1a6cfb5973aa86a1a20683f3ad | |
parent | 29b57802c6fa372bbb8a2e12cd57fbb7c9c80ce6 (diff) | |
download | meta-openembedded-977d61c936cecdc98f4d3879cc6e741a474b8079.tar.gz |
ettercap: Fix build with libcurl >= 8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/ettercap/ettercap/0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch | 38 | ||||
-rw-r--r-- | meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb | 3 |
2 files changed, 40 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ettercap/ettercap/0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch b/meta-networking/recipes-support/ettercap/ettercap/0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch new file mode 100644 index 0000000000..82456c2f96 --- /dev/null +++ b/meta-networking/recipes-support/ettercap/ettercap/0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 40534662043b7d831d1f6c70448afa9d374a9b63 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 23 Mar 2023 10:23:14 -0700 | ||
4 | Subject: [PATCH] sslstrip: Enhance the libcurl version check to consider | ||
5 | version 8+ | ||
6 | |||
7 | Lately curl has released version 8 and hence LIBCURL_VERSION_MAJOR is | ||
8 | reset to 0, current check assumes major version to be 7 at max and hence | ||
9 | on systems with libcurl 8+ this check breaks and build fails | ||
10 | |||
11 | Fixes | ||
12 | |||
13 | TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/ettercap/0.8.3.1-r0/git/plug-ins/sslstrip/sslstrip.c:57:2: error: libcurl 7.26.0 or up is needed | ||
14 | ^ | ||
15 | 1 error generated. | ||
16 | |||
17 | Upstream-Status: Submitted [https://github.com/Ettercap/ettercap/pull/1221] | ||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | plug-ins/sslstrip/sslstrip.c | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/plug-ins/sslstrip/sslstrip.c b/plug-ins/sslstrip/sslstrip.c | ||
24 | index 327bf58a..d9b67c8b 100644 | ||
25 | --- a/plug-ins/sslstrip/sslstrip.c | ||
26 | +++ b/plug-ins/sslstrip/sslstrip.c | ||
27 | @@ -51,7 +51,7 @@ | ||
28 | |||
29 | #include <curl/curl.h> | ||
30 | |||
31 | -#if (LIBCURL_VERSION_MAJOR < 7) || (LIBCURL_VERSION_MINOR < 26) | ||
32 | +#if (LIBCURL_VERSION_MAJOR < 7) || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 26) | ||
33 | #error libcurl 7.26.0 or up is needed | ||
34 | #endif | ||
35 | |||
36 | -- | ||
37 | 2.40.0 | ||
38 | |||
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 b0958e6975..6c07223b31 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 | |||
@@ -20,7 +20,8 @@ DEPENDS += "ethtool \ | |||
20 | 20 | ||
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 | 25 | ||
25 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" | 26 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" |
26 | 27 | ||