public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/files/
Date: Sat, 14 Sep 2024 07:09:31 +0000 (UTC)	[thread overview]
Message-ID: <1726297764.5bbc65fa80b4584ead37c90e984c1bc5283d7e9b.juippis@gentoo> (raw)

commit:     5bbc65fa80b4584ead37c90e984c1bc5283d7e9b
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Aug 31 19:01:38 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Sep 14 07:09:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bbc65fa

net-analyzer/zabbix: remove unused patch

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../files/zabbix-6.4.6-clang16-build-fix.patch     | 58 ----------------------
 1 file changed, 58 deletions(-)

diff --git a/net-analyzer/zabbix/files/zabbix-6.4.6-clang16-build-fix.patch b/net-analyzer/zabbix/files/zabbix-6.4.6-clang16-build-fix.patch
deleted file mode 100644
index 4160a42ee6eb..000000000000
--- a/net-analyzer/zabbix/files/zabbix-6.4.6-clang16-build-fix.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-https://github.com/zabbix/zabbix/pull/110
-From: Brahmajit Das <brahmajit.xyz@gmail.com>
-Date: Sun, 24 Sep 2023 14:40:05 +0000
-Subject: [PATCH] Fix incompatible pointer to integer conversion initializing
-
-Makes struct members explicit.
-
-First found on Gentoo linux, with MUSL LLVM profile. Most probably due
-to newer compilers (like Clang 16 and GCC 14) have turned various errors
-on by default and we get build errors such as:
-
-```
-net.c:115:79: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
-        struct msghdr           s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0};
-                                                                                              ^~~~
-/usr/include/unistd.h:25:14: note: expanded from macro 'NULL'
-             ^~~~~~~~~~
-net.c:121:79: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
-        struct msghdr           r_msg = { (void *)&r_sa, sizeof(struct sockaddr_nl), r_io, 1, NULL, 0, 0};
-                                                                                              ^~~~
-/usr/include/unistd.h:25:14: note: expanded from macro 'NULL'
-```
-
-Bug: https://bugs.gentoo.org/897840
-Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
---- a/src/libs/zbxsysinfo/linux/net.c
-+++ b/src/libs/zbxsysinfo/linux/net.c
-@@ -112,13 +112,25 @@ static int	find_tcp_port_by_state_nl(unsigned short port, int state, int *found)
- 
- 	struct sockaddr_nl	s_sa = { AF_NETLINK, 0, 0, 0 };
- 	struct iovec		s_io[1] = { { &request, sizeof(request) } };
--	struct msghdr		s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0};
-+	struct msghdr		s_msg = { .msg_name = (void *)&s_sa,
-+								.msg_namelen = sizeof(struct sockaddr_nl),
-+								.msg_iov = s_io,
-+								.msg_iovlen = 1,
-+								.msg_control = NULL,
-+								.msg_controllen = 0,
-+								.msg_flags = 0};
- 
- 	char			buffer[BUFSIZ] = { 0 };
- 
- 	struct sockaddr_nl	r_sa = { AF_NETLINK, 0, 0, 0 };
- 	struct iovec		r_io[1] = { { buffer, BUFSIZ } };
--	struct msghdr		r_msg = { (void *)&r_sa, sizeof(struct sockaddr_nl), r_io, 1, NULL, 0, 0};
-+	struct msghdr		r_msg = { .msg_name = (void *)&r_sa,
-+								.msg_namelen = sizeof(struct sockaddr_nl),
-+								.msg_iov = r_io,
-+								.msg_iovlen = 1,
-+								.msg_control = NULL,
-+								.msg_controllen = 0,
-+								.msg_flags = 0};
- 
- 	struct nlmsghdr		*r_hdr;
- 
--- 
-2.42.0
-


             reply	other threads:[~2024-09-14  7:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-14  7:09 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-28  6:09 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/files/ Miroslav Šulc
2022-06-08  7:07 Miroslav Šulc
2022-01-13  8:06 Miroslav Šulc
2017-01-17 22:54 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1726297764.5bbc65fa80b4584ead37c90e984c1bc5283d7e9b.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox