public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 0/4] dist-kernel: Improved kernel version logic, take two
@ 2022-10-26 11:31 Michał Górny
  2022-10-26 11:31 ` [gentoo-dev] [PATCH 1/4] kernel-build.eclass: Revert "Respect KV_FULL" Michał Górny
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michał Górny @ 2022-10-26 11:31 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-26 11:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 11:31 [gentoo-dev] [PATCH 0/4] dist-kernel: Improved kernel version logic, take two Michał Górny
2022-10-26 11:31 ` [gentoo-dev] [PATCH 1/4] kernel-build.eclass: Revert "Respect KV_FULL" Michał Górny
2022-10-26 11:31 ` [gentoo-dev] [PATCH 2/4] kernel-install.eclass: Revert "Add KV_FULL [...]" Michał Górny
2022-10-26 11:31 ` [gentoo-dev] [PATCH 3/4] kernel-install.eclass: Account for PV/KV mismatch Michał Górny
2022-10-26 11:31 ` [gentoo-dev] [PATCH 4/4] kernel-build.eclass: " Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox