commit: 89d6b566df20142a192cc7a955b6c4b1f8ca1a5d Author: Ivan S. Titov <iohann.s.titov <AT> gmail <DOT> com> AuthorDate: Fri Feb 13 13:39:31 2026 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri Feb 13 17:14:45 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89d6b566
sys-kernel/pf-sources: drop 6.18_p2, 6.18_p3, 6.18_p4, 6.18_p5 Signed-off-by: Ivan S. Titov <iohann.s.titov <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45797 Closes: https://github.com/gentoo/gentoo/pull/45797 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> sys-kernel/pf-sources/Manifest | 12 --- sys-kernel/pf-sources/pf-sources-6.18_p2.ebuild | 94 ----------------------- sys-kernel/pf-sources/pf-sources-6.18_p3.ebuild | 94 ----------------------- sys-kernel/pf-sources/pf-sources-6.18_p4.ebuild | 99 ------------------------- sys-kernel/pf-sources/pf-sources-6.18_p5.ebuild | 94 ----------------------- 5 files changed, 393 deletions(-) diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest index f2c988b7b78e..5c9ceee52cd3 100644 --- a/sys-kernel/pf-sources/Manifest +++ b/sys-kernel/pf-sources/Manifest @@ -1,21 +1,9 @@ DIST genpatches-6.17-11.base.tar.xz 720796 BLAKE2B 230ae20155e4750d3afa98503b32bf68c853d2776866909f9b3ae90fde734b93857acefdee3ca155f5b7298f3ad3e7975abd5d074fb8d5e86440b8a424453d89 SHA512 6b438da081a1d017a37c017185aed8c9330ab7a67647a790573285c6caa109d0349ffc2f4f08467071fc258dcae0450303c82d1bc6b9c2c3a3dbd6604531a9b4 DIST genpatches-6.17-11.extras.tar.xz 4324 BLAKE2B 97cb8e62bc57fe4bcbb8456d38a08000528625dc8bcbddaffb0db21ec58d66f4bd81008b2cc5b9f10378cf0797b7af1269f0e07e098c7bbd1529609c3bbc8ae3 SHA512 39ffedf67fdf97b3ac8033e1e4717df0957ee5b17b52bafaa5ed4d42dcc093d77237f61b53fc526fa0d66928e382d255a643da830f4ef71750b32db94c807b5f -DIST genpatches-6.18-1.base.tar.xz 12736 BLAKE2B 5b7b6c7529510e217844debddb9297827c2d32f23be4745f23b14e087ec898ae6b8f22bb24a8cc23786dcf746ea68a6a12e48fa9280c2882027f1c7a505077d9 SHA512 f00d8b3e0db9e1878cd6ba77936b6a4a3d6c74e69ce5a1d7666dfb45ff8d33b55089ea2e63ca8fa29b4821c00d2425cb205b2d4b45d28ff5bae52276144de409 -DIST genpatches-6.18-1.extras.tar.xz 4324 BLAKE2B b9d4fe05d9ffa2642a62280aa67227971b00b878a190b03db1d46f0e7564e759702950440c35bfab077cc690315efb14bcd1f49cc5ae0ebabed4782d9aa58392 SHA512 8a0b46484272cc7fc771b3353c76b1d211aab430d57822b8946db22be3af2f206afd3eb59ea92e5a9e86a325d444f8f49c9b10cfd5275adc58848c0a41a2778c DIST genpatches-6.18-10.base.tar.xz 595340 BLAKE2B 0c83bfd6474e5e0e2a5c1144662070301a3f318d9a08990c6a12ec8776c66c2b06a4a89f19d709c9bb223edef43f1a24ce53b0ee25b58e15818c70a9164419d4 SHA512 6e223057c083b51c7e6b13deac95d5130b5cce796e5902788eb221f408528419a3990a6d37aa91ccef54c2a7874e447d1c2e59535c8fefb89501a7ff074e3f61 DIST genpatches-6.18-10.extras.tar.xz 4324 BLAKE2B b87a2631899b124e8ffbea47b2d1b57dc8b4a2e76bd5019128e456fbef507a854d1a9bd1fbe8597ac1940dac186082f4ed608da4e9dc6c6fec5750c4a0a412c8 SHA512 fbc639ddb801c70cb7067fad412ec92ad8e84226a752b035c79903751db6ad4b816d3dcf80624ffcc39c31d44d021f52e61969c59afc0ffc622d535c1aac95aa -DIST genpatches-6.18-2.base.tar.xz 27772 BLAKE2B d1c497a82068ccabd70e76f7df9231a965e801b7bf3e35378c67ebbd704bd3fc3fb183ac0affffbef43d5fa7d44e402e5c2d60e443c9eed544dc87dbc9d99713 SHA512 3fdd064a48fe13c9d915e30cfccfb74487dc28078c62080f721a5d92e7a4f0533ad8f05e2ab8f3ab1aead92dab480334997c0a6446248d3c4ad3fffbfe82bb2e -DIST genpatches-6.18-2.extras.tar.xz 4324 BLAKE2B 037e692cba93a5bc1397eeeca02061f68afbd13a6ca3d8efb1214f3cfdffb643bb357b5f4a7dc367f10e5837e9cc4633a3771b70f3afdcb1883c117a1b8d859a SHA512 9ce8fb5529294808f837ab002e2d0031f6e9608b1288202030b6f4549930439a30b50f982e05d706233790b5a4f75465a626864cabf7c2485347fb2bf7e9ebe5 -DIST genpatches-6.18-4.base.tar.xz 211912 BLAKE2B 5250fb6fe7e05f1afdaa9d400defd6cfbe9ccb876a1b606380a30103a3bfbbe7d5fbff2ea8bb8050ec64c16714c6c6dbb4a5c987bee26e66b9e5419eb01986df SHA512 508bb87fb621738adfce5347d461f37f267e264bd234c47a22760b0375cb336d7d83382b87ce12b230a37444efb8306780b98bc2cfaf914d7d60afecb03fbba0 -DIST genpatches-6.18-4.extras.tar.xz 4324 BLAKE2B a9e04a9443641fd5fb4926cf97dd09e9c7f8f7f553fa3288c925b0891531e64f5daad21c712b5bee48e4e5713a9b8dd81256c85abc7a2aa9c41a46c95fb16456 SHA512 cc393ba03d91eeaaaf10a08b67c194a33ab9a42630de77c86f37ef84adc4bf525607ff852615b653d992ec11453e9739edb2837cc0316db4b171975ea3079b49 -DIST genpatches-6.18-6.base.tar.xz 422888 BLAKE2B 287bb6eca4d36dbe3f97472fcf293a11b8917a8c5a1a6cb8aba3d158e766054dce3c9cfb819ab71aa28d053dd6a79228d94fdb58f25430d81c58755262f4e2fa SHA512 f7fe4742de1b75967338b2ebbeb04964b68671c28aa65e473a22f0feb7664f1f0c5d3a6b58a1ced3930c166641a3dc0235c952976c7a6cb7c512953968ed8907 -DIST genpatches-6.18-6.extras.tar.xz 4320 BLAKE2B ed59ba735821e97d5df6e09c7c053c75474efcd457fb1ef851abded47c5f75cff4c280d0d5c57f37d58aecdbf30c02db3d38c88a13b0067f674a68a65df04350 SHA512 c1c8b0360ad2bbae27c54edadd4c663691b1454da8afa662d4f974d0206bad3069b4028ae982f95282344e7ba087542b699535f9e1c14bbefb91fe9a79764a60 DIST genpatches-6.19-1.base.tar.xz 7328 BLAKE2B 06f4f9b8f996f8a4793343974e52625136a45173fd1849c8efb42e2097f758f6eb5416814ec28f76749e1a1ce9626929dd2c916f26d830b6e652fffaa2cc023e SHA512 3a2d76b55aaf826c09d068b0bd0d37bf22e8d0d9d50cda52519ed0a3b5f1fc88749360116cfeab4ca56266d759dbb690060ecc2a8ccececd91c3ead8cc42bd79 DIST genpatches-6.19-1.extras.tar.xz 4320 BLAKE2B 6da65211eefbbf2468be32bb09fdfcda0b2f5dfcfe9f90b252cb1f069db5f578d876afc68dd0a435a8b8c12823b29637985f90720da4ebb3c926e4e91848e815 SHA512 dd8e340d756eb238552cbe0cebc0726d7d64e782b013a37d427f0631fae2bce4607a62f88d1a2f8b669ec0cae91140d4ff66bc77c019798df40be959403aa7a5 DIST linux-6.17-pf4.tar.gz 253598641 BLAKE2B 5a6774f02f1ea67e587cf1374c8e826bb2bf73ddaed3741d60f02ae2c84217ea845233b0ff01d2043b61cf360f1b5a289d329deb41cec804106a63e9296e7619 SHA512 4abf01fbedbc448b0714f175112e35c6e1d1ace89ce3a4ea93978fb3c7e138daa2710bd718255dd59ec90d9ada554179988ae2bd0ca9798798ee76ab3e24b454 -DIST linux-6.18-pf2.tar.gz 254943201 BLAKE2B 487fdaae3baf1e4bb62bad1da171869b38addb919753d7a035ab59ebbd8474b9d2dab4775a5654cfb50e1be5d30980ff706c214823b5f92ccc021700e6ff98f5 SHA512 1ca5de1570324256b4287f72b40b841273873488b17b6fa3c4fc79e6a716fcef6fe8846161fa6fa6cc8430c926ff4207c82673cbde655cc091fc467e0e8af594 -DIST linux-6.18-pf3.tar.gz 254950500 BLAKE2B 54a122998f27735f5f05f2d0e3430c0e94fa9d713f1514b97543cee4fb3b3e84eec85135abbe3ac4f773f52e697f5dabcba88818355338b7cb1cd4edd5cd2401 SHA512 ea8424660654b89e3c4996f4bbd246658705814d2bdc0be12b8aeae9fdc8a20a235942671aaac43cdc04bcae67ed64911e9967b300e8525fe3103617cb359a0c -DIST linux-6.18-pf4.tar.gz 254951916 BLAKE2B 11c3884870e438ceb2f3c6a2c4f175369f7ddeca8f7ef47f5b7503f83c475a43f972ec640781ef5c62748fab2f1163d8b7c05053a13ae272050b16ada1b838a7 SHA512 a8bf049b6888f134b3f399e1c799b1d0641d7aabdbca2ed7204b2b3a7fd91e2a9e2fff451ec157916957371e1d2fea63bbd3793f199d9b1b36ba9586c499cc38 -DIST linux-6.18-pf5.tar.gz 254944415 BLAKE2B c318a2f310d0c24046aa7c4cb60d173f7314916258b76913660050faf1d264f9f78b4d07393a7922699a555abc275f2ee95474c2f62f6c36c03ea175164f1304 SHA512 5d4d6fa058f9ed59e688c006aaf3aebbad87956635cd0925af3c00c87e6b14afc131d31c47de564d13373d9009f59484d59ae6043f7f813aa25fcad80404d332 DIST linux-6.18-pf6.tar.gz 254953102 BLAKE2B 2eb7606d9a28a70dec23853bb321b78642c0202e6e891ddb5601afec1938365906171cfb53507d7b24167f62e55850d75f0e1fb570589a9ad06831b1bea159dc SHA512 80dd56acaa51577dda10f56679897ab679306d0b9693ba71c44bf66cf4ee9f81cb039492e731c5a9628f2a5fb66b1511ab8d4650d0a9afd5be28bea158fe9ac6 DIST linux-6.19-pf1.tar.gz 257527291 BLAKE2B 6cbeeee14aa895e61e7e9e8861442f059f0e6ff91b8667b059d127ad9eea8ced29350124000f89cb7ec6aa55cdbb821899c7437293e99e2440eaa795901818f0 SHA512 5867fcda49f5608ddd18a778d86b9456a9d2e22636af6b7b71550de0b50be4a32dc9112c0ce84094b1957cec84b789ba9a242085f3dd19b4167a217b09dd7c35 diff --git a/sys-kernel/pf-sources/pf-sources-6.18_p2.ebuild b/sys-kernel/pf-sources/pf-sources-6.18_p2.ebuild deleted file mode 100644 index d8bc854538bf..000000000000 --- a/sys-kernel/pf-sources/pf-sources-6.18_p2.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2025 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/~alicef/genpatches/" -SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz - ${GENPATCHES_URI}" - -S="${WORKDIR}/linux-${PFPV}" - -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -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 -} diff --git a/sys-kernel/pf-sources/pf-sources-6.18_p3.ebuild b/sys-kernel/pf-sources/pf-sources-6.18_p3.ebuild deleted file mode 100644 index c85a32e8dac8..000000000000 --- a/sys-kernel/pf-sources/pf-sources-6.18_p3.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2025 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="2" - -# -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/~alicef/genpatches/" -SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz - ${GENPATCHES_URI}" - -S="${WORKDIR}/linux-${PFPV}" - -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -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 -} diff --git a/sys-kernel/pf-sources/pf-sources-6.18_p4.ebuild b/sys-kernel/pf-sources/pf-sources-6.18_p4.ebuild deleted file mode 100644 index dd3d20376971..000000000000 --- a/sys-kernel/pf-sources/pf-sources-6.18_p4.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2026 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/~alicef/genpatches/" -SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz - ${GENPATCHES_URI}" - -S="${WORKDIR}/linux-${PFPV}" - -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -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 - # removing this particulat patch for now as it conflicts with pf-patches - if [[ ${K_GENPATCHES_VER} -ne 1 ]]; then - find "${WORKDIR}"/ -type f -name '2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.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 -} diff --git a/sys-kernel/pf-sources/pf-sources-6.18_p5.ebuild b/sys-kernel/pf-sources/pf-sources-6.18_p5.ebuild deleted file mode 100644 index a7aa7a1aa51f..000000000000 --- a/sys-kernel/pf-sources/pf-sources-6.18_p5.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2026 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="6" - -# -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/~alicef/genpatches/" -SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz - ${GENPATCHES_URI}" - -S="${WORKDIR}/linux-${PFPV}" - -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -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 -}
