net-firewall/xtables-addons: Fix kernel version detection during configure

The error seemingly wasn't fatal, but it didn't look good.

Closes: https://bugs.gentoo.org/957890
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2025-06-14 18:09:12 +01:00
parent c589769491
commit 857488cb6b

View File

@@ -4,7 +4,7 @@
EAPI=8
MODULES_OPTIONAL_IUSE="+modules"
inherit flag-o-matic linux-mod-r1
inherit flag-o-matic linux-mod-r1 toolchain-funcs
XTABLES_MODULES=(
account chaos delude dhcpmac dnetmap echo ipmark logmark
@@ -82,6 +82,9 @@ src_configure() {
--prefix="${EPREFIX:-/}"
--libexecdir="${EPREFIX}"/$(get_libdir)
$(usex modules --with-kbuild="${KV_OUT_DIR}" --without-kbuild)
# Needed for cross-compiling and to avoid a clash with the Gentoo ARCH.
ARCH="$(tc-arch-kernel)"
)
econf "${econfargs[@]}"