Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/pf-sources/
Date: Fri, 04 Mar 2022 08:07:18
Message-Id: 1646381233.798601533027f33f78acd9b2045b9bedceb562cc.juippis@gentoo
1 commit: 798601533027f33f78acd9b2045b9bedceb562cc
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 4 08:06:12 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 4 08:07:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79860153
7
8 sys-kernel/pf-sources: add 5.16-pf5
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 sys-kernel/pf-sources/Manifest | 2 +
13 sys-kernel/pf-sources/pf-sources-5.16_p5.ebuild | 76 +++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
17 index 2fcb21542b24..c35f364ec897 100644
18 --- a/sys-kernel/pf-sources/Manifest
19 +++ b/sys-kernel/pf-sources/Manifest
20 @@ -12,6 +12,8 @@ DIST pf-sources-5.15_p6.patch 5753774 BLAKE2B a56166b285b5c8cfb1697f5180584ed025
21 DIST pf-sources-5.16_p2.patch 847815 BLAKE2B d83c28770b0d2575107e858898f8019950303fd9e34d535fad6d6273e44a57402c96a24af7d6f7c66899d21897baaaaeb46335a59955482370993efd754df44d SHA512 34e36df51c14812517bb55ed436fcb7ddd42dfc85f800a7d5aa3c41a6e94168d253d2c3a2aadd5d4b6edf8a7c5aa646956a79094fde68628b2a5849a7b166a48
22 DIST pf-sources-5.16_p3.patch 2622064 BLAKE2B e5a9a11c713648a3a94c15b21f4f6d20965510cc05cbe432ae354c1601e2de828634abd3e5b29e839d99a26ecf62e73e5d9365b64bbb41b3796592da4ae59abf SHA512 8c88d5650d29b4cfe3e5f1996c9dc14ad5b7f61c3cdcf5ac6ff9fb9db6e82ad60916e1f0fa30ebfa100a37c51a48e15fadb7ab56fb0ea3f3007e0f2773c16b34
23 DIST pf-sources-5.16_p4.patch 3065274 BLAKE2B 52254316c04676ea47aed373fe367f145eec33bc091a3673f2a678dbfd92f04dbe0675d8a3ba5dac2833ea6c078a25c15b799bf6dcc94f1c433636d8d9cc4c6b SHA512 664b3e32a76ac35f846baf907b8b6814d1605fe2a56b40ea832f803aa3c517e7cb4b06c02730b858ec06fe95badd8a89acc58f21ae1b4320c02c09388592a87c
24 +DIST pf-sources-5.16_p5.patch 3607099 BLAKE2B 4b8659457862fb7c86215b19558b06dc66f8fd94362ac6030428e8a0c2a4bb99855ea55305bd086b39700c755ef6b245c91c2d0d3c7bc6d95a0226184740f82a SHA512 677843b205699feca6c932ad08b300756506b8d603bc2c636c0e1cda1cc344041aeec979c5846dc247361073e62034d00feaa62decc465a01ae827ccd3a03afa
25 DIST prjc-v5.16-1uo.patch 282840 BLAKE2B 9c6a27d999604febd831fb69d9722af3597096871d3330d750dd9ec3fefb79b7460d24c7713ce02aa8eba04222d0e112662fad21cdc1398b2e7e18f0a77ce629 SHA512 a18f38d7ac71159e0619f97665993eaeaf832bc08240aafd46a5c8a41a489de6b79bfbfe4bb104a655ca866174e79dbadae29a751e96864ebfb14e60756ab22a
26 DIST prjc-v5.16-3uo.patch 270250 BLAKE2B b7ece53ae330499fa0da813428f1fd974fe540bf2cacb14122d50fde8a286c5edc3b5092a2316e38bd02c3ea3449932048ea35a10211f0008e5142aefcfd09a4 SHA512 5e86c21ac65effa184047c4e6238fc0f2c65d22d946d72f3325b75f7de80c0113f0380fcc1a9ba6219679895ecb74234bb13bb363573107d04315c83ef9cc68a
27 +DIST prjc-v5.16-4uo.patch 270113 BLAKE2B e88ec884ec8a539f9acc55844193d98c009d820bf18d8a6ca4dcb03d796897a15efc7006b35a736f31218895ffaf5cc83851a12f4db1b8e56b69ac8518347d02 SHA512 2f9eaef69d2125f6b23da3e597e2ed508266a93e3c3e1a0a04c1ba378448f8267a0985748b8de215c23fbbc62820a46da47671ff2e3ffd77f41bcca79cc11436
28 DIST prjc_v5.15-r1.patch 266858 BLAKE2B 110a03b5658200f7414922cf4ed361b6127c08d99359111209c86d951907626c92ff1e50f6906a0f56534e24aa2f35520dae11fa0d148ade488b93a401cb706f SHA512 1abcd3f10941b6e342cabb5fcd3d2a097ceb2451acad09336d3b191ace0bccca23202d87cc916fc0bacaf977e96b26a85e2b6729a08117c4cbe40a470dbf6eaa
29
30 diff --git a/sys-kernel/pf-sources/pf-sources-5.16_p5.ebuild b/sys-kernel/pf-sources/pf-sources-5.16_p5.ebuild
31 new file mode 100644
32 index 000000000000..17e4cb3993fe
33 --- /dev/null
34 +++ b/sys-kernel/pf-sources/pf-sources-5.16_p5.ebuild
35 @@ -0,0 +1,76 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +# Define what default functions to run
42 +ETYPE="sources"
43 +
44 +# No 'experimental' USE flag provided, but we still want to use genpatches
45 +K_EXP_GENPATCHES_NOUSE="1"
46 +
47 +# Just get basic genpatches, -pf patch set already includes vanilla-linux updates
48 +K_GENPATCHES_VER="1"
49 +
50 +# -pf already sets EXTRAVERSION to kernel Makefile
51 +K_NOSETEXTRAVERSION="1"
52 +
53 +# Not supported by the Gentoo security team
54 +K_SECURITY_UNSUPPORTED="1"
55 +
56 +# We want the very basic patches from gentoo-sources, experimental patch is
57 +# already included in pf-sources
58 +K_WANT_GENPATCHES="base extras"
59 +
60 +# major kernel version, e.g. 5.14
61 +SHPV="${PV/_p*/}"
62 +
63 +# https://gitlab.com/alfredchen/projectc/ revision for a major version,
64 +# e.g. prjc-v5.14-r2 = 2
65 +PRJC_R=4
66 +
67 +inherit kernel-2 optfeature
68 +detect_version
69 +
70 +DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
71 +HOMEPAGE="https://gitlab.com/post-factum/pf-kernel/-/wikis/README
72 + https://dev.gentoo.org/~mpagano/genpatches/"
73 +SRC_URI="${KERNEL_URI}
74 + https://github.com/pfactum/pf-kernel/compare/v${SHPV}...v${SHPV}-pf${PV/*_p/}.diff -> ${P}.patch
75 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz
76 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz
77 + https://dev.gentoo.org/~juippis/patches/pf-sources/${SHPV}/prjc-v${SHPV}-${PRJC_R}uo.patch
78 + https://dev.gentoo.org/~mpagano/genpatches/trunk/5.15/5021_BMQ-and-PDS-gentoo-defaults.patch -> 5021_BMQ-and-PDS-gentoo-defaults-5.15.patch"
79 +
80 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
81 +
82 +S="${WORKDIR}/linux-${PVR}-pf"
83 +
84 +PATCHES=( "${DISTDIR}/${P}.patch"
85 + "${DISTDIR}/prjc-v${SHPV}-${PRJC_R}uo.patch"
86 + "${DISTDIR}/5021_BMQ-and-PDS-gentoo-defaults-5.15.patch" )
87 +
88 +K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
89 + see: ${HOMEPAGE}."
90 +
91 +pkg_setup() {
92 + ewarn ""
93 + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
94 + ewarn "If you need support, please contact the pf developers directly."
95 + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
96 + ewarn "the ebuilds. Thank you."
97 + ewarn ""
98 +
99 + kernel-2_pkg_setup
100 +}
101 +
102 +src_prepare() {
103 + # kernel-2_src_prepare doesn't apply PATCHES().
104 + default
105 +}
106 +
107 +pkg_postinst() {
108 + kernel-2_pkg_postinst
109 +
110 + optfeature "userspace KSM helper" sys-process/uksmd
111 +}