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