From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/scx/
Date: Thu, 13 Feb 2025 21:01:53 +0000 (UTC) [thread overview]
Message-ID: <1739480311.8253d91f05f1c54176810f3558352aee756a75d1.arthurzam@gentoo> (raw)
commit: 8253d91f05f1c54176810f3558352aee756a75d1
Author: Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Thu Feb 6 23:19:54 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 13 20:58:31 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8253d91f
sys-kernel/scx: add 1.0.9
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/40478
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sys-kernel/scx/Manifest | 2 +
sys-kernel/scx/scx-1.0.9.ebuild | 129 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 131 insertions(+)
diff --git a/sys-kernel/scx/Manifest b/sys-kernel/scx/Manifest
index 44637841539f..6fc5db05ace4 100644
--- a/sys-kernel/scx/Manifest
+++ b/sys-kernel/scx/Manifest
@@ -186,6 +186,8 @@ DIST ryu-1.0.18.crate 47713 BLAKE2B 409cdf4b4e77685394018371e91ad6fdb175ac57e1df
DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c
DIST scx-1.0.6.tar.gz 4172710 BLAKE2B 5d2cf3930c309b2753a08df80943af8c6a3a0d81fafc0f8b8f481aa8c1d8670cea4134f4d64a49b481b64fdcccb368c23eca86cc843fd83b482a22aef938a50d SHA512 16e9960a9411a6f9ed9f3b1a8c70eb8535c5fe79decfd5fccc11fe6463f227bc22a434f3509e14d6e49c66e658d03792f9cb9253bae4875f686310e4a45d5e06
DIST scx-1.0.8.tar.gz 4206261 BLAKE2B af9b832945ec99a188d437cd4ce898a93768910661bed8a48c8c8d4a93e0550c9f34d356a7b4c78bbf4afb8477f52c475eb0cfd3d6c91913556d473a9972b8b8 SHA512 dc9352a6d131b4dcda1a721dd792bebc159f439cef8b14d2c9b065c3144892931dfec23f5db802efb13d3961a00a36720f0295553099dcfa88b33dce6cbeebcf
+DIST scx-1.0.9.tar.gz 4552837 BLAKE2B 5f6aa0c37cc62f59ea87bf881f0aae41d94fb2884e140cffdfdb70a52a7330aaebcc483aff350c80172983061ee339e50dc4d2c480ada0d53c8c7391a51b547e SHA512 d17d0203d0f7144de72ecca37f8a9a8bcfa8b68c70a20a985bfcca16f49bce9cda8a5de57a6f2852ed679721b28bdb53ec3a01d0c17b4d0123eeb56e4ce8990f
+DIST scx-v1.0.9-crates.tar.xz 29505484 BLAKE2B 45ebc950b118535630ae0161721aa32fe0f1f9457e0146b26570bf46b7411c335882009ad8c4d640e8cdb06439423618c6ca60485fd21725e6893697ef379adb SHA512 ada609aa5f9d9a5523e037c48f6bbd65e82ea19bc6a0a293cb8f9ff1a3a12a26b3dcab182af2b207051ea4e900af903f3c4352553b2a9147d8c44ed805af74a2
DIST semver-1.0.23.crate 30622 BLAKE2B af5f7401daa2004ac1fc419ff907a65feb9b11743ad0feca0929bf2409eb81e03637ec5f92ba9f38ea386c4ee5cde72bd3d2042083e2fb0d6fa0b839b1c5093a SHA512 5ea1fa17c08d1280c3a4bc8d28494e88ee05acd5dc969ef6f0c6f91fd3b5a8fbe999c9e8bbd2da383413038b8d29fabf02b87bd5265bbb8333f3fcbe409103ec
DIST serde-1.0.210.crate 78338 BLAKE2B b3621d1313312177a346313e6e384fe9660f74eefb18e6cffa39fc2aadc0ab73be84b9037c59b716e5feafcd73f4f054f83e6d17d82746984b3064bf8d3ed338 SHA512 0d853ca51543ae8b4a0c70204ff4e559a4eec77af3d3bdcfc75c5905c80d4ffd1bd9eb8258ea4f6ecfbdd26477ecac7dd698d84d86759fa32e03a9cce02fa4ae
DIST serde_derive-1.0.210.crate 56020 BLAKE2B b346e574c99b6a8b12dfc29b20a4fd2daf8abfabd3714ccfde059a3a1f14a5628d4acf6a03f8076174fd28adfdb7cb9bbdb8ac0d4403aa2f43e917eed4b08028 SHA512 1c54d70a55007c00d3ff3d8c2096f4f9966431ba7bfd9195bcf41932de71b71c4ab934f9a8c5067cb56a042742cf0efab07377dbabf12feb1af6d20399de00b5
diff --git a/sys-kernel/scx/scx-1.0.9.ebuild b/sys-kernel/scx/scx-1.0.9.ebuild
new file mode 100644
index 000000000000..619570efafeb
--- /dev/null
+++ b/sys-kernel/scx/scx-1.0.9.ebuild
@@ -0,0 +1,129 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {16..19} )
+
+# List of crates for pycargoebuild:
+# rust/scx_{loader,rustland_core,stats,utils}
+# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty}
+CRATES="
+"
+
+RUST_MIN_VER="1.74.1"
+
+inherit llvm-r1 linux-info cargo rust-toolchain meson
+
+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-v${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"
+IUSE="openrc systemd"
+
+DEPEND="
+ virtual/libelf:=
+ sys-libs/zlib:=
+ >=dev-libs/libbpf-1.5:=
+ openrc? ( || (
+ sys-apps/openrc
+ sys-apps/openrc-navi
+ ) )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ app-misc/jq
+ >=dev-util/bpftool-7.5.0
+ $(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
+ ')
+"
+
+CONFIG_CHECK="
+ ~BPF
+ ~BPF_EVENTS
+ ~BPF_JIT
+ ~BPF_SYSCALL
+ ~DEBUG_INFO_BTF
+ ~FTRACE
+ ~SCHED_CLASS_EXT
+"
+
+QA_PREBUILT="/usr/bin/scx_loader"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Inject the rust_abi value into install_rust_user_scheds
+ sed -i "s;\${MESON_BUILD_ROOT};\${MESON_BUILD_ROOT}/$(rust_abi);" \
+ meson-scripts/install_rust_user_scheds || die
+
+ # bug #944832
+ sed -i 's;^#!/usr/bin/;#!/sbin/;' \
+ services/openrc/scx.initrd || die
+}
+
+src_configure() {
+ BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
+
+ local emesonargs=(
+ -Dbpf_clang="$(get_llvm_prefix)/bin/clang"
+ -Dbpftool=disabled
+ -Dlibbpf_a=disabled
+ -Dcargo="${EPREFIX}/usr/bin/cargo"
+ -Dcargo_home="${ECARGO_HOME}"
+ -Doffline=true
+ -Denable_rust=true
+ -Dlibalpm=disabled
+ $(meson_feature openrc)
+ $(meson_feature systemd)
+ )
+
+ cargo_env meson_src_configure
+}
+
+src_compile() {
+ cargo_env meson_src_compile
+}
+
+src_test() {
+ cargo_env meson_src_test
+}
+
+src_install() {
+ cargo_env meson_src_install
+
+ dodoc README.md
+
+ local readme readme_name
+ for readme in scheds/{rust,c}/*/README.md ./rust/*/README.md; do
+ [[ -e ${readme} ]] || continue
+ readme_name="${readme#*/rust/}"
+ readme_name="${readme_name#*/c/}"
+ readme_name="${readme_name%/README.md}"
+ newdoc "${readme}" "${readme_name}.md"
+ done
+}
next reply other threads:[~2025-02-13 21:01 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-13 21:01 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-24 1:29 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/scx/ Sam James
2025-09-15 7:41 Florian Schmaus
2025-09-15 7:41 Florian Schmaus
2025-09-15 7:41 Florian Schmaus
2025-08-13 23:58 Patrick McLean
2025-06-22 14:50 Sam James
2025-06-15 22:30 Sam James
2025-05-30 7:38 Florian Schmaus
2025-05-21 21:12 Sam James
2025-05-21 21:12 Sam James
2025-04-10 22:26 Sam James
2025-04-10 22:26 Sam James
2025-04-10 22:26 Sam James
2025-04-02 12:46 Florian Schmaus
2025-03-10 0:22 Sam James
2025-03-10 0:22 Sam James
2025-03-10 0:22 Sam James
2025-03-10 0:22 Sam James
2025-01-18 10:52 Florian Schmaus
2025-01-08 9:02 Florian Schmaus
2025-01-08 9:02 Florian Schmaus
2024-12-19 10:41 Florian Schmaus
2024-12-19 10:41 Florian Schmaus
2024-12-17 17:24 Patrick McLean
2024-11-26 16:50 Florian Schmaus
2024-11-26 16:32 Florian Schmaus
2024-11-08 7:50 Florian Schmaus
2024-10-12 10:32 Florian Schmaus
2024-10-12 10:32 Florian Schmaus
2024-10-11 18:00 Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739480311.8253d91f05f1c54176810f3558352aee756a75d1.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox