Gentoo Archives: gentoo-dev

From: Mike Pagano <mpagano@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Handle upstream rc kernel file type and, file location change for versions >= 4.12
Date: Wed, 17 May 2017 23:13:48
Message-Id: 04447c28-c303-61f2-faa4-61b4a23dc879@gentoo.org
1 For the latest rc kernel release, (4.12-rc1), upstream has decided to
2 change the way the patch is distributed.
3 The patch now resides in a git repository and is no longer compressed.
4
5 Some discussion can be found here[1] if one is interested. They could
6 reverse this decision.
7
8 This patch handles the change for rc kernels >= 4.12.
9
10
11 [1] https://lkml.org/lkml/2017/5/13/182
12
13 Signed-off-by: Mike Pagano <mpagano@g.o>
14 ---
15 eclass/kernel-2.eclass | 16 +++++++++++++---
16 1 file changed, 13 insertions(+), 3 deletions(-)
17
18 diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
19 index db4a3bf72..52749cda9 100644
20 --- a/eclass/kernel-2.eclass
21 +++ b/eclass/kernel-2.eclass
22 @@ -506,10 +506,20 @@ detect_version() {
23 OKV_DICT=(["2"]="${KV_MAJOR}.$((${KV_PATCH_ARR} - 1))" ["3"]="2.6.39"
24 ["4"]="3.19")
25
26 if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; then
27 +
28 OKV=${K_BASE_VER:-$OKV_DICT["${KV_MAJOR}"]}
29 - KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
30 - ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
31 - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
32 +
33 + # as of 12/5/2017, the rc patch is no longer offered as a compressed
34 + # file, and no longer is it mirrored on kernel.org
35 + if [[ ${KV_MAJOR} -ge 4 ]] && [[ ${KV_PATCH} -ge 12 ]]; then
36 + KERNEL_URI="https://git.kernel.org/torvalds/p/v${KV}/v${OKV} ->
37 patch-${KV}
38 + ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
39 + UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}"
40 + else
41 + KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
42 + ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
43 + UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
44 + fi
45 fi
46
47 if [[ ${RELEASETYPE} == -git ]]; then
48 --
49 2.13.0
50 Mike Pagano
51 Gentoo Developer - Kernel Project
52 Gentoo Sources - Lead
53 E-Mail : mpagano@g.o
54 GnuPG FP : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137
55 Public Key :
56 http://http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies