Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/
Date: Sat, 29 Jan 2022 20:43:26
Message-Id: 1643488991.39845e34bd7a57fbee3b584ffcae0de8917c2ada.mgorny@gentoo
1 commit: 39845e34bd7a57fbee3b584ffcae0de8917c2ada
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 19:35:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 20:43:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39845e34
7
8 sys-kernel/gentoo-kernel: Bump to 5.4.175
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/gentoo-kernel/Manifest | 2 +
13 .../gentoo-kernel/gentoo-kernel-5.4.175.ebuild | 96 ++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
17 index 1562445c7853..38e45eb304df 100644
18 --- a/sys-kernel/gentoo-kernel/Manifest
19 +++ b/sys-kernel/gentoo-kernel/Manifest
20 @@ -14,6 +14,8 @@ DIST genpatches-5.4-177.base.tar.xz 4317444 BLAKE2B e7ad5f0a561dc50a11aa3720c309
21 DIST genpatches-5.4-177.extras.tar.xz 1784 BLAKE2B e840ca0c6b2dd9399ff4f0d03e828bbb42f53528e1c13b2825c5439cbccdc36577f029caccf91690857cd6e4901cebd98cc27e2ad2d0644c7503822563f38d0c SHA512 a17abf06bb76236986b9a86f671dc60544b39fc47736aca69359e6d68699a52a3e72b1a2ebd57f78602114e9d1f5a201f37121bd6917f50c9d06e385b194cb20
22 DIST genpatches-5.4-178.base.tar.xz 4382260 BLAKE2B f43573bed5925ddad264a150c6bf7e769771cbb89ec56c0c07f73375c19386ebd15b538b12b89c9e18ad3592b1be038288f8bc4e8ee4365fe92c118d81e3a5a7 SHA512 26fec31e23bb0758ec4a5c5542868795172d7717dcb1323cb9a930cb9b60c860cd033836d9ef80ab327a85656f4a70a46a597ffdb8e9ad27f7431d1bd1944b31
23 DIST genpatches-5.4-178.extras.tar.xz 1788 BLAKE2B 23bb980b7e3fb49b1905df1febe219c3b3ad573a4757b34c4c54c7b61b6c1a175d45c873267c89d5345015c2d80761de30e52aa2e812dd10f71c6db32dcd7a22 SHA512 75c6b8d3cca3099527ef38163324cbbb8c2764c1693cbefcdcf0835bffcf500354f78813a4c625ca0eaf0d86ce6c9524aa8e4586fedf00cb662ef6960a55339d
24 +DIST genpatches-5.4-179.base.tar.xz 4388128 BLAKE2B 3620d9964110c1da10d01520e8308f4b972a9f8b1402ffde92ee57afdc9b51a465c988b2b86b8c9b384d6938cb85a2089315b0ece399b38960aedf37d1184f0c SHA512 bc399ea00e41b968d0bdb9fa6e41548e9f67694a5b5a728d7c0c289087ce1672076237034f1c4fbffba012e015d362629e1a5bfc425d8e59d39d384d694d4304
25 +DIST genpatches-5.4-179.extras.tar.xz 1784 BLAKE2B 308033aec35fab42e5ec7fbaee2d20a1897c73b270678de252ca363a6b371c6f64d465fb5386451fcd3af64f2f3afa0a1be39f90ebb85ac2dace76349b67813f SHA512 9e22e6dc2bfae27f8fea851698feec4fdd7141b0c1ba8f2cbc3e4361cdf397376cb52553de744e016cf58c5122a940fd31b6b143d355c03c374cb83388032746
26 DIST gentoo-kernel-config-5.15.5.tar.gz 4128 BLAKE2B e30fff372b0112cc05723463cb4e93de79b5b643483796402eb88a7e704706a4033af2dbab9424cf14b1d894b57fc053b969f5fbfa15cf74e30e3d045703918f SHA512 5e8c6945da5e9cfb8d20663910fc38ee36813067e1679e17bbf1dfc6fc0aa9125f1fc949d81937b297215925004e0ebfb3b55c7e707184b5ffcf23d28882113d
27 DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e359934d5054238bd096addd7965754e6708bada63398c4b315318f73130ed81c1391524388396775632248870721f1ce23f203 SHA512 225600db53532ee131dd83d10cecc97a83f4615975ff32f3f6190a15eace64707cb59490bb42940e4429f9054221b9d9a589ada443922062bb5ee18ecc42c26c
28 DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
29
30 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.175.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.175.ebuild
31 new file mode 100644
32 index 000000000000..c41d8d334c9c
33 --- /dev/null
34 +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.175.ebuild
35 @@ -0,0 +1,96 @@
36 +# Copyright 2020-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit kernel-build
42 +
43 +MY_P=linux-${PV%.*}
44 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 ))
45 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
46 +CONFIG_VER=5.4.21
47 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
48 +GENTOO_CONFIG_VER=5.4.114
49 +
50 +DESCRIPTION="Linux kernel built with Gentoo patches"
51 +HOMEPAGE="https://www.kernel.org/"
52 +SRC_URI+="
53 + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
54 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
55 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
56 + https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz
57 + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
58 + amd64? (
59 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
60 + -> kernel-x86_64.config.${CONFIG_VER}
61 + )
62 + arm64? (
63 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
64 + -> kernel-aarch64.config.${CONFIG_VER}
65 + )
66 + ppc64? (
67 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
68 + -> kernel-ppc64le.config.${CONFIG_VER}
69 + )
70 + x86? (
71 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
72 + -> kernel-i686.config.${CONFIG_VER}
73 + )"
74 +S=${WORKDIR}/${MY_P}
75 +
76 +LICENSE="GPL-2"
77 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
78 +IUSE="debug"
79 +
80 +RDEPEND="
81 + !sys-kernel/gentoo-kernel-bin:${SLOT}"
82 +BDEPEND="
83 + debug? ( dev-util/pahole )"
84 +PDEPEND="
85 + >=virtual/dist-kernel-${PV}"
86 +
87 +src_prepare() {
88 + local PATCHES=(
89 + # meh, genpatches have no directory
90 + "${WORKDIR}"/*.patch
91 + )
92 + default
93 +
94 + # prepare the default config
95 + case ${ARCH} in
96 + amd64)
97 + cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die
98 + ;;
99 + arm64)
100 + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
101 + ;;
102 + ppc)
103 + # assume powermac/powerbook defconfig
104 + # we still package.use.force savedconfig
105 + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
106 + ;;
107 + ppc64)
108 + cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
109 + ;;
110 + x86)
111 + cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
112 + ;;
113 + *)
114 + die "Unsupported arch ${ARCH}"
115 + ;;
116 + esac
117 +
118 + echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die
119 + local merge_configs=(
120 + "${T}"/version.config
121 + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config
122 + )
123 + use debug || merge_configs+=(
124 + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config
125 + )
126 + [[ ${ARCH} == x86 ]] && merge_configs+=(
127 + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config
128 + )
129 +
130 + kernel-build_merge_configs "${merge_configs[@]}"
131 +}