From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F0211581F0 for ; Thu, 09 Jan 2025 20:06:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AE17E077C; Thu, 09 Jan 2025 20:06:01 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 231C0E077C for ; Thu, 09 Jan 2025 20:06:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 592EE33C1EB for ; Thu, 09 Jan 2025 20:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5FBF1DD6 for ; Thu, 09 Jan 2025 20:05:58 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1736453143.96d40e51dd2c7146766a65c76fb754e680afb2af.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/gentoo-kernel/Manifest sys-kernel/gentoo-kernel/gentoo-kernel-5.15.176.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 96d40e51dd2c7146766a65c76fb754e680afb2af X-VCS-Branch: master Date: Thu, 09 Jan 2025 20:05:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 884f21e3-664f-489d-bb7b-bb55a07365b2 X-Archives-Hash: e91680dca3de07906aa562de254a99aa commit: 96d40e51dd2c7146766a65c76fb754e680afb2af Author: Michał Górny gentoo org> AuthorDate: Thu Jan 9 14:17:32 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jan 9 20:05:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d40e51 sys-kernel/gentoo-kernel: Bump to 5.15.176 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.15.176.ebuild | 136 +++++++++++++++++++++ 2 files changed, 138 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 263fbe1a1338..37e3fa1a4cfe 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-245.base.tar.xz 7815984 BLAKE2B fd5b339977af766fc292071eeb1 DIST genpatches-5.10-245.extras.tar.xz 4056 BLAKE2B f4838beef428e2913d3861b26989b10f82391823ebc39811402294c23c5a84623dab8b15346ada7aa3c9552727c857ca80a262fd9dcf4f4751888b0454fcdfdb SHA512 617ac2cae48ac2831bfbb5a0bca25e466087eccabd930ba86c0e9f984822aa5ecade7559d4b1c71031b4db7bdb803ee31a4c392ac36413d97a51e2befcf70166 DIST genpatches-5.15-185.base.tar.xz 7813568 BLAKE2B a287174103461737a4af5e24410266140ecd2970dd5568557ea1270d7b3d9db98ee218c392a4e8ef35fadedcfb8f9013f6dd830c08c0d9b2147c57658720e1d4 SHA512 edec855e548f4ce61e2aa3e8a86216a75d43405141054c114f7f2ed024f91500b905e953dc07f528d19bd25b13781377d8c60ae70e0bb15330f5cd187762b509 DIST genpatches-5.15-185.extras.tar.xz 4056 BLAKE2B bab13e1f8b400270ab36e78525947b68468504433f41784c507e6700d23e08b7eff91cd49e50398f90622cc289d6c4c122b3d5f8da77742b01c167ced5284cf2 SHA512 be561334e77afb45e11fe5e8c6c3b61d85c821776bcefc0cbe0d9addc6561a4c0bfc3956a990fa50f703d7defbc4a847ddeeb170d4dc828c2bcbd1a4c6f4429f +DIST genpatches-5.15-186.base.tar.xz 7849000 BLAKE2B 3bf7560f3bfbc26789d4ae1e93932bd94b46e69c8a9ed29907e47ad493c7f7acd25309bef228306c69e27ac53b65efa8a8bf505fc577ee3a8ccbb196d36c866e SHA512 afa8bfc5d4f9ac104a583bea92b8930db5c2ca165c6c1fb3d5750baeb508df6fcfadcdb3c978bcd8e8ad95cf3ca2fd0c5c6cebcd000e93dbed663f310af01dde +DIST genpatches-5.15-186.extras.tar.xz 4056 BLAKE2B 68130d315dd2ccff0075d729a10cee298756baff9ecc0c1f218ca4c771ccf30541bdb876ee529292a56c56ba49eefe5839cae263a08bc0f3ba114fa499267141 SHA512 2d1f1af4d251c93d7e45aee1710e44129b8bc71c83d7bb328b07b28c109e394259321ab12e889483369966a52616c1c41b547220e4ee9e4e3ceed21f89503665 DIST genpatches-6.1-131.base.tar.xz 6701808 BLAKE2B 0ff847805abdeefee31ce75d0b5c02eafdf7b12f3b3c499c0d9d19305b3ae934194bdf58fabb30e51a356eae5e57c7d633b7abbf45a94096e981c671181c9b16 SHA512 7604d45f78bd5a087f0a158acf3767b275315b60c77cb4d6b93139943d56ca917a75ed8ed784a608a52d3e1d06cb36a01f5c3d0f5b211dda6d62d36fbe9ffaf9 DIST genpatches-6.1-131.extras.tar.xz 4056 BLAKE2B add38a1ea9191009b22ce04a556062e419452bedc85d6afd40d6aa3da2474f4719aacf91bc3680b6a08a7b73cd0dbcc5c3249322f8c47660ef36c256e8792bae SHA512 7d68ef7b616ab8bd62db15ead625f0e449b6ebdde8477676d0aa6ef017f9270727413af62985ed8b271aae1f5288682f4fd0d0804f06577e2c1f4014b5402035 DIST genpatches-6.1-132.base.tar.xz 6718336 BLAKE2B 3a1d86ff100ded252a1af8cb1cbe50ea55e0789041f0e740c30c6a70c3192d8c90f873c46f9989b4b76071d1364f29b2eb8230e2675d22f2e14b6cb94e3e16b6 SHA512 bd225633a720a3d271969818c01b59792b5783c16743cc020e3cf444a37116ba57b0d82280853b432a3e3043a29f717ad2878dfcce4516a8127c535367ce6c49 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.176.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.176.ebuild new file mode 100644 index 000000000000..9217d46eeff6 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.176.ebuild @@ -0,0 +1,136 @@ +# Copyright 2020-2025 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##*.} + 10 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.1.102-gentoo +GENTOO_CONFIG_VER=g15 + +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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/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 + arm | hppa | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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 + ;; + 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[@]}" +}