From a704e825f55e39189114ffabe2634acee9ec0164 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Feb 2024 15:59:05 +0000 Subject: gentoo auto-resync : 07:02:2024 - 15:59:05 --- sys-kernel/Manifest.gz | Bin 4724 -> 4727 bytes sys-kernel/pf-sources/Manifest | 4 ++ sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild | 96 +++++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz index 19912880dbb9..2758de6f4200 100644 Binary files a/sys-kernel/Manifest.gz and b/sys-kernel/Manifest.gz differ diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest index 3ce3e73678d4..d4ce5e98c2ca 100644 --- a/sys-kernel/pf-sources/Manifest +++ b/sys-kernel/pf-sources/Manifest @@ -2,12 +2,16 @@ DIST genpatches-6.6-12.base.tar.xz 669256 BLAKE2B 9474c68e1558162a583278e9ee510f DIST genpatches-6.6-12.extras.tar.xz 3704 BLAKE2B 846cd76f82b38f2a55262fe6b56ec5f9eeeffea3da929e83338ea3b4d1352435c928ecd222b4167aab080025115addd8bcb559870328c16c3aa74d90ef2442d0 SHA512 9dfad8cabe8176606ff8c81c79bb628e0ed4195f486cd10f34677702847d005bbd8b077ba6646cadf90cbe799238c996f7d0e242908cf242e3acd7acc36e225f DIST genpatches-6.7-1.base.tar.xz 4812 BLAKE2B 152e6d2f4917d75e10554eecb05a0494a46b3ce0b6b38e1d785faa029b8bf2f9a7b32f348c149ff90ef6dee43e0b8243ec206b887a2faa8332dd738efccf5357 SHA512 dbcf18b3dff2b7167ff36594f91cd46c74aa18f36d8bd3fa8a911c3223aa0bc7a687bc7e3e8fee5333378102afd57a363ac038343534f8be797b9d9becfcee6a DIST genpatches-6.7-1.extras.tar.xz 3704 BLAKE2B a030f820814c70c9e5605de1596455052cf8f0c346156ef4f480cedb4779e564e6082755cf0a5e2066ddee46b741f03c4cc118797d27a9566ffeecebba021e81 SHA512 8d46cbdeed8c59679502e269d570f679e4f3d0293b6e9ee302ca9bc0e73ac5c3ec1470f26d6b7efc66a3566b5f8dc44ed6b5a9f04e4307ec496381e32b96fdaa +DIST genpatches-6.7-4.base.tar.xz 193776 BLAKE2B d0b6ee8e055d0c3b8122e1050818b49600a94c8b1b06ee4b6209d89207d527fc6c65352c728e359ad2830830ff25079a2d6d6ef6a55ecf60e43887c16673376f SHA512 5cc15425a7e9e80320f0b18b891d2efa2dfab4090441003b3c617d820c7e449a792aa266941bde0d22ba26e9a6999e42c3b686b270bc00389047678dd71b93d0 +DIST genpatches-6.7-4.extras.tar.xz 3704 BLAKE2B bf9fe3be461e9a5e7ebe59704bf22a418b67644345728b494ce3b725c03902d7cc226a32cc46c831afbb07e0111d397556b9f12c63871a8f173d7fe136acb2f0 SHA512 70e91002ba6b48fb9161a1f28279f29636e381a34b67856bb492fa36edbce68ae8aed48f50df5e7a14c59f1f8fa4e74ab9430b7cf762a5dd3feee08952213f69 DIST linux-6.6-pf6.tar.gz 229421927 BLAKE2B c2ebb40db76c282e3d3db0f06d5effec815f543b196ec7d048197508b72294fb1acfd4c0a09db3da433cbcd749bd71e765222a2102fdc87e920bb2f4e80bf4d2 SHA512 c94bc93e88127fc2e4b13604cead8eaa2cb191e35633857ac7b57022604cb9ef9791cbb4db78b79a174eb4fb4c36ecb71173c3fc897540ccf93f991abaf02cee DIST linux-6.7-pf1.tar.gz 232766936 BLAKE2B 31ba8ebdabeb8dc1e54c995b7f90138f3c45f4931f5aa24f1fe211854e47ec823ad3ae4f23f2f4474a41c823d977a707d14d79e200a1f9607bd36efb8524e00e SHA512 91ae92179216a93d24b9db009fbeeeb7b85ea7547921060acb0c4aa5f1c9a2282dea035dd97e66439ee87ed89ff6b531b94a5529e68cff56eee89158a4558982 DIST linux-6.7-pf2.tar.gz 232630345 BLAKE2B 9193b6e8a910c54a39dbe2c6a379e09305a85eec5328a8a8ec25374654f5a39f7ca64795a688eb4d89dafc8e2664514fc1153b540eca6cf89895330fc4f92a48 SHA512 3dba41edc9bd8b3848604fe1d82520e983cbc7706d77f17c7863ccf5c2cf9647987ef6682f6a3bd250fd53e708f2092ce9b354d20c90809ffc66245d225f79c3 DIST linux-6.7-pf3.tar.gz 232642147 BLAKE2B c5d67d60c4fdeaeb5e8ee20849a495004dae915587a058a874fb0620fde708fbb6e2e5281e517c133354aad87e834dda5a8187616b5d491b613b9d2afe907acc SHA512 360d6620d1e4951bfe113fee30a11c13ce9623f29cf7add7e8a35c913a40bf618391d2d2cc712d90381d0fc03e76b39f78cd2aeb9c8c159ce72b818ca5f734ec +DIST linux-6.7-pf5.tar.gz 232643902 BLAKE2B fd56140692794ce4c3aa17870c69b08770002864b59272a038cb0f01575f2bc33a59bb82181a59dc3aac54838dd0501ac4b7a5d564420f0d134ee5d7e63caed4 SHA512 b253ee87e14efc5b859c78d25b5a2e3ecac98c6819673bfdb709a531e59f06c185bf531a523174663cdd03371469424ee193cdf4c7cfc7974c34fc7f85acd0d1 EBUILD pf-sources-6.6_p6.ebuild 3037 BLAKE2B ae03e4afd3ede23f54997026898e0c581e4853ed366a0dd0fbe596825beb53a2c842013f6bdd203a323a75b9cabb1e4290afc4b041734fc12761bbfe382a668d SHA512 fa6efa3047df48a0161e10c0583b9ef5d17774ed0d120f529bcc603e29ae5c31cf34c59f64e1df3c959853b7b48f5219be0a6327efcbd3d4d34920a7151975e0 EBUILD pf-sources-6.7_p1.ebuild 3036 BLAKE2B 3efad19b422710a4aa5ebf825e37a762b755fedc15fa7334417c6d852c1fe428bd7b8cbf9ba325c1a00d5d4eaf803929ef84365528a8c326ce4c2ad2ce062095 SHA512 0cd99d290ea7c709ba57773cdc3029eed31b858457f76066e52209e30b9c5c228071d05c9bd19585461d52011d6489373d425896ac8e029d4e8073a21ab3bde7 EBUILD pf-sources-6.7_p2.ebuild 3036 BLAKE2B 3efad19b422710a4aa5ebf825e37a762b755fedc15fa7334417c6d852c1fe428bd7b8cbf9ba325c1a00d5d4eaf803929ef84365528a8c326ce4c2ad2ce062095 SHA512 0cd99d290ea7c709ba57773cdc3029eed31b858457f76066e52209e30b9c5c228071d05c9bd19585461d52011d6489373d425896ac8e029d4e8073a21ab3bde7 EBUILD pf-sources-6.7_p3.ebuild 3036 BLAKE2B 3efad19b422710a4aa5ebf825e37a762b755fedc15fa7334417c6d852c1fe428bd7b8cbf9ba325c1a00d5d4eaf803929ef84365528a8c326ce4c2ad2ce062095 SHA512 0cd99d290ea7c709ba57773cdc3029eed31b858457f76066e52209e30b9c5c228071d05c9bd19585461d52011d6489373d425896ac8e029d4e8073a21ab3bde7 +EBUILD pf-sources-6.7_p5.ebuild 3164 BLAKE2B 402133e050161bf299ca89de20c2828d29247d31fa134cdc41eca3b5a72674df3e34bfe3731edc68d42c00627c1af86e6f89a405cc5a6a626b17ba850be6b9a3 SHA512 5006747c72df0d08bbc274bd54a631420aa8e878a899b1a9f1230a0b6f29ff8eba0b1d986191c2685e99e3e63f14790c0884652b84e1ec5876d310744e0ff101 MISC metadata.xml 260 BLAKE2B 957e1545a0c47acf6020529f4e2ae0480ec07761a01b9f97143d7088e6fafa49e942c925d227f05b8683f49ce236881c00e904db2d6a8297d10424f11a872881 SHA512 160e8085f846936ed805fc43e152e838e1d9562bb8222bee4a36a4057c871a9f47d82a673fa5bdb9a6e33f1c827d9683966c608e49df3e46dcc3f7179b03ed39 diff --git a/sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild b/sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild new file mode 100644 index 000000000000..3c2fe9b9354f --- /dev/null +++ b/sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Define what default functions to run. +ETYPE="sources" + +# Use genpatches but don't include the 'experimental' use flag. +K_EXP_GENPATCHES_NOUSE="1" + +# Genpatches version to use. -pf patch set already includes vanilla linux updates. Regularly "1" +# is the wanted value here, but the genpatches patch set can be bumped if it includes some +# important fixes. src_prepare() will handle deleting the updated vanilla linux patches. +# See https://archives.gentoo.org/gentoo-kernel/ (or subscribe to the list) to see all patches. +# Or browse https://gitweb.gentoo.org/proj/linux-patches.git, e.g. +# https://gitweb.gentoo.org/proj/linux-patches.git/refs/tags +K_GENPATCHES_VER="4" + +# -pf patch set already sets EXTRAVERSION to kernel Makefile. +K_NOSETEXTRAVERSION="1" + +# pf-sources is not officially supported/covered by the Gentoo security team. +K_SECURITY_UNSUPPORTED="1" + +# Define which parts to use from genpatches - experimental is already included in the -pf patch +# set. +K_WANT_GENPATCHES="base extras" + +# Major kernel version, e.g. 5.14. +SHPV="${PV/_p*/}" + +# Replace "_p" with "-pf", since using "-pf" is not allowed for an ebuild name by PMS. +PFPV="${PV/_p/-pf}" + +inherit kernel-2 optfeature +detect_version + +DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches" +HOMEPAGE="https://pfkernel.natalenko.name/ + https://dev.gentoo.org/~mpagano/genpatches/" +SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz + ${GENPATCHES_URI}" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +S="${WORKDIR}/linux-${PFPV}" + +K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, + see: ${HOMEPAGE}." + +pkg_setup() { + ewarn "" + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." + ewarn "If you need support, please contact the pf developers directly." + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" + ewarn "the ebuilds. Thank you." + ewarn "" + + kernel-2_pkg_setup +} + +src_unpack() { + # Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override + # the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here. + unpack ${A} + + mv linux linux-${PFPV} || die "Failed to move source directory" +} + +src_prepare() { + # When genpatches basic version is bumped, it also includes vanilla linux updates. Those are + # already in the -pf patch set, so need to remove the vanilla linux patches to avoid conflicts. + if [[ ${K_GENPATCHES_VER} -ne 1 ]]; then + find "${WORKDIR}"/ -type f -name '10*linux*patch' -delete || + die "Failed to delete vanilla linux patches in src_prepare." + fi + + # kernel-2_src_prepare doesn't apply PATCHES(). Chosen genpatches are also applied here. + eapply "${WORKDIR}"/*.patch + default +} + +pkg_postinst() { + # Fixes "wrongly" detected directory name, bgo#862534. + local KV_FULL="${PFPV}" + kernel-2_pkg_postinst + + optfeature "userspace KSM helper" sys-process/uksmd +} + +pkg_postrm() { + # Same here, bgo#862534. + local KV_FULL="${PFPV}" + kernel-2_pkg_postrm +} -- cgit v1.2.3