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 0000000000000..0c29d02e6a6dc --- /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 0000000000000..2e4946c8121a5 --- /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 +}