[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 0/4] dist-kernel: Improved kernel version logic, take two
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2022-10-26 11:31:36
Message-ID: 20221026113140.3213-1-mgorny () gentoo ! org
[Download RAW message or body]

Hi,

The previous attempt to improve version handling in dist-kernel eclasses
turned out not to work for live ebuilds.  Let's try a different approach
that:

1) uses ${PV}${KV_LOCALVERSION} for /usr/src/linux-* directory
   (i.e. "6.0_rc1-gentoo-dist" or "5.15.9999-dist") because it's
   the simplest approach

2) grabs the version from the "release" file for /lib/modules directory
   (i.e. "6.0.0-rc1-gentoo-dist" or "5.15.74-dist") because that should
   easily handle all the corner cases, including live ebuilds and custom
   configs

3) uses the transformed version for the pkg_preinst() version check
   in non-live ebuilds because that should be good enough to verify
   that we did not fail to bump genpatches version


Michał Górny (4):
  kernel-build.eclass: Revert "Respect KV_FULL"
  kernel-install.eclass: Revert "Add KV_FULL [...]"
  kernel-install.eclass: Account for PV/KV mismatch
  kernel-build.eclass: Account for PV/KV mismatch

 eclass/kernel-build.eclass   | 45 ++++++++++-------
 eclass/kernel-install.eclass | 93 ++++++++++++++++++++----------------
 2 files changed, 78 insertions(+), 60 deletions(-)

-- 
2.38.1

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic