• [gentoo-dev] [PATCH 2/3] kernel-install.eclass: Add KV_FULL for "upstre

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun Oct 16 06:50:01 2022
    Add a KV_FULL variable that defaults to the kernel version derived
    from PV, and can be used by ebuilds to override the version
    if necessary.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/kernel-install.eclass | 40 +++++++++++++++++++++---------------
    1 file changed, 23 insertions(+), 17 deletions(-)

    diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
    index dc77cb514b1a..06260ed61f23 100644
    --- a/eclass/kernel-install.eclass
    +++ b/eclass/kernel-install.eclass
    @@ -14,20 +14,13 @@
    # kinds of Distribution Kernel packages, including both kernels built
    # from source and distributed as binaries. The eclass relies on the
    # ebuild installing a subset of built kernel tree into
    -# /usr/src/linux-${PV} containing the kernel image in its standard
    -# location and System.map.
    +# /usr/src/linux-${KV_FULL}${KV_LOCALVERSION} containing the kernel
    +# image in its standard location and System.map.
    #
    # The eclass exports src_test, pkg_postinst and pkg_postrm.
    # Additionally, the inherited mount-boot eclass exports pkg_pretend.
    # It also stubs out pkg_preinst and pkg_prerm defined by mount-boot.

    -# @ECLASS_VARIABLE: KV_LOCALVERSION
    -# @DEFAULT_UNSET