1 |
Hi, |
2 |
|
3 |
The previous attempt to improve version handling in dist-kernel eclasses |
4 |
turned out not to work for live ebuilds. Let's try a different approach |
5 |
that: |
6 |
|
7 |
1) uses ${PV}${KV_LOCALVERSION} for /usr/src/linux-* directory |
8 |
(i.e. "6.0_rc1-gentoo-dist" or "5.15.9999-dist") because it's |
9 |
the simplest approach |
10 |
|
11 |
2) grabs the version from the "release" file for /lib/modules directory |
12 |
(i.e. "6.0.0-rc1-gentoo-dist" or "5.15.74-dist") because that should |
13 |
easily handle all the corner cases, including live ebuilds and custom |
14 |
configs |
15 |
|
16 |
3) uses the transformed version for the pkg_preinst() version check |
17 |
in non-live ebuilds because that should be good enough to verify |
18 |
that we did not fail to bump genpatches version |
19 |
|
20 |
|
21 |
Michał Górny (4): |
22 |
kernel-build.eclass: Revert "Respect KV_FULL" |
23 |
kernel-install.eclass: Revert "Add KV_FULL [...]" |
24 |
kernel-install.eclass: Account for PV/KV mismatch |
25 |
kernel-build.eclass: Account for PV/KV mismatch |
26 |
|
27 |
eclass/kernel-build.eclass | 45 ++++++++++------- |
28 |
eclass/kernel-install.eclass | 93 ++++++++++++++++++++---------------- |
29 |
2 files changed, 78 insertions(+), 60 deletions(-) |
30 |
|
31 |
-- |
32 |
2.38.1 |