diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-08-15 08:34:48 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-08-15 08:34:48 +0300 |
commit | 3e892ab542cfedf8d20a73514d41ca4411ac0389 (patch) | |
tree | b2df73851c5eeef0be9051db4521e7b4b0b9d637 /sys-kernel/pf-sources | |
parent | net-misc/tigervnc-xorg-module: keyword 1.12.0 for ~loong (diff) | |
download | gentoo-3e892ab542cfedf8d20a73514d41ca4411ac0389.tar.gz gentoo-3e892ab542cfedf8d20a73514d41ca4411ac0389.tar.bz2 gentoo-3e892ab542cfedf8d20a73514d41ca4411ac0389.zip |
sys-kernel/pf-sources: add 5.19-pf2
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r-- | sys-kernel/pf-sources/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-5.19_p2.ebuild | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest index 2b1d4babbcb0..ab88e631b0f3 100644 --- a/sys-kernel/pf-sources/Manifest +++ b/sys-kernel/pf-sources/Manifest @@ -4,5 +4,6 @@ DIST genpatches-5.19-1.base.tar.xz 4080 BLAKE2B 27fe512fd700cc6fc1946ebe0b39b423 DIST genpatches-5.19-1.extras.tar.xz 3772 BLAKE2B 1d418c3d5d328e9704ba10d7483cd562e511f345a5cc6799abc52e6cdeca20efa61417f62eaf7aae2078a8bb05c7dbabe4f4ddba7ad4221b458bd5c589f29b47 SHA512 479d957a3348485baf6504a08cf06b334938656701b15067512c0f48e530c2e87ca281ad3af6e55c75a53d2e9e584d94fc030ee82c538a97a85cea9a9c8fe214 DIST linux-5.18-pf5.tar.gz 206988172 BLAKE2B ae5abdee064b429019d7aaa4801d0bf852ed94dfef3965486cbc58d084e68ab9276651297857c1e64d5430e8b17728d1ebd7db597afd7ed7580d100e84431921 SHA512 dde7c08750858a719c70ff332df67b73432ace56571c73dfb7af7bf4ab4d5b5fbfb94486ac97b4b95e252f51a3be125fdb05a3abdc1b7443fb45ca4074810996 DIST linux-5.19-pf1.tar.gz 212145719 BLAKE2B 20264648efeac1589dfc76fc065860d9c7134661dd5ff1bb76996864ec7fee1f3cf6198d76da0d7cb5c1b9ca5fb1cccd2c63bb33e4d5fc9ba012c2cea8a38357 SHA512 eeef1d04add939a7826e7a25f5286606070e508c8ca4817a7e7616f947bdb1684819954d068e45964aa297df105a26dd996ee4662a182b3726010607df98edf7 +DIST linux-5.19-pf2.tar.gz 212143056 BLAKE2B 75f4c627ac88de7d2ab4b62d6b463d6832534e96353819ee1f7b2dc37473fe659dab613908f358824d91605c8223e6c5da49d6ecec7f84f4e56f345c8694d7ef SHA512 36f2381177de874f199d6549425be592aab4b86081d2db33bdb351614a426b3c529e707beef26d57e9d0f9270ad495acd574ab0b89f3f09125b37ee9f052adc0 DIST prjc_v5.18-r2.patch 270353 BLAKE2B 15d7ed7a0eb6f7ad37feaf52ab7c383e1c7c3e72fb41a767c8d1151a0ad41255c216ede1e4938a041f3b628874ed61398c61dd7b0e0b62090730f2fd0f6a70db SHA512 25c558bd6281a09bb611c6cca68084b27d0f2e290d2c0575e88b6a94322fad86de6dbeda30eb77919edd5adff921ad445593d9478f115ec93fa2e4c7ed6b5c1e DIST prjc_v5.19-r0.patch 271689 BLAKE2B 6bc109b462670602eba8ccba55cbcf9902402c627e40c62a3a574828847a518d84d35d30e786b2f1edd4365a3eaa3a2b358f20c013bb2789b30804c37fe12d45 SHA512 27011aa6586ca8c7ec953593f68289b437a7ddab841eb5e45dfca1fdfed5ddb59cf0e197703d4c62c2cd792fca9f2c97f341ffc5ee48a9ca3aff26f9505280ba diff --git a/sys-kernel/pf-sources/pf-sources-5.19_p2.ebuild b/sys-kernel/pf-sources/pf-sources-5.19_p2.ebuild new file mode 100644 index 000000000000..edc3b63a6ddd --- /dev/null +++ b/sys-kernel/pf-sources/pf-sources-5.19_p2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Define what default functions to run +ETYPE="sources" + +# No 'experimental' USE flag provided, but we still want to use genpatches +K_EXP_GENPATCHES_NOUSE="1" + +# Just get basic genpatches, -pf patch set already includes vanilla-linux updates +K_GENPATCHES_VER="1" + +# -pf already sets EXTRAVERSION to kernel Makefile +K_NOSETEXTRAVERSION="1" + +# Not supported by the Gentoo security team +K_SECURITY_UNSUPPORTED="1" + +# We want the very basic patches from gentoo-sources, experimental patch is +# already included in pf-sources +K_WANT_GENPATCHES="base extras" + +# major kernel version, e.g. 5.14 +SHPV="${PV/_p*/}" + +# Replace "_p" with "-pf" +PFPV="${PV/_p/-pf}" + +# https://gitlab.com/alfredchen/projectc/ revision for a major version, +# e.g. prjc-v5.14-r2 = 2 +PRJC_R=0 + +inherit kernel-2 optfeature +detect_version + +DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches" +HOMEPAGE="https://codeberg.org/pf-kernel/linux/wiki/README + https://dev.gentoo.org/~mpagano/genpatches/" +SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz + https://gitlab.com/alfredchen/projectc/-/raw/master/${SHPV}/prjc_v${SHPV}-r${PRJC_R}.patch" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +S="${WORKDIR}/linux-${PFPV}" + +PATCHES=( "${DISTDIR}/prjc_v${SHPV}-r${PRJC_R}.patch" ) + +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() { + # kernel-2_src_prepare doesn't apply PATCHES(). After pf-sources moved to Codeberg, we need + # to manually eapply the genpatches too. + 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 +} |