• [gentoo-dev] [PATCH 2/2] linux-mod.eclass: do not clobber ABI when KERN

    From Mike Gilbert@21:1/5 to All on Mon Jul 7 21:20:01 2025
    Bug: https://bugs.gentoo.org/953770
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    eclass/linux-mod.eclass | 6 ++++--
    1 file changed, 4 insertions(+), 2 deletions(-)

    diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
    index c71ace53aa00..e086ff0270a7 100644
    --- a/eclass/linux-mod.eclass
    +++ b/eclass/linux-mod.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2023 Gentoo Authors
    +# Copyright 1999-2025 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: linux-mod.eclass
    @@ -605,7 +605,9 @@ linux-mod_src_compile() {

    local modulename libdir srcdir objdir i n myABI="${ABI}"
    set_arch_to_kernel
    - ABI="${KERNEL_ABI}"
    + if [[ -n ${KERNEL_ABI} ]]; then
    + ABI="${KERNEL_ABI}"
    + fi

    [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"

    --
    2.50.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)