Skip to content

Commit

Permalink
upd pf-sources
Browse files Browse the repository at this point in the history
  • Loading branch information
istitov committed Dec 3, 2024
1 parent c01c190 commit 5b29b72
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys-kernel/pf-sources/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ DIST genpatches-6.11-2.base.tar.xz 31476 BLAKE2B d32c81fb764115748f4f25a0f9af671
DIST genpatches-6.11-2.extras.tar.xz 4056 BLAKE2B 3f465186cd74ddde1200eef68b11a8c9fbdf6f4e6806ad32f6c89919dfd6fc670af4442408a10c5857d74d0955becc88a46dd09ef93cf462d4a6ab3e7c917090 SHA512 0fe772dba8abf415f5bc7837be2669abb0cc6ebaf162b0779ed320da76ea3a97f044fda2e88f5a2b904a78e37bc2e93f89e4b0a07c64cfc6c577e7b2016d0241
DIST genpatches-6.11-6.base.tar.xz 561884 BLAKE2B 8fd4ee418b02f2dad7e8599477d03dc56b7e3ab8752d9e73bec91e9f7e01d1615aaf4d14b1091314bd82a15ff443b16d3cb4be58c4a46f33a1f95ff8bb85d82f SHA512 109f1e9e562eac0c606ef621bd2ebc4bda96a26002999765e31551edc6070c46de6c24dc4387389f964fdde485aee0048e01bf5189997b84111334c2f239d5f8
DIST genpatches-6.11-6.extras.tar.xz 4056 BLAKE2B 7884aa8796e7b79db2b0db6aff5cf02119ac092d95529e0d0ee78ae5458faddf4fdc288b222f3126bb40749cb2ebb7bf2ac3fc6f77f1d2fb46d53b4b62b75c7e SHA512 b7c927e5bf90be5afb0cd479d385c7170316cf74c2aff136ab966734c82e6f4a1791a12124c7a73065711ba22f9260a3094f2bfbc8d0674ba46c158b2e147774
DIST genpatches-6.12-1.base.tar.xz 5532 BLAKE2B bd7e1d6705bbd769d51ce9df396b1ae67caf6f36e25b845282901ba451e251b7e7090c33d928fec87e4142810063cf3d6b8877f46094339a1eef837969f7169e SHA512 11b8b02b77ed4adce89b20571fb07a143252b34a741572c3bd206f263406fb54c6b1862e0672af99af3bcb86b82c72a22b042839804a550ffd9145f74591ff9d
DIST genpatches-6.12-1.extras.tar.xz 4060 BLAKE2B f98eaa042810d9e812f2114092b56fdd00346ed4db015c866096e6b977da8084ee32cf614815c85d95ad37b928fb761c247ac222875c221b57418f923ac93452 SHA512 ec794371b92df368a2d99dcc0a726e6dd0c0914030da4355cf35f0bc629a70fd6e936d4ff242f3f1b3c8866e12838a5521c928bf44891b5ecd3435babee6e3de
DIST genpatches-6.2-1.base.tar.xz 4308 BLAKE2B 0b28cf39d9977e5a5c6fe446c0bc318b33f37995897ec379e6ee6d5420a73cd4d3ccf78111df1a2bbe9ee568c6fde6d7c52ba4f01a8b9534c71b597de65aa850 SHA512 da9ab52792c8b6881cf7718128889ccb536723ad7362ccc89be734a479ab6a03f6c844bd97197f3a4574d3bf4278ad10f453a57d076d297586be1db3ac2380c8
DIST genpatches-6.2-1.extras.tar.xz 3808 BLAKE2B e2e6b77fde25dda7c048376fa1435b7ae77eb6889e69bc7f516435a29335d30bc60ccadf196f37408430f5f9899f5502e05404b4bb5ffc8a9e48a6918103780b SHA512 b44df841c08ef03d0638b3b1ebea014979d4e1f70f70c9db21d2a531d7856f0a2eab74d9ad411e0c7387caade6a5cf1afe9e0153d83e51924c881af079c18c83
DIST genpatches-6.3-1.base.tar.xz 4304 BLAKE2B 24ef2e99be1e444526f6786cae000cfb63ea8c0e1107cea066daf2bd7336f1bb968e59395163d3d6a816d92add61b07f58642c3d55ff4b8b341a88a574e57845 SHA512 b20adc8f05814eba47c1a088005e6b04135efd3a388db55693e88f1f039242b60a3749bbac9c5c84f99a1f8a9ac9f7cca0c2f67e9cac465781b43fa1e71db525
Expand Down Expand Up @@ -45,6 +47,7 @@ DIST linux-6.11-pf1.tar.gz 243072051 BLAKE2B cfd9e2a7dc92de7ba6a8bc9362e93bef8b8
DIST linux-6.11-pf2.tar.gz 243066507 BLAKE2B d08aa3e3d2e2b17fe7dd343dc4d894bd1f4e6387c0d5e87ce1eb8c13f80155002106bfcee93a6b0132f6c23ff77da1385089f92c82b4bf69fa3cc69fdac613f5 SHA512 634b1035c2551a7268a6f1644eee78c2cf03803f1b4bec5fbbe022a56329c31002c65a7d4d5e1cf873d00db43c9b4839e9dcc8bb42d52074bd378504d96d18a8
DIST linux-6.11-pf3.tar.gz 243073814 BLAKE2B 14c95ae522f41c0043e7c2d06eaa15aacee3aa8f2d54fd28416496e1ce0473609fdbbb66a0eadc52762850d3ee37770c3b7679eb176dc025b7a97f491433504f SHA512 df1d36ddd57b3328c770f2bbc6df7483cb0af46b7a315f662e385ee9e6cf755d1606fae8a5101402fcc0146c82bd50a4a5ae532902d1234a47fab7779b269210
DIST linux-6.11-pf4.tar.gz 243072952 BLAKE2B 11865d6538a4490d21fbe1caf4be680c72c8af2b9eb6609329809035e03785f5598f69dbc30e058a1fbee3ace4214b466ba359cce2cd8674c2ccd06dd0e42b23 SHA512 29aba18b3929b9f57c0529962545968378466a33513addb0ca6afe7d6ed56a5d1abf40600f319b6183ab06e21dd13f60bad907d87615b389a78fde537362bec0
DIST linux-6.12-pf1.tar.gz 244699573 BLAKE2B 11b2874a148da6a3bf6825be11d280d2550b85a2720d662bd81290bfde49229390ccf6d4e12c6419a6dcb6becf1f628c33e3f0aab350d3dcdd588ea88ab71db5 SHA512 e69f4187912794adb37a6d3446796c56f1d968763fc6a53806b1368f59c59b5ad627b3ddbb0dcb026ce37c5ccf219c20f58fa7c38a3d050dcd65cc97572893eb
DIST linux-6.2-pf7.tar.gz 222943378 BLAKE2B 414277f7d9a256b9ae6c2f14886019b4c22bac69558ef225c3b45e9d4e58727429b32528aad124d8bc764b5b7527074455aaeff25141530a5534630c81da4f6e SHA512 ffa153c936a8e847a7ae070f915c3a6a7b770636061b7ac3a07e1c7ed81e973bd8b8c977eb796bffd38b1eaa3082169e0e77c70f88db34cc2a9154e7ee69339b
DIST linux-6.3-pf5.tar.gz 223560069 BLAKE2B b0382a35d4196827b609693289a4da01aca608a77040b963c5806269686c50ddeb5b01fee44d81632ef5baaf012e6e3071a4975478a242f996acdbe1071f87b5 SHA512 1a30f26ac624dccc418fbca75a1d62331a493c37a95ab79ebd59ff29814b9eae8402566cd312274819d66827b5e640a4d416929615bf3683d8bb13c919957b59
DIST linux-6.4-pf6.tar.gz 226016445 BLAKE2B a369cfd66be2287e98af4e982990432b9a536b5f175ffcef10bd63c3937bf6899e7002cbdfd70cdc808b93988eb940b1ccff7a28427a160e2ac3665bdcb946d0 SHA512 2bb85e364c87c976e575dc72050f11a41470dc6c3629982d364bebee351c79cb8ad906373ef6057e63f3ce3a5231d0d7b79a68c17445c315aae06ec768c042f2
Expand Down
94 changes: 94 additions & 0 deletions sys-kernel/pf-sources/pf-sources-6.12_p1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# Define what default functions to run.
ETYPE="sources"

# Use genpatches but don't include the 'experimental' use flag.
K_EXP_GENPATCHES_NOUSE="1"

# Genpatches version to use. -pf patch set already includes vanilla linux updates. Regularly "1"
# is the wanted value here, but the genpatches patch set can be bumped if it includes some
# important fixes. src_prepare() will handle deleting the updated vanilla linux patches.
# See https://archives.gentoo.org/gentoo-kernel/ (or subscribe to the list) to see all patches.
K_GENPATCHES_VER="1"

# -pf patch set already sets EXTRAVERSION to kernel Makefile.
K_NOSETEXTRAVERSION="1"

# pf-sources is not officially supported/covered by the Gentoo security team.
K_SECURITY_UNSUPPORTED="1"

# Define which parts to use from genpatches - experimental is already included in the -pf patch
# set.
K_WANT_GENPATCHES="base extras"

# Major kernel version, e.g. 5.14.
SHPV="${PV/_p*/}"

# Replace "_p" with "-pf", since using "-pf" is not allowed for an ebuild name by PMS.
PFPV="${PV/_p/-pf}"

inherit kernel-2 optfeature
detect_version

DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
HOMEPAGE="https://pfkernel.natalenko.name/
https://dev.gentoo.org/~mpagano/genpatches/"
SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz
${GENPATCHES_URI}"

S="${WORKDIR}/linux-${PFPV}"

KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"

K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

pkg_setup() {
ewarn ""
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn ""

kernel-2_pkg_setup
}

src_unpack() {
# Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override
# the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here.
unpack ${A}

mv linux linux-${PFPV} || die "Failed to move source directory"
}

src_prepare() {
# When genpatches basic version is bumped, it also includes vanilla linux updates. Those are
# already in the -pf patch set, so need to remove the vanilla linux patches to avoid conflicts.
if [[ ${K_GENPATCHES_VER} -ne 1 ]]; then
find "${WORKDIR}"/ -type f -name '10*linux*patch' -delete ||
die "Failed to delete vanilla linux patches in src_prepare."
fi

# kernel-2_src_prepare doesn't apply PATCHES(). Chosen genpatches are also applied here.
eapply "${WORKDIR}"/*.patch
default
}

pkg_postinst() {
# Fixes "wrongly" detected directory name, bgo#862534.
local KV_FULL="${PFPV}"
kernel-2_pkg_postinst

optfeature "userspace KSM helper" sys-process/uksmd
}

pkg_postrm() {
# Same here, bgo#862534.
local KV_FULL="${PFPV}"
kernel-2_pkg_postrm
}

0 comments on commit 5b29b72

Please sign in to comment.