Bug: https://bugs.gentoo.org/953770
Signed-off-by: Mike Gilbert <[email protected]>
---
 eclass/kernel-2.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index c60fcb04dd73..9d0e83874c1f 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: kernel-2.eclass
@@ -1523,8 +1523,10 @@ kernel-2_pkg_postinst() {
 # if necessary
 
 kernel-2_pkg_setup() {
+       if [[ -n ${KERNEL_ABI} ]]; then
+               ABI="${KERNEL_ABI}"
+       fi
 
-       ABI="${KERNEL_ABI}"
        if [[ ${ETYPE} != sources && ${ETYPE} != headers ]]; then
                eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or 
\"headers\""
                die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or 
\"headers\""
-- 
2.50.0


Reply via email to