summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-02-13 14:56:25 +0800
committerKhem Raj <raj.khem@gmail.com>2025-02-12 23:45:35 -0800
commit39a89a4b883102a7c4339fd0a91a44a7f8d81eff (patch)
treeed174cdc443ff6a6892b5e67aa18f2ee3444d8c1
parentf6352cd450257f9d95865773528eb9c7d0fa026e (diff)
downloadmeta-openembedded-39a89a4b883102a7c4339fd0a91a44a7f8d81eff.tar.gz
zabbix: upgrade 6.2.7 -> 6.4.21
0001-initialize-msghdr-portably.patch removed since it's included in 6.4.21 releasenote: https://www.zabbix.com/rn/rn6.4.21 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch52
-rw-r--r--meta-oe/recipes-connectivity/zabbix/zabbix_6.4.21.bb (renamed from meta-oe/recipes-connectivity/zabbix/zabbix_6.2.7.bb)5
2 files changed, 2 insertions, 55 deletions
diff --git a/meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch b/meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch
deleted file mode 100644
index a7a1dc1986..0000000000
--- a/meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch
+++ /dev/null
@@ -1,52 +0,0 @@
1From 37b662cf44e14b33e93759d4b129d23095b41372 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 23:55:02 -0700
4Subject: [PATCH] initialize msghdr portably
5
6on linux we have musl as an option for system C library and current
7initialization assumes the structure to be same as glibc, therefore
8initialize the elements of structure instead, so it can work on both
9glibc and musl.
10
11Fixes
12net.c:115:79: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
13 struct msghdr s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0};
14 ^~~~
15
16Upstream-Status: Submitted [https://github.com/zabbix/zabbix/pull/77]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 src/libs/zbxsysinfo/linux/net.c | 12 ++++++++++--
20 1 file changed, 10 insertions(+), 2 deletions(-)
21
22diff --git a/src/libs/zbxsysinfo/linux/net.c b/src/libs/zbxsysinfo/linux/net.c
23index 1425a3604d..98f03de0dd 100644
24--- a/src/libs/zbxsysinfo/linux/net.c
25+++ b/src/libs/zbxsysinfo/linux/net.c
26@@ -114,13 +114,21 @@ static int find_tcp_port_by_state_nl(unsigned short port, int state, int *found)
27
28 struct sockaddr_nl s_sa = { AF_NETLINK, 0, 0, 0 };
29 struct iovec s_io[1] = { { &request, sizeof(request) } };
30- struct msghdr s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0};
31+ struct msghdr s_msg = { 0 };
32+ s_msg.msg_name = (void *)&s_sa;
33+ s_msg.msg_namelen = sizeof(struct sockaddr_nl);
34+ s_msg.msg_iov = s_io;
35+ s_msg.msg_iovlen = 1;
36
37 char buffer[BUFSIZ] = { 0 };
38
39 struct sockaddr_nl r_sa = { AF_NETLINK, 0, 0, 0 };
40 struct iovec r_io[1] = { { buffer, BUFSIZ } };
41- struct msghdr r_msg = { (void *)&r_sa, sizeof(struct sockaddr_nl), r_io, 1, NULL, 0, 0};
42+ struct msghdr r_msg = { 0 };
43+ r_msg.msg_name = (void *)&r_sa;
44+ r_msg.msg_namelen = sizeof(struct sockaddr_nl);
45+ r_msg.msg_iov = r_io;
46+ r_msg.msg_iovlen = 1;
47
48 struct nlmsghdr *r_hdr;
49
50--
512.37.3
52
diff --git a/meta-oe/recipes-connectivity/zabbix/zabbix_6.2.7.bb b/meta-oe/recipes-connectivity/zabbix/zabbix_6.4.21.bb
index 46c09a02a5..4bfdecbf6d 100644
--- a/meta-oe/recipes-connectivity/zabbix/zabbix_6.2.7.bb
+++ b/meta-oe/recipes-connectivity/zabbix/zabbix_6.4.21.bb
@@ -23,12 +23,11 @@ DEPENDS = "libevent libpcre openldap virtual/libiconv zlib"
23 23
24PACKAGE_ARCH = "${MACHINE_ARCH}" 24PACKAGE_ARCH = "${MACHINE_ARCH}"
25 25
26SRC_URI = "https://cdn.zabbix.com/zabbix/sources/stable/6.2/${BPN}-${PV}.tar.gz \ 26SRC_URI = "https://cdn.zabbix.com/zabbix/sources/stable/6.4/${BPN}-${PV}.tar.gz \
27 file://0001-Fix-configure.ac.patch \ 27 file://0001-Fix-configure.ac.patch \
28 file://0001-initialize-msghdr-portably.patch \
29 file://zabbix-agent.service \ 28 file://zabbix-agent.service \
30" 29"
31SRC_URI[sha256sum] = "6d423810667b948ed22052d9aa84a035e2d4b92cbe8efdb669cac529806b722d" 30SRC_URI[sha256sum] = "527010dbd45cf204dcd3b38e82df696b908b74f38e8d1ab9bbbb1292e784f394"
32 31
33inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd 32inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd
34 33