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