1 |
commit: de73ed6e1529b631ac54167b45288ac65dd76d3d |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 06:47:03 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 06:47:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de73ed6e |
7 |
|
8 |
sys-kernel/pf-sources: add 5.19-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.19_p3.ebuild | 95 +++++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest |
17 |
index ab88e631b0f3..06985059e062 100644 |
18 |
--- a/sys-kernel/pf-sources/Manifest |
19 |
+++ b/sys-kernel/pf-sources/Manifest |
20 |
@@ -5,5 +5,7 @@ DIST genpatches-5.19-1.extras.tar.xz 3772 BLAKE2B 1d418c3d5d328e9704ba10d7483cd5 |
21 |
DIST linux-5.18-pf5.tar.gz 206988172 BLAKE2B ae5abdee064b429019d7aaa4801d0bf852ed94dfef3965486cbc58d084e68ab9276651297857c1e64d5430e8b17728d1ebd7db597afd7ed7580d100e84431921 SHA512 dde7c08750858a719c70ff332df67b73432ace56571c73dfb7af7bf4ab4d5b5fbfb94486ac97b4b95e252f51a3be125fdb05a3abdc1b7443fb45ca4074810996 |
22 |
DIST linux-5.19-pf1.tar.gz 212145719 BLAKE2B 20264648efeac1589dfc76fc065860d9c7134661dd5ff1bb76996864ec7fee1f3cf6198d76da0d7cb5c1b9ca5fb1cccd2c63bb33e4d5fc9ba012c2cea8a38357 SHA512 eeef1d04add939a7826e7a25f5286606070e508c8ca4817a7e7616f947bdb1684819954d068e45964aa297df105a26dd996ee4662a182b3726010607df98edf7 |
23 |
DIST linux-5.19-pf2.tar.gz 212143056 BLAKE2B 75f4c627ac88de7d2ab4b62d6b463d6832534e96353819ee1f7b2dc37473fe659dab613908f358824d91605c8223e6c5da49d6ecec7f84f4e56f345c8694d7ef SHA512 36f2381177de874f199d6549425be592aab4b86081d2db33bdb351614a426b3c529e707beef26d57e9d0f9270ad495acd574ab0b89f3f09125b37ee9f052adc0 |
24 |
+DIST linux-5.19-pf3.tar.gz 212207383 BLAKE2B 9630bbefdee791020ee623da621811e614259ed24744dceca851b55f25fc649a62be2f2feb61ad2c081bf8282fcd8ab48118fede042ed08ee4c69433e9b34738 SHA512 45f4f31af66a097b37ba00cb23e1452c80823626f5b0040ae8ed81d084cc329a820272e3a9ecaa54dfefbcc810e03eaf65919173eb99c21d7898a156b801321f |
25 |
+DIST prjc-519-r1-vd-test.patch 274504 BLAKE2B 87950689ffe97134100aa91d0ff89acd6f4e93b626ad7ab08af464a49457f16526cae7b863d53213dd129d47b6f97b3407ae7027b02656d9eba85942241e8d3f SHA512 d652b6060400329d051257fedee5d9f37a70554ab722e93a15f294d1c6229bfa227941461147e0128178b02875cdf838e0d71e89884d8c01e7549ee482213b71 |
26 |
DIST prjc_v5.18-r2.patch 270353 BLAKE2B 15d7ed7a0eb6f7ad37feaf52ab7c383e1c7c3e72fb41a767c8d1151a0ad41255c216ede1e4938a041f3b628874ed61398c61dd7b0e0b62090730f2fd0f6a70db SHA512 25c558bd6281a09bb611c6cca68084b27d0f2e290d2c0575e88b6a94322fad86de6dbeda30eb77919edd5adff921ad445593d9478f115ec93fa2e4c7ed6b5c1e |
27 |
DIST prjc_v5.19-r0.patch 271689 BLAKE2B 6bc109b462670602eba8ccba55cbcf9902402c627e40c62a3a574828847a518d84d35d30e786b2f1edd4365a3eaa3a2b358f20c013bb2789b30804c37fe12d45 SHA512 27011aa6586ca8c7ec953593f68289b437a7ddab841eb5e45dfca1fdfed5ddb59cf0e197703d4c62c2cd792fca9f2c97f341ffc5ee48a9ca3aff26f9505280ba |
28 |
|
29 |
diff --git a/sys-kernel/pf-sources/pf-sources-5.19_p3.ebuild b/sys-kernel/pf-sources/pf-sources-5.19_p3.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..6122df43812f |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/pf-sources/pf-sources-5.19_p3.ebuild |
34 |
@@ -0,0 +1,95 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
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 |
+# Replace "_p" with "-pf" |
63 |
+PFPV="${PV/_p/-pf}" |
64 |
+ |
65 |
+# https://gitlab.com/alfredchen/projectc/ revision for a major version, |
66 |
+# e.g. prjc-v5.14-r2 = 2 |
67 |
+PRJC_R=0 |
68 |
+ |
69 |
+inherit kernel-2 optfeature |
70 |
+detect_version |
71 |
+ |
72 |
+DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches" |
73 |
+HOMEPAGE="https://codeberg.org/pf-kernel/linux/wiki/README |
74 |
+ https://dev.gentoo.org/~mpagano/genpatches/" |
75 |
+SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz |
76 |
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz |
77 |
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz |
78 |
+ https://gitlab.com/torvic9/linux519-vd/-/raw/master/prjc-519-r1-vd-test.patch" |
79 |
+# https://gitlab.com/alfredchen/projectc/-/raw/master/${SHPV}/prjc_v${SHPV}-r${PRJC_R}.patch" |
80 |
+ |
81 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
82 |
+ |
83 |
+S="${WORKDIR}/linux-${PFPV}" |
84 |
+ |
85 |
+#PATCHES=( "${DISTDIR}/prjc_v${SHPV}-r${PRJC_R}.patch" ) |
86 |
+PATCHES=( "${DISTDIR}/prjc-519-r1-vd-test.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_unpack() { |
103 |
+ # Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override |
104 |
+ # the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here. |
105 |
+ unpack ${A} |
106 |
+ |
107 |
+ mv linux linux-${PFPV} || die "Failed to move source directory" |
108 |
+} |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ # kernel-2_src_prepare doesn't apply PATCHES(). After pf-sources moved to Codeberg, we need |
112 |
+ # to manually eapply the genpatches too. |
113 |
+ eapply "${WORKDIR}"/*.patch |
114 |
+ default |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ # Fixes "wrongly" detected directory name, bgo#862534. |
119 |
+ local KV_FULL="${PFPV}" |
120 |
+ kernel-2_pkg_postinst |
121 |
+ |
122 |
+ optfeature "userspace KSM helper" sys-process/uksmd |
123 |
+} |
124 |
+ |
125 |
+pkg_postrm() { |
126 |
+ # Same here, bgo#862534. |
127 |
+ local KV_FULL="${PFPV}" |
128 |
+ kernel-2_pkg_postrm |
129 |
+} |