net-analyzer/raddump: update EAPI 7 -> 8, port to C23

Closes: https://bugs.gentoo.org/968883
Signed-off-by: NHOrus <jy6x2b32pie9@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@gentoo.org>
This commit is contained in:
NHOrus
2026-02-08 00:02:41 +03:00
committed by Sam James
parent b15de83cf0
commit a2a68f5729
2 changed files with 41 additions and 0 deletions
@@ -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
@@ -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
}