mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
sys-kernel/pf-sources: add 7.0_p1
Signed-off-by: Ivan S. Titov <iohann.s.titov@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46068 Closes: https://github.com/gentoo/gentoo/pull/46068 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
9f5f71f84a
commit
eb2760dbd2
@@ -4,6 +4,9 @@ DIST genpatches-6.18-10.base.tar.xz 595340 BLAKE2B 0c83bfd6474e5e0e2a5c114466207
|
||||
DIST genpatches-6.18-10.extras.tar.xz 4324 BLAKE2B b87a2631899b124e8ffbea47b2d1b57dc8b4a2e76bd5019128e456fbef507a854d1a9bd1fbe8597ac1940dac186082f4ed608da4e9dc6c6fec5750c4a0a412c8 SHA512 fbc639ddb801c70cb7067fad412ec92ad8e84226a752b035c79903751db6ad4b816d3dcf80624ffcc39c31d44d021f52e61969c59afc0ffc622d535c1aac95aa
|
||||
DIST genpatches-6.19-10.base.tar.xz 898796 BLAKE2B 0f5e2a412042e7180d497df245d22e8d2a643d8a54e2bc6a73e8141526d3a89b1b5f7d87dd185d03294adfbeb8c380b5de00c1f047430a3e41eacb3b6c395676 SHA512 235160131d725c78b337b854d9298e64078e86996adebda85fca3b74445b60054ddf9a04e0bf6d01521debe2e9f8522d069022be6fb704644743f2454ce83013
|
||||
DIST genpatches-6.19-10.extras.tar.xz 4324 BLAKE2B 01844b9db209b1d92bbbafd87df83b664bef4b7845c9c40e6b09edcb03da1d3b50656bdc74dec7b78911126d4c63ee41963b94a1849861682c16eae9c4d71715 SHA512 bd0c5f02207b4ca0d4701b6630eb2f746bb32bc361b830871c24c2e1504206a28f5ab26f74544e88bf14e79d91ba9181cbf771f5ea4a6ef74dde13f15da7073d
|
||||
DIST genpatches-7.0-1.base.tar.xz 6992 BLAKE2B 90ef87ec861d6e645c9c7cb645985c84c3bcc4c516a30dc83d948bde284b88f3317a2e862add417dceb594f7695ba846594912168da29c9ef201554d9e8b51b1 SHA512 7900d45a9f0655db4106165107fb0b51867752278a35c324525418e7982660438bf97fef92a0168a513559157e8b9d76286da30099cccb5438c384809672c39a
|
||||
DIST genpatches-7.0-1.extras.tar.xz 4324 BLAKE2B 3aaa70843de0b5130a448f4be837bf250077059b3103b13f7b8fda36f36d7f2ba17a8f9f9f959ee7d16c1b863a10b245e5b8073cc991744004bd6c768325791f SHA512 83c04969b52c84301ae7fac9c3607bc2e6fdeb7f126217fe03c2938b8185e227b1ce2599456238f48cc9fcf958aa2c652acd12b7525c31b60f4547127541d843
|
||||
DIST linux-6.17-pf4.tar.gz 253598641 BLAKE2B 5a6774f02f1ea67e587cf1374c8e826bb2bf73ddaed3741d60f02ae2c84217ea845233b0ff01d2043b61cf360f1b5a289d329deb41cec804106a63e9296e7619 SHA512 4abf01fbedbc448b0714f175112e35c6e1d1ace89ce3a4ea93978fb3c7e138daa2710bd718255dd59ec90d9ada554179988ae2bd0ca9798798ee76ab3e24b454
|
||||
DIST linux-6.18-pf6.tar.gz 254953102 BLAKE2B 2eb7606d9a28a70dec23853bb321b78642c0202e6e891ddb5601afec1938365906171cfb53507d7b24167f62e55850d75f0e1fb570589a9ad06831b1bea159dc SHA512 80dd56acaa51577dda10f56679897ab679306d0b9693ba71c44bf66cf4ee9f81cb039492e731c5a9628f2a5fb66b1511ab8d4650d0a9afd5be28bea158fe9ac6
|
||||
DIST linux-6.19-pf5.tar.gz 257556076 BLAKE2B 0687bfee723acc5f0c370a3c6ee35a219408c90cd72bde5e621a610a2388a3d6dc1abdc6ae2a43ff9a2be740d14367dac679cb2de619a3a22d299f7e2c65e210 SHA512 04b4c5caa3cf3b00d48be999e57ac1b7a1f0040175c67b22955adcb07bac14f99b1a3faf3cb613933532b9fa317c435bd97e4161b57be3eaa4fc3fbb796f58bb
|
||||
DIST linux-7.0-pf1.tar.gz 259987054 BLAKE2B 64a94c6b68ec5de3872c44de26452e6a540097e19cc653969b746891d5fbd261ffbe8da3f548bf5c1edbc96424c52b1aa89237656c41926c82f15991f8517a78 SHA512 89a59932bb1645736791676dcd25e9969375296d5a0a167f4dd6d7ddd3b79bba5fd05c88001b0bec5711804f9b63f20590dc83dce17a8fb067744525b5426857
|
||||
|
||||
94
sys-kernel/pf-sources/pf-sources-7.0_p1.ebuild
Normal file
94
sys-kernel/pf-sources/pf-sources-7.0_p1.ebuild
Normal file
@@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2026 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/~alicef/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
|
||||
}
|
||||
Reference in New Issue
Block a user