diff options
author | Frits Letteboer <dagraver@gmail.com> | 2023-10-24 08:58:27 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-10-24 12:10:45 +0300 |
commit | fb290c721ae5d625488a22267c1d008f74f4739f (patch) | |
tree | 958bab8bcd07bd77ebdf66b072da3dddd7efa157 /sys-kernel/pf-sources | |
parent | sys-apps/syd: new package, add 3.1.7 (diff) | |
download | gentoo-fb290c721ae5d625488a22267c1d008f74f4739f.tar.gz gentoo-fb290c721ae5d625488a22267c1d008f74f4739f.tar.bz2 gentoo-fb290c721ae5d625488a22267c1d008f74f4739f.zip |
sys-kernel/pf-sources: bump to 6.5-pf5
Signed-off-by: Frits Letteboer <dagraver@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r-- | sys-kernel/pf-sources/Manifest | 3 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-6.5_p5.ebuild | 95 |
2 files changed, 98 insertions, 0 deletions
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest index 6c79764d1865..4b226cdf5d98 100644 --- a/sys-kernel/pf-sources/Manifest +++ b/sys-kernel/pf-sources/Manifest @@ -2,5 +2,8 @@ DIST genpatches-6.1-14.base.tar.xz 774040 BLAKE2B 8e0866c762e2711b766cc75630d66c DIST genpatches-6.1-14.extras.tar.xz 3804 BLAKE2B 7f016579b130c9a4f7a8ec946254dbd682f22e5654ae777d11b265dafe2b177a4c40c5a979a760a5bd6ed3dac057b90a3120c60b958f6b748ea4731b9a5f1ea6 SHA512 2807d359459dd11b9d3356fcac609dbfb8487e8c924cc543ef37698667b1c8b74cff7b015839ca0677cf1f96b566e0b5018c057b517275886ab500cd2ca49653 DIST genpatches-6.2-1.base.tar.xz 4308 BLAKE2B 0b28cf39d9977e5a5c6fe446c0bc318b33f37995897ec379e6ee6d5420a73cd4d3ccf78111df1a2bbe9ee568c6fde6d7c52ba4f01a8b9534c71b597de65aa850 SHA512 da9ab52792c8b6881cf7718128889ccb536723ad7362ccc89be734a479ab6a03f6c844bd97197f3a4574d3bf4278ad10f453a57d076d297586be1db3ac2380c8 DIST genpatches-6.2-1.extras.tar.xz 3808 BLAKE2B e2e6b77fde25dda7c048376fa1435b7ae77eb6889e69bc7f516435a29335d30bc60ccadf196f37408430f5f9899f5502e05404b4bb5ffc8a9e48a6918103780b SHA512 b44df841c08ef03d0638b3b1ebea014979d4e1f70f70c9db21d2a531d7856f0a2eab74d9ad411e0c7387caade6a5cf1afe9e0153d83e51924c881af079c18c83 +DIST genpatches-6.5-1.base.tar.xz 4888 BLAKE2B adcbb4c9f48e94781dfb3f38b32f4d60b555857ceb35f48ea19c1bafd9408d65d58a603abe994390ee970ce6fbd6ac9a75e56f2b924a0c9a5dad6cd11620c9b1 SHA512 7317fea243022a75ad3d9856030bcdb273ff55c7b865f71d29aa2799510cc3310d05cc0e63061c8ed11df8d9e820c1b4cbab310a627fbc7a2e15d8ca00b61fe5 +DIST genpatches-6.5-1.extras.tar.xz 3700 BLAKE2B b9fd452eb544031092219faddff94e96c48e7b39815fd48922b959a8d44033e443368f9825c5ffedc9f75fb851a74a6c252b9c7b9bdaaadb78727b804a7e9c5f SHA512 813a15a65ce8033d34b9eb42749fd7b2f2a604288b4c3a56aef295c994322c5cc95dd14fd35ac8335d3d036bdb708cadfc8bf2a4b35c406f420589af476bcf98 DIST linux-6.1-pf6.tar.gz 220761768 BLAKE2B 8b0f3d16be65f245978a823bc4c3130f76017dcb4e51c0e5c77815ffe61d3122eabec28001571badc8eceed490cb14f27540bbf574fbb0feffba59804e1169ed SHA512 66b2a4d221bc9caf4c22353d39a9a13e990b8e50ef47d1882d9f950b4cf42f6d240d787979a5272eeb8ffba142fb07fcadf438827d3410e220b20e41ac079ea0 DIST linux-6.2-pf7.tar.gz 222943378 BLAKE2B 414277f7d9a256b9ae6c2f14886019b4c22bac69558ef225c3b45e9d4e58727429b32528aad124d8bc764b5b7527074455aaeff25141530a5534630c81da4f6e SHA512 ffa153c936a8e847a7ae070f915c3a6a7b770636061b7ac3a07e1c7ed81e973bd8b8c977eb796bffd38b1eaa3082169e0e77c70f88db34cc2a9154e7ee69339b +DIST linux-6.5-pf5.tar.gz 228002908 BLAKE2B 9a2aae312b54ff78546bc8c5930510bad72a6c856602adc404b8e4c1e59bba22445b263c8480377e17a5f2698c7efc21c75bf1ad06ebdee31a64fe8fdaa46ed9 SHA512 77cfd8f869b4b5da1f6109f16125605875246233880a71b27545a97bd76d42f78c07c419b7526c5313b591a055430fa8b4fd271192a872b944092520222f4a2f diff --git a/sys-kernel/pf-sources/pf-sources-6.5_p5.ebuild b/sys-kernel/pf-sources/pf-sources-6.5_p5.ebuild new file mode 100644 index 000000000000..2ee0009ae2d4 --- /dev/null +++ b/sys-kernel/pf-sources/pf-sources-6.5_p5.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 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 + 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" + +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 +} |