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, 11 Jun 2021 04:47:05
Message-Id: 1623386814.105460de423519e5e081c2a5463ead6d8a383be3.juippis@gentoo
1 commit: 105460de423519e5e081c2a5463ead6d8a383be3
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 11 04:43:01 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 04:46:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105460de
7
8 sys-kernel/pf-sources: bump to 5.12-pf5
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 sys-kernel/pf-sources/Manifest | 1 +
13 sys-kernel/pf-sources/pf-sources-5.12_p5.ebuild | 73 +++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
17 index 5b0c00d86a2..c23b135f095 100644
18 --- a/sys-kernel/pf-sources/Manifest
19 +++ b/sys-kernel/pf-sources/Manifest
20 @@ -21,4 +21,5 @@ DIST pf-sources-5.12_p1.patch 2785321 BLAKE2B 6010dcc736c6e068cb5aed9df790df6795
21 DIST pf-sources-5.12_p2.patch 4252808 BLAKE2B 2c23009ba31caa7f5e6268d854af2bb2f9db2831a67cb34ef535fe1914d913f057f514aa8ce7c1a8a63374498c56d9bcce0662ed4ec3a888e2e7518b339196c1 SHA512 e2da600deeea7e16667bd0c9e0be9349f47441a4d9c2f06f66fb4f2a78c1b2c596a502cc35c6d9aea3ffcdb26461299f3446b5bb5a9b88b059806eb4db80d2b2
22 DIST pf-sources-5.12_p3.patch 4818489 BLAKE2B f2d729477ebe5016889de4d216e7ae824d1e4f8401129679d527c42fa1189b1e473711c77a8cb14de84bad9abbbdd2fc0ee3fa82dda64133c1af0ac42593a32a SHA512 6663710d313585ea279a86370d0e6c12e892abc6cb0c2481e81b70abfe427b0ec247d672ffa31587365b474efb2041c53ac99e39737bdc1529e3f1d9688bfe21
23 DIST pf-sources-5.12_p4.patch 5002181 BLAKE2B 6e018a8c9f4eaec7b565fb3ad38cf371a59bce2620f2a95d6c1bac33205e717eb6ba312d573130d9316b744de6444714dd484a9d2906352a9bf9a953b3f5c2c2 SHA512 aeafa5a290fa3e3d942986ed6deff4f5ef60f0cb8307c1d77cbe34a5007d674e037c0cedc14ea9d090aa4f1ba4f69e80936af1d61391a656608a29528e4702cf
24 +DIST pf-sources-5.12_p5.patch 5560118 BLAKE2B 4d47eee16ca58acb4aa38cbdde09742fed9575457dc2e90df00b0d0dc557a8f35156acb3777598a619834201c842d598fa2cb6087ebfe01722f5b67c85ce4bc3 SHA512 72d387fa0d76dbe6a5692a894de384adba6faf8e5523a849dd94d3d44cc12bbc07ae0b8c4a9da255cf4215488ef38987902698c62e191077c4613cf40b2faf63
25 DIST pf-sources-5.9_p7.patch 3027972 BLAKE2B 9247ea63b30f9d42d79303b73a900d468a71e703333932f7f15ae697cdba52c46358297023e037226c219fad5df912fb5d21e6f4b7190556ca799fa84924480e SHA512 c69e14f59bf98944b3329c65b7e2c271d74a756bc8c890130bf3cc68b4b96d31f1c33c4edb128580fcaefeb6e42dd04b1eb3d7f071b2d58bc764d26322bda8cd
26
27 diff --git a/sys-kernel/pf-sources/pf-sources-5.12_p5.ebuild b/sys-kernel/pf-sources/pf-sources-5.12_p5.ebuild
28 new file mode 100644
29 index 00000000000..32d3aa0a799
30 --- /dev/null
31 +++ b/sys-kernel/pf-sources/pf-sources-5.12_p5.ebuild
32 @@ -0,0 +1,73 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +# Define what default functions to run
39 +ETYPE="sources"
40 +
41 +# No 'experimental' USE flag provided, but we still want to use genpatches
42 +K_EXP_GENPATCHES_NOUSE="1"
43 +
44 +# Just get basic genpatches, -pf patch set already includes vanilla-linux updates
45 +K_GENPATCHES_VER="1"
46 +
47 +# -pf already sets EXTRAVERSION to kernel Makefile
48 +K_NOSETEXTRAVERSION="1"
49 +
50 +# Not supported by the Gentoo security team
51 +K_SECURITY_UNSUPPORTED="1"
52 +
53 +# We want the very basic patches from gentoo-sources, experimental patch is
54 +# already included in pf-sources
55 +K_WANT_GENPATCHES="base extras"
56 +
57 +SHPV="${PV/_p*/}"
58 +
59 +inherit kernel-2 optfeature
60 +detect_version
61 +
62 +DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
63 +HOMEPAGE="https://gitlab.com/post-factum/pf-kernel/-/wikis/README
64 + https://dev.gentoo.org/~mpagano/genpatches/"
65 +SRC_URI="${KERNEL_URI}
66 + https://github.com/pfactum/pf-kernel/compare/v${SHPV}...v${SHPV}-pf${PV/*_p/}.diff -> ${P}.patch
67 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz
68 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz
69 + https://raw.githubusercontent.com/GKernelCI/linux-patches/${SHPV}/5020_BMQ-and-PDS-io-scheduler-v${SHPV}-r0.patch
70 + https://raw.githubusercontent.com/GKernelCI/linux-patches/${SHPV}/5021_BMQ-and-PDS-gentoo-defaults-v${SHPV}-r0.patch
71 + https://raw.githubusercontent.com/GKernelCI/linux-patches/${SHPV}/1510_fs-enable-link-security-restrictions-by-default.patch -> 1510_fs-enable-link-security-restrictions-by-default-${SHPV}.patch"
72 +
73 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
74 +
75 +S="${WORKDIR}/linux-${PVR}-pf"
76 +
77 +PATCHES=( "${DISTDIR}/${P}.patch"
78 + "${DISTDIR}/1510_fs-enable-link-security-restrictions-by-default-${SHPV}.patch"
79 + "${DISTDIR}/5020_BMQ-and-PDS-io-scheduler-v${SHPV}-r0.patch"
80 + "${DISTDIR}/5021_BMQ-and-PDS-gentoo-defaults-v${SHPV}-r0.patch" )
81 +
82 +K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
83 + see: ${HOMEPAGE}."
84 +
85 +pkg_setup() {
86 + ewarn ""
87 + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
88 + ewarn "If you need support, please contact the pf developers directly."
89 + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
90 + ewarn "the ebuilds. Thank you."
91 + ewarn ""
92 +
93 + kernel-2_pkg_setup
94 +}
95 +
96 +src_prepare() {
97 + # kernel-2_src_prepare doesn't apply PATCHES().
98 + default
99 +}
100 +
101 +pkg_postinst() {
102 + kernel-2_pkg_postinst
103 +
104 + optfeature "userspace KSM helper" sys-process/uksmd
105 +}