1 |
commit: b23cd7bb5d26b9c28a48c8b704d1e88e3b72c336 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 7 06:52:12 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 7 06:52:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b23cd7bb |
7 |
|
8 |
sys-kernel/pf-sources: add 5.19-pf1 |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/pf-sources/Manifest | 4 ++ |
13 |
sys-kernel/pf-sources/pf-sources-5.19_p1.ebuild | 93 +++++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest |
17 |
index badd9ccbee1d..2ac5bf1b639f 100644 |
18 |
--- a/sys-kernel/pf-sources/Manifest |
19 |
+++ b/sys-kernel/pf-sources/Manifest |
20 |
@@ -1,6 +1,10 @@ |
21 |
DIST genpatches-5.18-1.base.tar.xz 3800 BLAKE2B 52cf33aea903e8783b554127936ebde68b1c2655567a27a6dff8b94df675cde779f940735824766d2267c7d09df970522ed3721b3fe661dc12e64c4b105b4c99 SHA512 461037cb2fc9246f1e778123a9fd58682ed2749c95acd8d30dddc1a31a66cc4961bb5b133a05fd6fb19aea1a83bf0be8a76f9e6422fb4d696010d248609534a7 |
22 |
DIST genpatches-5.18-1.extras.tar.xz 3924 BLAKE2B b4c7e29f0237ae9e4e3300c8be75c0def63969e5c4dec52d4d5259a6b3b6d27406883e45d2ad4d0fe576a1285121037fb88fcdeab58a5fabbb58d4847cbfbbfe SHA512 0182a96feca475471d1dde2e8326067e98f8f43a6e9122e29635a52ae4ca56eaf6ac349b189a0198704c9adee62cbdbd2def7e90d2dad564c72bec2f8ff32ec9 |
23 |
+DIST genpatches-5.19-1.base.tar.xz 4080 BLAKE2B 27fe512fd700cc6fc1946ebe0b39b423f35fbdce3b6c2181e1e1c197dccf436c6ba285b8bbf74500c80c64c486831a88f0f548cbd787d925eefafe740764a839 SHA512 8ff90b26202ddb80890ce8a33debbb8b6b85432412e7f76fdbdd98e257e9be23ffa5c03c81cb8482b7a35099083dec800f766354b5886d4f8f7647e3354f97b6 |
24 |
+DIST genpatches-5.19-1.extras.tar.xz 3772 BLAKE2B 1d418c3d5d328e9704ba10d7483cd562e511f345a5cc6799abc52e6cdeca20efa61417f62eaf7aae2078a8bb05c7dbabe4f4ddba7ad4221b458bd5c589f29b47 SHA512 479d957a3348485baf6504a08cf06b334938656701b15067512c0f48e530c2e87ca281ad3af6e55c75a53d2e9e584d94fc030ee82c538a97a85cea9a9c8fe214 |
25 |
DIST linux-5.18-pf3.tar.gz 206979899 BLAKE2B e66670f81f55353f5850272316141833d5dfb804defd03bce2d1a84e404a2631cc5918714cb7dac75b4a9344d1cc597377bcdff94a034e5a544109e0ac2d12ae SHA512 85d9be125bc378ac5aada2f557e6636987c93a108bc7768ae3f314b03bdb4b2bfea66e4226ab04c6323464b3a299381356be49e85a458294fe3d39cd04ebed13 |
26 |
DIST linux-5.18-pf4.tar.gz 206956302 BLAKE2B 7eb7240792e2ab676facf7c3bae0811ec0db54c0d95d6ccd1ab60c50956e3fdb6cb4d5db3d77e5b08e7b18b78ffeebb5ac98d26ea4be0a7d04a49bc93421421d SHA512 b3b62618f0acb64f66369071eea503a0e894b3bb0c52941c738cc4ac7826a8327ddc32a27db02d493f3e022eacc18b1c7ed6d624b4a798e0773f17ee51f923fb |
27 |
DIST linux-5.18-pf5.tar.gz 206988172 BLAKE2B ae5abdee064b429019d7aaa4801d0bf852ed94dfef3965486cbc58d084e68ab9276651297857c1e64d5430e8b17728d1ebd7db597afd7ed7580d100e84431921 SHA512 dde7c08750858a719c70ff332df67b73432ace56571c73dfb7af7bf4ab4d5b5fbfb94486ac97b4b95e252f51a3be125fdb05a3abdc1b7443fb45ca4074810996 |
28 |
+DIST linux-5.19-pf1.tar.gz 212145719 BLAKE2B 20264648efeac1589dfc76fc065860d9c7134661dd5ff1bb76996864ec7fee1f3cf6198d76da0d7cb5c1b9ca5fb1cccd2c63bb33e4d5fc9ba012c2cea8a38357 SHA512 eeef1d04add939a7826e7a25f5286606070e508c8ca4817a7e7616f947bdb1684819954d068e45964aa297df105a26dd996ee4662a182b3726010607df98edf7 |
29 |
DIST prjc_v5.18-r2.patch 270353 BLAKE2B 15d7ed7a0eb6f7ad37feaf52ab7c383e1c7c3e72fb41a767c8d1151a0ad41255c216ede1e4938a041f3b628874ed61398c61dd7b0e0b62090730f2fd0f6a70db SHA512 25c558bd6281a09bb611c6cca68084b27d0f2e290d2c0575e88b6a94322fad86de6dbeda30eb77919edd5adff921ad445593d9478f115ec93fa2e4c7ed6b5c1e |
30 |
+DIST prjc_v5.19-r0.patch 271689 BLAKE2B 6bc109b462670602eba8ccba55cbcf9902402c627e40c62a3a574828847a518d84d35d30e786b2f1edd4365a3eaa3a2b358f20c013bb2789b30804c37fe12d45 SHA512 27011aa6586ca8c7ec953593f68289b437a7ddab841eb5e45dfca1fdfed5ddb59cf0e197703d4c62c2cd792fca9f2c97f341ffc5ee48a9ca3aff26f9505280ba |
31 |
|
32 |
diff --git a/sys-kernel/pf-sources/pf-sources-5.19_p1.ebuild b/sys-kernel/pf-sources/pf-sources-5.19_p1.ebuild |
33 |
new file mode 100644 |
34 |
index 000000000000..edc3b63a6ddd |
35 |
--- /dev/null |
36 |
+++ b/sys-kernel/pf-sources/pf-sources-5.19_p1.ebuild |
37 |
@@ -0,0 +1,93 @@ |
38 |
+# Copyright 1999-2022 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=8 |
42 |
+ |
43 |
+# Define what default functions to run |
44 |
+ETYPE="sources" |
45 |
+ |
46 |
+# No 'experimental' USE flag provided, but we still want to use genpatches |
47 |
+K_EXP_GENPATCHES_NOUSE="1" |
48 |
+ |
49 |
+# Just get basic genpatches, -pf patch set already includes vanilla-linux updates |
50 |
+K_GENPATCHES_VER="1" |
51 |
+ |
52 |
+# -pf already sets EXTRAVERSION to kernel Makefile |
53 |
+K_NOSETEXTRAVERSION="1" |
54 |
+ |
55 |
+# Not supported by the Gentoo security team |
56 |
+K_SECURITY_UNSUPPORTED="1" |
57 |
+ |
58 |
+# We want the very basic patches from gentoo-sources, experimental patch is |
59 |
+# already included in pf-sources |
60 |
+K_WANT_GENPATCHES="base extras" |
61 |
+ |
62 |
+# major kernel version, e.g. 5.14 |
63 |
+SHPV="${PV/_p*/}" |
64 |
+ |
65 |
+# Replace "_p" with "-pf" |
66 |
+PFPV="${PV/_p/-pf}" |
67 |
+ |
68 |
+# https://gitlab.com/alfredchen/projectc/ revision for a major version, |
69 |
+# e.g. prjc-v5.14-r2 = 2 |
70 |
+PRJC_R=0 |
71 |
+ |
72 |
+inherit kernel-2 optfeature |
73 |
+detect_version |
74 |
+ |
75 |
+DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches" |
76 |
+HOMEPAGE="https://codeberg.org/pf-kernel/linux/wiki/README |
77 |
+ https://dev.gentoo.org/~mpagano/genpatches/" |
78 |
+SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz |
79 |
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz |
80 |
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz |
81 |
+ https://gitlab.com/alfredchen/projectc/-/raw/master/${SHPV}/prjc_v${SHPV}-r${PRJC_R}.patch" |
82 |
+ |
83 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
84 |
+ |
85 |
+S="${WORKDIR}/linux-${PFPV}" |
86 |
+ |
87 |
+PATCHES=( "${DISTDIR}/prjc_v${SHPV}-r${PRJC_R}.patch" ) |
88 |
+ |
89 |
+K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, |
90 |
+ see: ${HOMEPAGE}." |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ ewarn "" |
94 |
+ ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." |
95 |
+ ewarn "If you need support, please contact the pf developers directly." |
96 |
+ ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" |
97 |
+ ewarn "the ebuilds. Thank you." |
98 |
+ ewarn "" |
99 |
+ |
100 |
+ kernel-2_pkg_setup |
101 |
+} |
102 |
+ |
103 |
+src_unpack() { |
104 |
+ # Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override |
105 |
+ # the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here. |
106 |
+ unpack ${A} |
107 |
+ |
108 |
+ mv linux linux-${PFPV} || die "Failed to move source directory" |
109 |
+} |
110 |
+ |
111 |
+src_prepare() { |
112 |
+ # kernel-2_src_prepare doesn't apply PATCHES(). After pf-sources moved to Codeberg, we need |
113 |
+ # to manually eapply the genpatches too. |
114 |
+ eapply "${WORKDIR}"/*.patch |
115 |
+ default |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ # Fixes "wrongly" detected directory name, bgo#862534. |
120 |
+ local KV_FULL="${PFPV}" |
121 |
+ kernel-2_pkg_postinst |
122 |
+ |
123 |
+ optfeature "userspace KSM helper" sys-process/uksmd |
124 |
+} |
125 |
+ |
126 |
+pkg_postrm() { |
127 |
+ # Same here, bgo#862534. |
128 |
+ local KV_FULL="${PFPV}" |
129 |
+ kernel-2_pkg_postrm |
130 |
+} |