diff options
Diffstat (limited to 'meta-networking/recipes-support/ntopng')
3 files changed, 35 insertions, 4 deletions
diff --git a/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch b/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch new file mode 100644 index 0000000000..eefd4e1ab2 --- /dev/null +++ b/meta-networking/recipes-support/ntopng/files/0001-Follow-rrd-post-1.8-change.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a3bd9efe78f9c381f19b99c8ceb7f52b4c2a52b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
3 | Date: Wed, 5 Jun 2024 09:40:17 +0300 | ||
4 | Subject: [PATCH] Follow rrd post-1.8 change | ||
5 | |||
6 | Git version of rrdtool has changed rrd_tune argument from char pointer | ||
7 | to const char pointer. GCC 14 is more strict regarding the pointer | ||
8 | constantness checks and errors out in such a case. Update rrd_tune | ||
9 | invokation. | ||
10 | |||
11 | Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
12 | Upstream-Status: Pending [CLA is not signed on our side] | ||
13 | --- | ||
14 | src/LuaEngineNtop.cpp | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/LuaEngineNtop.cpp b/src/LuaEngineNtop.cpp | ||
18 | index bd2de79e3021..dd00f1608f78 100644 | ||
19 | --- a/src/LuaEngineNtop.cpp | ||
20 | +++ b/src/LuaEngineNtop.cpp | ||
21 | @@ -5427,7 +5427,7 @@ static int ntop_rrd_tune(lua_State* vm) { | ||
22 | filename = argv[1]; | ||
23 | |||
24 | reset_rrd_state(); | ||
25 | - status = rrd_tune(argc, (char**)argv); | ||
26 | + status = rrd_tune(argc, (const char**)argv); | ||
27 | |||
28 | if(status != 0) { | ||
29 | char *err = rrd_get_error(); | ||
30 | -- | ||
31 | 2.39.2 | ||
32 | |||
diff --git a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb b/meta-networking/recipes-support/ntopng/ndpi_4.2.bb index 13c3398c2b..f0175167a4 100644 --- a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb +++ b/meta-networking/recipes-support/ntopng/ndpi_4.2.bb | |||
@@ -5,7 +5,7 @@ inspection. Based on OpenDPI it includes ntop extensions" | |||
5 | SECTION = "libdevel" | 5 | SECTION = "libdevel" |
6 | DEPENDS = "libpcap json-c" | 6 | DEPENDS = "libpcap json-c" |
7 | RDEPENDS:${PN} += " libpcap" | 7 | RDEPENDS:${PN} += " libpcap" |
8 | LICENSE = "GPL-3.0-only" | 8 | LICENSE = "LGPL-3.0-only" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" |
10 | 10 | ||
11 | SRCREV = "8b5c6af71b562549f8416b31803daae223e09f46" | 11 | SRCREV = "8b5c6af71b562549f8416b31803daae223e09f46" |
@@ -13,7 +13,6 @@ SRC_URI = "git://github.com/ntop/nDPI.git;branch=4.2-stable;protocol=https \ | |||
13 | file://0001-autogen.sh-not-generate-configure.patch \ | 13 | file://0001-autogen.sh-not-generate-configure.patch \ |
14 | " | 14 | " |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | ||
17 | 16 | ||
18 | inherit autotools-brokensep pkgconfig | 17 | inherit autotools-brokensep pkgconfig |
19 | 18 | ||
diff --git a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb b/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb index 110ca36866..014706893a 100644 --- a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb +++ b/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb | |||
@@ -19,10 +19,10 @@ SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=5.2-stable \ | |||
19 | file://0001-autogen.sh-generate-configure.ac-only.patch \ | 19 | file://0001-autogen.sh-generate-configure.ac-only.patch \ |
20 | file://0001-configure.ac.in-not-check-clang-on-host.patch \ | 20 | file://0001-configure.ac.in-not-check-clang-on-host.patch \ |
21 | file://0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch \ | 21 | file://0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch \ |
22 | file://0001-Follow-rrd-post-1.8-change.patch \ | ||
22 | file://ntopng.service \ | 23 | file://ntopng.service \ |
23 | " | 24 | " |
24 | 25 | ||
25 | S = "${WORKDIR}/git" | ||
26 | 26 | ||
27 | # don't use the lua under thirdparty as it supports cross compiling badly | 27 | # don't use the lua under thirdparty as it supports cross compiling badly |
28 | export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" | 28 | export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" |
@@ -34,7 +34,7 @@ inherit autotools-brokensep gettext pkgconfig systemd | |||
34 | 34 | ||
35 | do_install:append() { | 35 | do_install:append() { |
36 | install -d ${D}${systemd_unitdir}/system/ | 36 | install -d ${D}${systemd_unitdir}/system/ |
37 | install -m 0644 ${WORKDIR}/ntopng.service ${D}${systemd_unitdir}/system | 37 | install -m 0644 ${UNPACKDIR}/ntopng.service ${D}${systemd_unitdir}/system |
38 | } | 38 | } |
39 | 39 | ||
40 | FILES:${PN} += "\ | 40 | FILES:${PN} += "\ |