commit: a2a68f57293fbb032ccce1d0c92be29ba9252769 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Feb 7 21:02:41 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 15:55:39 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2a68f57
net-analyzer/raddump: update EAPI 7 -> 8, port to C23 Closes: https://bugs.gentoo.org/968883 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Part-of: https://github.com/gentoo/gentoo/pull/45674 Closes: https://github.com/gentoo/gentoo/pull/45674 Signed-off-by: Sam James <sam <AT> gentoo.org> .../raddump/files/raddump-0.3.1-cast-pointer.patch | 17 +++++++++++++++ net-analyzer/raddump/raddump-0.3.1-r1.ebuild | 24 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/net-analyzer/raddump/files/raddump-0.3.1-cast-pointer.patch b/net-analyzer/raddump/files/raddump-0.3.1-cast-pointer.patch new file mode 100644 index 000000000000..0c29d02e6a6d --- /dev/null +++ b/net-analyzer/raddump/files/raddump-0.3.1-cast-pointer.patch @@ -0,0 +1,17 @@ +https://bugs.gentoo.org/968883 +Fix to permit compilation with GCC15/in C23 context. +Code doesn't move `struct pktrecord p` around, and program is single-threaded +so it is safe to cast referenced address to const. +--- a/pktrecord.c ++++ b/pktrecord.c +@@ -169,7 +169,7 @@ + + #ifdef HAVE_PCAP_NEXT_EX + if (pcap_next_ex(ph->pcap_handle, &(ph->pcap_hdr), +- &(p->pkt_data)) != 1) return 0; ++ (const unsigned char **)&(p->pkt_data)) != 1) return 0; + #else + /* older version of libpcap */ + p->pkt_data = (unsigned char *)pcap_next(ph->pcap_handle, ph->pcap_hdr); +Only in raddump-0.3.1: pktrecord.o +Only in raddump-0.3.1: raddump diff --git a/net-analyzer/raddump/raddump-0.3.1-r1.ebuild b/net-analyzer/raddump/raddump-0.3.1-r1.ebuild new file mode 100644 index 000000000000..2e4946c8121a --- /dev/null +++ b/net-analyzer/raddump/raddump-0.3.1-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="RADIUS packet interpreter" +HOMEPAGE="https://sourceforge.net/projects/raddump/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=">=net-analyzer/tcpdump-3.8.3-r1" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${P}-cast-pointer.patch" ) + +src_prepare() { + default + eautoreconf +}
