Originally used versionator functions with the assumption it would
always have it from kernel-2.eclass; switch to eapi7-ver and add
explicit inheritance.
Cherry-picked from https://github.com/gentoo/gentoo/pull/9064 to fix
issue revealed by commit
c6b150836dfef848e51ec2cce801b12daf2c77b1.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
ETYPE="sources"
# Inherit Eclasses
-inherit kernel-2 eutils
+inherit eapi7-ver eutils kernel-2
detect_version
# Version Data
F_KV="${PVR}"
-BASE_KV="$(get_version_component_range 1-2).0"
+BASE_KV="$(ver_cut 1-2).0"
[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}"
# Portage Vars
ETYPE="sources"
# Inherit Eclasses
-inherit kernel-2 eutils
+inherit eapi7-ver eutils kernel-2
detect_version
# EPATCH Vars
# Version Data
F_KV="${PVR}"
-BASE_KV="$(get_version_component_range 1-2).0"
+BASE_KV="$(ver_cut 1-2).0"
[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}"
# Portage Vars
ETYPE="sources"
# Inherit Eclasses
-inherit kernel-2 eutils
+inherit eapi7-ver eutils kernel-2
detect_version
# Version Data
F_KV="${PVR}"
-BASE_KV="$(get_version_component_range 1-2).0"
+BASE_KV="$(ver_cut 1-2).0"
[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}"
# Portage Vars