commit:     e9385fc59dc6cd2a12bc074ef1a9ca7245c257ba
Author:     Frits Letteboer <dagraver <AT> gmail <DOT> com>
AuthorDate: Mon Mar 11 19:17:53 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 06:57:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9385fc5

sys-kernel/pf-sources: add 6.8_p1

Signed-off-by: Frits Letteboer <dagraver <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35716
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-kernel/pf-sources/Manifest                 |  3 +
 sys-kernel/pf-sources/pf-sources-6.8_p1.ebuild | 94 ++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index cd1f0792cb2b..608db9958639 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -4,8 +4,11 @@ DIST genpatches-6.7-1.base.tar.xz 4812 BLAKE2B 
152e6d2f4917d75e10554eecb05a0494a
 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 genpatches-6.8-1.base.tar.xz 4136 BLAKE2B 
a5bda1bbbe2f1d772226661e15329f52a09166e049b2c7df259fcf4bdfce0585fdafe798ce15cfbe8d66e7fbd69a3fbd29abd1bc0e2f98cca89fd09c9bac2884
 SHA512 
a6a9bceb77afab73d2f7686b27079b6d294861408c1e7cae399e1a8ab6f7a4e31d196f73cce84aa81f38ee8a8880ff2bad81541c2b22503105f0f4198d2001a0
+DIST genpatches-6.8-1.extras.tar.xz 3700 BLAKE2B 
ba0d9f61231a6df70eec23c74d18343420f8ff8e04777a1e19b90b64f89bbe345647fc5df41636458ed567bcb2ebf42445013060caff604654c4d0b9c259c5f0
 SHA512 
56c7c8996afc570775d5341066614f815d0233ddfc9ae55689c0929758e39fc01427da59b973c102451776f63a98f95c54fc8801bc303c3f5c14fe2612ec27a8
 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
+DIST linux-6.8-pf1.tar.gz 234545846 BLAKE2B 
d51b5d7ad395f8abd68636290f21a4800736e2b57b6ba5a29cc8983cdf81a13ed6db8a8a7468704561200d2d299eeb9d5bc6378a19e1b0948cdfca2f6c93bf76
 SHA512 
18d5816f70a02efc45a1b26f703b7d1686fd0196aa396c2fe007bf60357249deeb482e87d024e5ee78dcd4e19e48da2d17e8161c1154bd0f23b792ebb3578568

diff --git a/sys-kernel/pf-sources/pf-sources-6.8_p1.ebuild 
b/sys-kernel/pf-sources/pf-sources-6.8_p1.ebuild
new file mode 100644
index 000000000000..4b3ad9c0fee3
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-6.8_p1.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="1"
+
+# -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
+}

Reply via email to