commit:     0332cbe5129a7bb7fd4e470ce263d0bcd4cd9bc5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 13 20:27:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 02:15:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0332cbe5

sys-kernel/gentoo-kernel: Bump to 5.15.143

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |   2 +
 .../gentoo-kernel/gentoo-kernel-5.15.143.ebuild    | 141 +++++++++++++++++++++
 2 files changed, 143 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index c65d0abf69b4..4a7641f4fcda 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-214.base.tar.xz 6277292 BLAKE2B 
c048bb8187cad0d22c7aed93194
 DIST genpatches-5.10-214.extras.tar.xz 3876 BLAKE2B 
d3d2b1b6b2b3d4574300a7a84ed449733bcde3a1aa855a54f10d484ab0dfb1b381ad7d9ae4551993515a8af2747aa42e830c39039803e0fccbe9a06be011a819
 SHA512 
34f83560c6ae888feabe56906bbda4e5b68ca36f418341ef2200018a79bcfacd0c30e8535c3684fbfe2b0557fdd59383b33a7e57e7cfbaacb81d94ddbb12afb7
 DIST genpatches-5.15-151.base.tar.xz 5817984 BLAKE2B 
182b52b69171a07dc6333c139f570d1f50e2c7351150d32bd0d32d268750cbc5f548a25b07111b2fc754de920dc78bf6add2cefb233ec5601e57efb9c516c24d
 SHA512 
364c32d0ac7372367e343292e28b4325b6529fb6b46eb84296e4622b6f1d1d1c2496865aca89c447eff113a56780ea06d94cee3f90570d4b012f3aedfbab70ef
 DIST genpatches-5.15-151.extras.tar.xz 3936 BLAKE2B 
290c41b3f8c750f82d6fb8ae4542a64ff395c8def74c6f3c3d4752b57d1725bf1947beb626d8ee413a4ff50fcc74bad7f1efbc1bfb29b67a35e4b5ea396427f0
 SHA512 
a3d22a5decba9d24e65239a96b3133af07e126c7e0dd733eae61de48644bc31b012eb6595a15ac82ff763bf39e9f7c91c0153badcc2e9c83604a64f27e0ea43b
+DIST genpatches-5.15-152.base.tar.xz 5859680 BLAKE2B 
f07d522838bae14efdba3399a9e4ad0a442537b1a9942477600660df2f71cd8d17774dff0ce563a7c46595c6a5390048994be0f894f84c255ebac2f9ef885220
 SHA512 
bb6d744e075f6d7e380f78be870c64a14595da3b24ae217db9e69778d1f65326ade92e7fa9edbedbc6b6825ff8a83f08725d0ad165e4165047720a4f72985089
+DIST genpatches-5.15-152.extras.tar.xz 3940 BLAKE2B 
91f8fa828c4fb434088a8cffc845c09484b613fb5990fd5faa925852e9d6009bc927135310372a3e7b78b59a9e6a1f52667ccf3dec0a2ec7f7ac4f66c5b63760
 SHA512 
615669b03df808733065081f58ef0c928fb45be1b5a15092dd6e8cc6ec13ed6c4df3ed69eb1e06fde52f35f19f4896e4ab8e557a02e061e8c1371c12cda7e04f
 DIST genpatches-6.1-74.base.tar.xz 4113880 BLAKE2B 
26d9abc23f66346e376b78bb687ae7bc955447093641abe0bf736ff9e1c4e7ca70a0bd26b581f295b168ecd94c6f84603f13f5d097cd8b05b9373ea03a9d0426
 SHA512 
4ec9211030d1d1cf8e412b46f6cc101768418a177d0113b58f3aa0c4468536faa45a0615483baec378eae7995a91b86da1c06af167a1dbc6eca9ff853ae838f3
 DIST genpatches-6.1-74.extras.tar.xz 3812 BLAKE2B 
52488fe7154cf6e0153a05184699dd1597a078a7a376e2866b68b923e7f82300757d1c70e7bc44920ab7813d500fb3d4677d49428261308e4b6b59a552381a9f
 SHA512 
dd04bf075792824bf65cf349f6bc921d0c36cc66c878b8dfdd95c27f3a82de426d6725d79c02374e7372b74b68b9c0123875476de434f85646dd9aa8382d8de9
 DIST genpatches-6.1-75.base.tar.xz 4114396 BLAKE2B 
c21211d430392fbe96b0616e0ece650736f7204066222f88b84cffdbedcbda78d8fbf30ce8dce4c7fa450f24410fba1af1929ee3b3ea0472fde3473db95a0f5c
 SHA512 
106db04baa9ef92e324929d025bb68f9eab4d0144d12a3d11cbfffb018cc46abeaadc76240c1acfd3877ef8efc1992374ad15cca061258e5f20452e3cb71b90f

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.143.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.143.ebuild
new file mode 100644
index 000000000000..c2484efb4288
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.143.ebuild
@@ -0,0 +1,141 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
+CONFIG_VER=5.15.19
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
+GENTOO_CONFIG_VER=g11
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+       https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+       https://www.kernel.org/
+"
+SRC_URI+="
+       https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+       
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+               -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+       amd64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+                       -> kernel-x86_64-fedora.config.${CONFIG_VER}
+       )
+       arm64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+                       -> kernel-aarch64-fedora.config.${CONFIG_VER}
+       )
+       ppc64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+                       -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+       )
+       x86? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+                       -> kernel-i686-fedora.config.${CONFIG_VER}
+       )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+       arm? ( savedconfig )
+       hppa? ( savedconfig )
+       sparc? ( savedconfig )
+"
+
+RDEPEND="
+       !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+       debug? ( dev-util/pahole )
+"
+PDEPEND="
+       >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+       usr/src/linux-.*/scripts/gcc-plugins/.*.so
+       usr/src/linux-.*/vmlinux
+       usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+       local PATCHES=(
+               # meh, genpatches have no directory
+               "${WORKDIR}"/*.patch
+       )
+       default
+
+       local biendian=false
+
+       # prepare the default config
+       case ${ARCH} in
+               amd64)
+                       cp 
"${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               arm)
+                       return
+                       ;;
+               arm64)
+                       cp 
"${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+                       biendian=true
+                       ;;
+               hppa)
+                       return
+                       ;;
+               ppc)
+                       # assume powermac/powerbook defconfig
+                       # we still package.use.force savedconfig
+                       cp 
"${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+                       ;;
+               ppc64)
+                       cp 
"${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+                       biendian=true
+                       ;;
+               sparc)
+                       return
+                       ;;
+               x86)
+                       cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" 
.config || die
+                       ;;
+               *)
+                       die "Unsupported arch ${ARCH}"
+                       ;;
+       esac
+
+       local myversion="-gentoo-dist"
+       use hardened && myversion+="-hardened"
+       echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || 
die
+       local 
dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+       local merge_configs=(
+               "${T}"/version.config
+               "${dist_conf_path}"/base.config
+       )
+       use debug || merge_configs+=(
+               "${dist_conf_path}"/no-debug.config
+       )
+       if use hardened; then
+               merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+               tc-is-gcc && merge_configs+=( 
"${dist_conf_path}"/hardened-gcc-plugins.config )
+
+               if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+                       merge_configs+=( 
"${dist_conf_path}/hardened-${ARCH}.config" )
+               fi
+       fi
+
+       # this covers ppc64 and aarch64_be only for now
+       if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+               merge_configs+=( "${dist_conf_path}/big-endian.config" )
+       fi
+
+       kernel-build_merge_configs "${merge_configs[@]}"
+}

Reply via email to