On 05/17/2017 07:13 PM, Mike Pagano wrote:
> For the latest rc kernel release, (4.12-rc1), upstream has decided to
> change the way the patch is distributed.
> The patch now resides in a git repository and is no longer compressed.
> 
> Some discussion can be found here[1] if one is interested. They could
> reverse this decision.
> 
> This patch handles the change for rc kernels >= 4.12.
> 
> 
> [1] https://lkml.org/lkml/2017/5/13/182
> 
> Signed-off-by: Mike Pagano <mpag...@gentoo.org>
> ---
>  eclass/kernel-2.eclass | 16 +++++++++++++---
>  1 file changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
> index db4a3bf72..52749cda9 100644
> --- a/eclass/kernel-2.eclass
> +++ b/eclass/kernel-2.eclass
> @@ -506,10 +506,20 @@ detect_version() {
>               OKV_DICT=(["2"]="${KV_MAJOR}.$((${KV_PATCH_ARR} - 1))" 
> ["3"]="2.6.39"
> ["4"]="3.19")
> 
>               if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; 
> then
> +
>                       OKV=${K_BASE_VER:-$OKV_DICT["${KV_MAJOR}"]}
> -                     
> KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
> -                                             
> ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
> -                     UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
> +
> +                     # as of 12/5/2017, the rc patch is no longer offered as 
> a compressed
> +                     # file, and no longer is it mirrored on kernel.org
> +                     if [[ ${KV_MAJOR} -ge 4 ]] && [[ ${KV_PATCH} -ge 12 ]]; 
> then
> +                             
> KERNEL_URI="https://git.kernel.org/torvalds/p/v${KV}/v${OKV} ->
> patch-${KV}
> +                                                     
> ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
> +                             
> UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}"
> +                     else
> +                             
> KERNEL_URI="${KERNEL_BASE_URI}/testing/patch-${CKV//_/-}.xz
> +                                                     
> ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
> +                             
> UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.xz"
> +                     fi
>               fi
> 
>               if [[ ${RELEASETYPE} == -git ]]; then
> 

Pushed.

-- 
Mike Pagano
Gentoo Developer - Kernel Project
Gentoo Sources - Lead
E-Mail     : mpag...@gentoo.org
GnuPG FP   : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137
Public Key :
http://http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to