public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/scx/
Date: Mon, 10 Mar 2025 00:22:58 +0000 (UTC)	[thread overview]
Message-ID: <1741566018.bc59667d554e2a5fd77851467fd3d61f5b59c882.sam@gentoo> (raw)

commit:     bc59667d554e2a5fd77851467fd3d61f5b59c882
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Sun Mar  9 16:04:20 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 00:20:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc59667d

sys-kernel/scx: add 1.0.10

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-kernel/scx/Manifest          |   2 +
 sys-kernel/scx/scx-1.0.10.ebuild | 126 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

diff --git a/sys-kernel/scx/Manifest b/sys-kernel/scx/Manifest
index 6fc5db05ace4..ea86d972732b 100644
--- a/sys-kernel/scx/Manifest
+++ b/sys-kernel/scx/Manifest
@@ -184,6 +184,8 @@ DIST rustix-0.38.36.crate 370932 BLAKE2B 0c4b963c9045fbb6fd2e4fc91888f574de53107
 DIST rustversion-1.0.17.crate 17621 BLAKE2B 1f077ca6fd90333724d1ea9df7f5b178f37f895b71a7b2814e9ba8618bffcd2307f9cb4ac2eea25d461a6686a4b5b51eebb80f1b1ccc773d4da1948c47fe8abe SHA512 0565cddecaedae17e7cd99bc34f54cda242d4c29cd4269f8e3b178ff91d49f3682e7ffe66e436bbb138299736c8e55cc143fefb74c076911fefcc41ba98064f3
 DIST ryu-1.0.18.crate 47713 BLAKE2B 409cdf4b4e77685394018371e91ad6fdb175ac57e1df9f902871f13208515e5a2ab1daa226fc1e7291278e64448332845be4cc9409bce3b2f3daed409259e104 SHA512 a9b2beac778ec47e6be303148d7512ee681bd2361f6e4ac6db32c8b4baf86a8c5eb5b0d02eacd6131ae88c7b5105c57018c3050676e0b3dd1ed9c4d2fd650e84
 DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15 SHA512 3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c
+DIST scx-1.0.10-crates.tar.xz 29845260 BLAKE2B 366a068bfb81f7be8d167831ace5c933c4af51b7ff1ec93e2b0dd398c4a1a098ffe286b750f46554a0440d325ba51f1a5aba5ac91c1e157ab8a2ae2dbd789200 SHA512 5d0e37d703b7c2d70eaef8eb6854d693eb0b32937f64f1d0b4a9186d57872610ef6d7d0cd5419b44dfd5c5063c370cfc9feeba59e97824539fe0573d92d8cf3a
+DIST scx-1.0.10.tar.gz 4634807 BLAKE2B 84a396b451a74be275730cd5d00c4476ad9b38008087594d11b80581d851f3ca7449367ace796888dbec66a66a165202c9d7b7bb060fe29cdc8d89673122b3ed SHA512 143bcd93d5c1f73d6d2b366460c702e14d7c6d5c7d83d9c83ff561e8b329d8520a8009c4551fce0775efe4d065f6cb6c2550dc626509170b6a7fe36aa884c3c4
 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

diff --git a/sys-kernel/scx/scx-1.0.10.ebuild b/sys-kernel/scx/scx-1.0.10.ebuild
new file mode 100644
index 000000000000..060fd1551ffb
--- /dev/null
+++ b/sys-kernel/scx/scx-1.0.10.ebuild
@@ -0,0 +1,126 @@
+# 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-${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 )
+"
+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
+}


             reply	other threads:[~2025-03-10  0:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-10  0:22 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-10  0:22 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/scx/ Sam James
2025-03-10  0:22 Sam James
2025-03-10  0:22 Sam James
2025-02-13 21:01 Arthur Zamarin
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=1741566018.bc59667d554e2a5fd77851467fd3d61f5b59c882.sam@gentoo \
    --to=sam@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