Gentoo Archives: gentoo-dev

From: Alice Ferrazzi <alicef@g.o>
To: gentoo-dev@l.g.o, Mike Pagano <mpagano@g.o>
Subject: Re: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Handle upstream rc kernel file type and, file location change for versions >= 4.12
Date: Thu, 18 May 2017 09:05:45
Message-Id: CANWzcUpZVCAT7OOLoCCaO5GB40DPp-HNGKYi7Kh7-=goSng3Fg@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Handle upstream rc kernel file type and, file location change for versions >= 4.12 by Mike Pagano
1 Hello Mike,
2
3
4
5 On Thu, May 18, 2017 at 8:13 AM, Mike Pagano <mpagano@g.o> wrote:
6 > For the latest rc kernel release, (4.12-rc1), upstream has decided to
7 > change the way the patch is distributed.
8 > The patch now resides in a git repository and is no longer compressed.
9 >
10 > Some discussion can be found here[1] if one is interested. They could
11 > reverse this decision.
12
13 >>One thing worth noting - I haven't uploaded diffs or tar-balls for
14 >>this rc. Those should now be automagically generated by kernel.org for
15 >>the rc's, but that also means that they won't be signed by my key. If
16 >>you really care about signing, get the git repo and check the tag.
17
18 so maybe they will start to auto-generate the tar-balls and diff ?
19 looks like a bit step for kernel.org
20
21
22 >
23 > This patch handles the change for rc kernels >= 4.12.
24 >
25 >
26 > [1] https://lkml.org/lkml/2017/5/13/182
27 >
28 > Signed-off-by: Mike Pagano <mpagano@g.o>
29 > ---
30 > eclass/kernel-2.eclass | 16 +++++++++++++---
31 > 1 file changed, 13 insertions(+), 3 deletions(-)
32 >
33 > diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
34 > index db4a3bf72..52749cda9 100644
35 > --- a/eclass/kernel-2.eclass
36 > +++ b/eclass/kernel-2.eclass
37 > @@ -506,10 +506,20 @@ detect_version() {
38 > OKV_DICT=(["2"]="${KV_MAJOR}.$((${KV_PATCH_ARR} - 1))" ["3"]="2.6.39"
39 > ["4"]="3.19")
40 >
41 > if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; then
42 > +
43 > OKV=${K_BASE_VER:-$OKV_DICT["${KV_MAJOR}"]}
44 > - KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
45 > - ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
46 > - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
47 > +
48 > + # as of 12/5/2017, the rc patch is no longer offered as a compressed
49 > + # file, and no longer is it mirrored on kernel.org
50 > + if [[ ${KV_MAJOR} -ge 4 ]] && [[ ${KV_PATCH} -ge 12 ]]; then
51 > + KERNEL_URI="https://git.kernel.org/torvalds/p/v${KV}/v${OKV} ->
52 > patch-${KV}
53 > + ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
54 > + UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}"
55 > + else
56 > + KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
57 > + ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
58 > + UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
59 > + fi
60 > fi
61 >
62 > if [[ ${RELEASETYPE} == -git ]]; then
63
64
65 looks ok for me.
66
67 > --
68 > 2.13.0
69 > Mike Pagano
70 > Gentoo Developer - Kernel Project
71 > Gentoo Sources - Lead
72 > E-Mail : mpagano@g.o
73 > GnuPG FP : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137
74 > Public Key :
75 > http://http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index
76 >
77 >
78
79
80
81 --
82 アリス フェッラッツィ
83 Alice Ferrazzi
84
85 Gentoo Kernel Project Leader
86 Mail: Alice Ferrazzi <alicef@g.o>
87 PGP: 2E4E 0856 461C 0585 1336 F496 5621 A6B2 8638 781A