summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrits Letteboer <dagraver@gmail.com>2024-02-04 14:22:58 +0100
committerJoonas Niilola <juippis@gentoo.org>2024-02-07 16:19:40 +0200
commit7b7c53c7c71cdcf8b263e68820b9b92758ba85ad (patch)
tree334aec1e3ca09b9113816f6f25fd0e7e8207232c /sys-kernel/pf-sources
parentapp-editors/neovim: drop 0.9.2, 0.9.3 (diff)
downloadgentoo-7b7c53c7c71cdcf8b263e68820b9b92758ba85ad.tar.gz
gentoo-7b7c53c7c71cdcf8b263e68820b9b92758ba85ad.tar.bz2
gentoo-7b7c53c7c71cdcf8b263e68820b9b92758ba85ad.zip
sys-kernel/pf-sources: add 6.7_p5
Signed-off-by: Frits Letteboer <dagraver@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35181 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r--sys-kernel/pf-sources/Manifest3
-rw-r--r--sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild94
2 files changed, 97 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index f021d8c38e72..cd1f0792cb2b 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -2,7 +2,10 @@ 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
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..c8c102f0e626
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-6.7_p5.ebuild
@@ -0,0 +1,94 @@
+# 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.
+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
+}