Clean-up code needed for deprecated EAPIs (EAPI < 4)
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
eclass/linux-mod.eclass | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 496b9c98b..3aabe7e9d 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -7,7 +7,7 @@
# @AUTHOR:
# John Mylchreest <johnm@gentoo.org>,
# Stefan Schweizer <genstef@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7
+# @SUPPORTED_EAPIS: 6 7 8
# @PROVIDES: linux-info
# @BLURB: It provides the functionality required to install external modules against a kernel source tree.
# @DESCRIPTION:
@@ -150,7 +150,7 @@
# It's a read-only variable. It contains the extension of the kernel modules.
case ${EAPI:-0} in
- [567]) inherit eutils ;;
+ [678]) inherit eutils ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -603,11 +603,6 @@ linux-mod_pkg_setup() {
local is_bin="${MERGE_TYPE}"
# If we are installing a binpkg, take a different path.
- # use MERGE_TYPE if available (eapi>=4); else use non-PMS EMERGE_FROM (eapi<4)
- if has ${EAPI} 0 1 2 3; then
- is_bin=${EMERGE_FROM}
- fi
-
if [[ ${is_bin} == binary ]]; then
linux-mod_pkg_setup_binary
return
--
2.34.1
On 2/10/22 15:41, Anna Vyalkova wrote:
eutils.eclass doesn't suport EAPI 8
Thanks for the catch. Fixed and committed.
- [678]) inherit eutils ;;
+ [67]) inherit eutils ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
On 2022-02-10 14:40, Mike Pagano wrote:
Clean-up code needed for deprecated EAPIs (EAPI < 4)
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
eclass/linux-mod.eclass | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 496b9c98b..3aabe7e9d 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -7,7 +7,7 @@
# @AUTHOR:
# John Mylchreest <johnm@gentoo.org>,
# Stefan Schweizer <genstef@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7
+# @SUPPORTED_EAPIS: 6 7 8
# @PROVIDES: linux-info
# @BLURB: It provides the functionality required to install external modules against a kernel source tree.
# @DESCRIPTION:
@@ -150,7 +150,7 @@
# It's a read-only variable. It contains the extension of the kernel modules.
case ${EAPI:-0} in
- [567]) inherit eutils ;;
+ [678]) inherit eutils ;;
eutils.eclass doesn't suport EAPI 8
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -603,11 +603,6 @@ linux-mod_pkg_setup() {
local is_bin="${MERGE_TYPE}"
# If we are installing a binpkg, take a different path.
- # use MERGE_TYPE if available (eapi>=4); else use non-PMS EMERGE_FROM (eapi<4)
- if has ${EAPI} 0 1 2 3; then
- is_bin=${EMERGE_FROM}
- fi
-
if [[ ${is_bin} == binary ]]; then
linux-mod_pkg_setup_binary
return
--
2.34.1
On Sat, Feb 12, 2022 at 02:52:09PM -0500, Mike wrote:
On 2/10/22 15:41, Anna Vyalkova wrote:
eutils.eclass doesn't suport EAPI 8
Thanks for the catch. Fixed and committed.
It'd be good not to go too fast with this, new version wasn't reviewed.
- [678]) inherit eutils ;;
+ [67]) inherit eutils ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
Now it dies on EAPI=8, which thankfully is not harmful given no
ebuilds use it yet.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 94:18:06 |
Calls: | 6,697 |
Calls today: | 2 |
Files: | 12,232 |
Messages: | 5,348,929 |