mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
sys-kernel/scx: add 1.1.1
Signed-off-by: Violet Purcell <vimproved@inventati.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/905 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
14e9f7bf29
commit
36eaeeb321
@@ -6,3 +6,5 @@ DIST scx-1.0.20-crates.tar.xz 51514256 BLAKE2B c0a771ed6e25aca5d2da074578f6edf65
|
||||
DIST scx-1.0.20.tar.gz 8333225 BLAKE2B 94278f7afde9df29279beb9fb0381bcadb6a008d0b537c3c0a964c184f019aa7d4017c376dcc535275fbcc9a1a4b01d9753880312a6f041b7ddc1398865e6866 SHA512 d5b9af8c2c6adab02feea164bb4aa492e1cdf0501183473208c0d02528a3b4b31e6d3e67df523e7558433cc566cacecfee2f58509edb2521dee71dfe18e81952
|
||||
DIST scx-1.1.0-crates.tar.xz 59959892 BLAKE2B 8449501c813fac890308a2f16fce2e34737c2216b150decb253b593bb9c76a2fa68e04798cf4999c8dbb02cde51aa7443c53d912d3087383dd8a0e4c6ae6cb3c SHA512 4030d28f2ba59c598e1e2d6a4b1666f5c0095e9b0efba2bbe2b4a839a4060ddf89839b47433dbf2fb435a3b679415577d42769dd50ab7091cf33cfe73aa8e2c7
|
||||
DIST scx-1.1.0.tar.gz 8512325 BLAKE2B cd2a0eebf635f0b73d06ac48c7689035ad2116c5ffd44b1cb4ad94882fd000a18eb6c459e5f69e87f70c38fbb328390e66beae093fcf026e7628daba303afbd5 SHA512 74255487c16457e0ff67a4d46aa5d042c0994ecda8bc9855a443034214045b1df0cc4468b9cd2cde90c17b57f5b45a19cf77b2bb6eb92668f4a27f1e74587a88
|
||||
DIST scx-1.1.1-crates.tar.xz 57570832 BLAKE2B 1fdfb79cb96999e7130283660b49b9c09e9fb66642cc6c0a21947340fd0fca5455a4b48b999f7ffc5263946ffd8de0013f14a15b6bc0d01e4386c28bcaf8eba4 SHA512 ef74c17fa586b461879a2fa177542d870542c69c13e86f5ba7d3f1925a13c73c7f2e4229999f463ca9653e0e07a885114a983400f86e846b43944d45694e00e2
|
||||
DIST scx-1.1.1.tar.gz 12169813 BLAKE2B 12442a4a71bef5a377a76649c2a23ee76c2af56e64f7058c37beb9490444ee06837541ace7012460855008709a6d0d3e9eee236e5020a93aa9f79931b48bc62b SHA512 7598fca26c74bd23e2670295bbfba380876882953f7487091624d9d8df45db0c47d8c83ba1903091d4c4d9143624e9c18f02ab4151f17e9073a88a90f4382aa3
|
||||
|
||||
108
sys-kernel/scx/scx-1.1.1.ebuild
Normal file
108
sys-kernel/scx/scx-1.1.1.ebuild
Normal file
@@ -0,0 +1,108 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {16..21} )
|
||||
|
||||
RUST_MIN_VER="1.88.0"
|
||||
|
||||
inherit cargo llvm-r2 linux-info
|
||||
|
||||
DESCRIPTION="sched_ext schedulers and tools"
|
||||
HOMEPAGE="https://github.com/sched-ext/scx"
|
||||
SRC_URI="
|
||||
https://github.com/sched-ext/scx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
if [[ ${PKGBUMPING} != ${PVR} ]]; then
|
||||
SRC_URI+="
|
||||
https://github.com/gentoo-crate-dist/scx/releases/download/v${PV}/scx-${PV}-crates.tar.xz
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/libbpf-1.6:=
|
||||
sys-libs/libseccomp
|
||||
virtual/libelf:=
|
||||
virtual/zlib:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
app-misc/jq
|
||||
dev-libs/protobuf[protoc(+)]
|
||||
>=dev-util/bpftool-7.5.0
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
|
||||
')
|
||||
"
|
||||
PDEPEND="~sys-kernel/scx-loader-${PV}"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~BPF
|
||||
~BPF_EVENTS
|
||||
~BPF_JIT
|
||||
~BPF_JIT_ALWAYS_ON
|
||||
~BPF_JIT_DEFAULT_ON
|
||||
~BPF_SYSCALL
|
||||
~DEBUG_INFO_BTF
|
||||
~FTRACE
|
||||
~KALLSYMS_ALL
|
||||
~SCHED_CLASS_EXT
|
||||
"
|
||||
|
||||
QA_PREBUILT="/usr/bin/vmlinux_docify"
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
llvm-r2_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local -x BPF_CLANG=clang-${LLVM_SLOT}
|
||||
cargo_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Skip broken tests in scx_mitosis and scx_utils
|
||||
# Upstream: https://github.com/sched-ext/scx/issues/3418
|
||||
cargo_src_test -- \
|
||||
--skip cell_manager::tests::test_borrowable_cpumasks_respects_cpuset \
|
||||
--skip cell_manager::tests::test_cpuset_parsing_from_file \
|
||||
--skip cell_manager::tests::test_deficit_all_cells_exceed_target \
|
||||
--skip cell_manager::tests::test_symmetric_pairwise_overlap_produces_equal_cells \
|
||||
--skip cpumask::tests::test_to_cpulist_roundtrip
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einfo "Installing schedulers"
|
||||
local sched
|
||||
for sched in scheds/rust/scx_*; do
|
||||
einfo "Installing ${sched#scheds/rust/}"
|
||||
dobin "target/$(usex debug debug release)/${sched#scheds/rust}"
|
||||
done
|
||||
|
||||
einfo "Installing tools"
|
||||
dobin target/$(usex debug debug release)/{scx{cash,top},vmlinux_docify}
|
||||
|
||||
dodoc README.md
|
||||
|
||||
local readme readme_name
|
||||
for readme in scheds/rust/*/README.md ./rust/*/README.md; do
|
||||
[[ -e ${readme} ]] || continue
|
||||
readme_name="${readme#*/rust/}"
|
||||
readme_name="${readme_name%/README.md}"
|
||||
newdoc "${readme}" "${readme_name}.md"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user