From dcd08467271c676e143c6c967faf8580fae7ca77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 21 Sep 2023 23:15:32 +0100 Subject: gentoo auto-resync : 21:09:2023 - 23:15:31 --- sys-kernel/gentoo-kernel/Manifest | 3 + .../gentoo-kernel/gentoo-kernel-5.10.196.ebuild | 134 +++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.10.196.ebuild (limited to 'sys-kernel/gentoo-kernel') diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 523cf9cbc51b..0152e9978926 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-204.base.tar.xz 5899804 BLAKE2B 5bf19ded87f3178252259d863bf DIST genpatches-5.10-204.extras.tar.xz 3868 BLAKE2B 150f953d75e2e051124f44253272a5b62822a19cc9226d82d44439595a4b0f5eb0b1a97f92a07f5d766f0cd5458ded1833ed878e03023f1a74d45162d24cdf51 SHA512 812e6d24f19c3df5998a921261c60e2515811bcf4b4295c16a2fea02fc535d6e944b7a498b142ec65bdbf75d8dd585adbbffe8b80d373c4094ea0a7f1c6d5eaa DIST genpatches-5.10-205.base.tar.xz 6004340 BLAKE2B da00636c3e77eeaa5ac26bcbd97329797a11032bfb4f1ebecb91efa5c8fd935b3031e4a59d871ee84a7af039725b3ed9b84dcc677071cb25349b01379d6e100c SHA512 93e4f76c75208deb001d4fec6a1206e8c8233b26f8977fbd638a76758f569de7a997e11f110d8f2f431cc65b5915beab3a89bd893812b661f5d1a8da5fd3edfd DIST genpatches-5.10-205.extras.tar.xz 3868 BLAKE2B ae605d0161ede2f929d907fcf91e39045882d409b223dda879ababc6096659687ddd4f8aa056c789a2da282fd7d5f8e0bed5d85807bbfae1b2731d6b947e6a86 SHA512 f3d23e42e2f11b6d59be715e0308030b71a2391ad3a4123ce219bd976561e3215693b30448ab7e0414f8864c4e6de67666dfebda07e55a01c5307e639c38284c +DIST genpatches-5.10-206.base.tar.xz 6004212 BLAKE2B 2df3791b040648ff3745aa0f6d01d979ee7024ffc70cd540e68a07d2615cce17c15b8f21b9be4ed12a55e31a0c822c3ee1a13756fa4df52e46bce43f2f07eca8 SHA512 2f147b339762ddfae652ea2ef06a4657e480e321f15a706a69082c5291d020122d4a34ab1863bee349a8f37c855cb6feb4ceb7085a385cdf1b14ec65d66dea85 +DIST genpatches-5.10-206.extras.tar.xz 3868 BLAKE2B 6af1a2e8a93e7102f15adb8ad44d0d9ccbc46ccab0c70c0633ddba9113c41ba70c40cf1bdf86e7b165f2e151290032551f3932b9ec28b534874fe0bc962c304b SHA512 7e64ba41b4c85fb92002867c638cc6a6b109fbdbdce0486e1898e64fda7051b28a7943a08147631e850a913c9311125c9e4e29a317acebc2298f667686bf3bab DIST genpatches-5.15-133.base.tar.xz 5249652 BLAKE2B 309acc807e07bfcbb34e0ae87618d6dbb76e6481699fc017f449e61a2518e96e1abaf43ffe32bb9f76786fbe8bad5607407be4a40dd8d26be484943d5b4afee1 SHA512 f0c689a808a7724cb4f30d697c22a0a089df3e0f837440b22b6c32672355b79898c8097810fa1e420e0f8c364f5a33b6c373db58b7c8caac8b67be763a820cea DIST genpatches-5.15-133.extras.tar.xz 3932 BLAKE2B b99e279af41ad1d19a58e8f9b1bbf392c805a46c371d7a022a65c0090b5824c6ce26280525a0c21feda2a5a5cfffcafc690a2194d29af6a44e10a9d4c923db8b SHA512 7cd772a6feed01543305417ff03b834bb002821ccf254e7f5481623a7f16b0b54da5fc72c21f4ae3481308eaab08fcca8fc5103ffbed58dc4355cfb661f04f8e DIST genpatches-5.15-137.base.tar.xz 5320152 BLAKE2B 9c2376c4aafdeb6f49b490ffbd15b70edc3c76dde6fd5eb863912b685d0393fc4579d6a402b5aed7c8081b4ae6c0bd5a8bcbf2fc3b92301f1ba1f582dffc5176 SHA512 d156b00a395c0d6fa623f84c4cdcc8266119703aa03aed96dee78f799535f79ce01cfd603c0935b4c0d2a793031cda5635c034358d9eedb0dd7b1fa307ebccb9 @@ -64,6 +66,7 @@ DIST linux-6.5.tar.xz 138898084 BLAKE2B 2e641b79a080e8f4ce283bcf6b74e2c6f15a3743 EBUILD gentoo-kernel-5.10.191.ebuild 3660 BLAKE2B a00d551fbfc33807e966bc55b6a8cb7dbe25cf56214322127f33f63adc7695a1922f502d3d3de391357ca2e79a62bb4639f385f8a1f3afe144847f526e0d20cf SHA512 4b5eede3cccb9ff548323d4cf79b0659fce001ba69c02d24a99ddb9f072b6ab6eb960bf05edbd7397b16d38970304f885d98c9c9b3a35fe46546c309aa3cf33c EBUILD gentoo-kernel-5.10.194.ebuild 3664 BLAKE2B af024625d4014a5bf402702c3d2e637ee0eeeda12e7e2e21eee657fd019f7726256bcb2639d8872e68b49cca6eb55d39f8e6d42cbc262bc74f21bd5796228eca SHA512 e4189b5c983d2f6a194e903739cc024161f3e2f4ee40a24a29490931bbf1eba2ae622da022a8103f761c29afda7bdbeaace747903741205c13c6920c1ee9cbb4 EBUILD gentoo-kernel-5.10.195.ebuild 3664 BLAKE2B d3340f1bacd9908bdc9a3a2a5f2823bcaffb5ab2407451538ab7388a7cac35d0c4c2c94cd1c3f3e28976fd0d480fc27737530c002213faf70e437481eb545362 SHA512 7ba90b9c27808d2ed649e0086f4329b4e4fb4b8bfaeb4c8b3c5c8de90fdebdc188432f72c0ab217140943c4c6fe08c48d432d79ba9baa9806332c7669ccb2df6 +EBUILD gentoo-kernel-5.10.196.ebuild 3664 BLAKE2B d3340f1bacd9908bdc9a3a2a5f2823bcaffb5ab2407451538ab7388a7cac35d0c4c2c94cd1c3f3e28976fd0d480fc27737530c002213faf70e437481eb545362 SHA512 7ba90b9c27808d2ed649e0086f4329b4e4fb4b8bfaeb4c8b3c5c8de90fdebdc188432f72c0ab217140943c4c6fe08c48d432d79ba9baa9806332c7669ccb2df6 EBUILD gentoo-kernel-5.15.127.ebuild 3738 BLAKE2B 0723ac115381c39ddcde714b5dabc3e2d7b4a5a8577786c45a537db0c9d0fa8527df6d9fc5cb66c351b635b8d4a1c8ca214ee91c74b059227fb312bebc27da54 SHA512 039ef7c9d5d2cd0ae1b31488d99362584b052961141cc25e66ab88d8dd6cbb9af327eb6ba8900c32c9fec41293d70e4857e9204d54bbe73960c47da0bd966c60 EBUILD gentoo-kernel-5.15.131.ebuild 3742 BLAKE2B 0c25f6729f9dc9cc4b2aef5c295e7c33c162df8a8ad64b26cf34e5b7f64afa50952a4568b7a10609e9ad83cad6b048637661b1fa772efa6a94e061c8c8655734 SHA512 5169182808b6b1157b02cd4408608a39a3a3a141598f190ba0e5900897b515f0a933852c81cdc8bb86caadc3ce6f4ff578ef6d627dcd01278a7f7fc05bd67c05 EBUILD gentoo-kernel-5.15.132.ebuild 3742 BLAKE2B a0390d6f4f5864bf69cc4093bd718cd4a8d5df3521801920c7dad74a46dccf90a019cdc11c92300798753a53e31fa4913a1cf1a5529e14ac099bd6a43867a928 SHA512 7d7931ea779c372fb602a80c02134bcbd833e89e27d1e090b475544afbdc4a0dbae5e7052127f4391ac232f027d3985e8ec3ec7897b2c121c01b2fcd2296f65f diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.196.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.196.ebuild new file mode 100644 index 000000000000..6bb0a62b780d --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.196.ebuild @@ -0,0 +1,134 @@ +# 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##*.} + 10 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g9 + +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 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( 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 +" + +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 + ;; + 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[@]}" +} -- cgit v1.2.3