Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 10 Sep 2022 01:19:27
Message-Id: 1662772652.fd4bae23e8da9dae8b4a35f403ff9dd1b5d7a688.floppym@gentoo
1 commit: fd4bae23e8da9dae8b4a35f403ff9dd1b5d7a688
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 8 15:34:13 2022 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 10 01:17:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd4bae23
7
8 dist-kernel-utils.eclass: support EAPI 8
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 eclass/dist-kernel-utils.eclass | 14 ++++----------
13 1 file changed, 4 insertions(+), 10 deletions(-)
14
15 diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
16 index d192c31db273..8c1b56f41506 100644
17 --- a/eclass/dist-kernel-utils.eclass
18 +++ b/eclass/dist-kernel-utils.eclass
19 @@ -6,7 +6,7 @@
20 # Distribution Kernel Project <dist-kernel@g.o>
21 # @AUTHOR:
22 # Michał Górny <mgorny@g.o>
23 -# @SUPPORTED_EAPIS: 7
24 +# @SUPPORTED_EAPIS: 7 8
25 # @BLURB: Utility functions related to Distribution Kernels
26 # @DESCRIPTION:
27 # This eclass provides various utility functions related to Distribution
28 @@ -14,15 +14,9 @@
29
30 if [[ ! ${_DIST_KERNEL_UTILS} ]]; then
31
32 -case "${EAPI:-0}" in
33 - 0|1|2|3|4|5|6)
34 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
35 - ;;
36 - 7)
37 - ;;
38 - *)
39 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
40 - ;;
41 +case ${EAPI} in
42 + 7|8) ;;
43 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
44 esac
45
46 # @FUNCTION: dist-kernel_build_initramfs