commit:     6794a88c44a772e273d081b4b5d6212aaef81d1e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  5 23:50:50 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 00:33:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6794a88c

net-analyzer/pinger: fix build with upcoming clang16

Closes: https://bugs.gentoo.org/870871
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-analyzer/pinger/files/pinger-0.33-clang16.patch | 8 ++++++++
 net-analyzer/pinger/pinger-0.33-r1.ebuild           | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/pinger/files/pinger-0.33-clang16.patch 
b/net-analyzer/pinger/files/pinger-0.33-clang16.patch
new file mode 100644
index 000000000000..1a6fe6cf03da
--- /dev/null
+++ b/net-analyzer/pinger/files/pinger-0.33-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870871
+--- a/src/interface_ncurses.c
++++ b/src/interface_ncurses.c
+@@ -41,3 +41,3 @@
+  * characters */
+-static nr_print_ull(char *c, int max_chars, unsigned long long l)
++static int nr_print_ull(char *c, int max_chars, unsigned long long l)
+ {

diff --git a/net-analyzer/pinger/pinger-0.33-r1.ebuild 
b/net-analyzer/pinger/pinger-0.33-r1.ebuild
index 32bfd97f82a2..38ed420ff7df 100644
--- a/net-analyzer/pinger/pinger-0.33-r1.ebuild
+++ b/net-analyzer/pinger/pinger-0.33-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,6 +35,7 @@ DOCS=( AUTHORS BUGS ChangeLog NEWS README )
 PATCHES=(
        "${FILESDIR}"/${P}-gentoo.patch
        "${FILESDIR}"/${P}-musl-int-types.patch
+       "${FILESDIR}"/${P}-clang16.patch
 )
 
 src_prepare() {

Reply via email to