sys-kernel/scx: drop 1.0.12, 1.0.14

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus 2025-11-21 22:10:44 +01:00
parent dcf34c9c1f
commit 32e013ba1f
No known key found for this signature in database
GPG Key ID: 2239A7E8F5852052
3 changed files with 0 additions and 277 deletions

View File

@ -1,8 +1,3 @@
DIST scx-1.0.12-crates.tar.xz 30612908 BLAKE2B eb18a835fff1a6482ab0a745355de64b9bba557bc574fb7b7f94c3115b8bd23b31fb5ac1944e95f70f9d50b1a146cabbf45ec7117ba03323e53687afcf344355 SHA512 b0fffefdfd44b2f326898bc6fd757d69f2445a8916061128058764e904ee4c21e1a41f0328e1e2db81c1d913442c734f27eb0ba825c935a1aba70ad6ad5f97e0
DIST scx-1.0.12-remove-unnecessary-rustc-requirement.patch 917 BLAKE2B 4cb308340492e26fa47c7a1cc01d99ad8c4f5edc76a47136fa7893b005dc09de8b3f05edf84b42bc26860b94d2b47c1056d4a56c5594c849a1d568040251d434 SHA512 da3b83e89aeccbfa241f43422a8f1b2b1a8a678e2948bb8596816e35f65c73cba04af2200c7793def5b78832794b295e7704438ae4e3c6dfa3bc77300438cfc3
DIST scx-1.0.12.tar.gz 4702884 BLAKE2B fe812e98986bd6eda63f6a0b51774da08e75832805e27e57085a0eee8f8b5309d56daeee8d28ad7dda54f980442fa7a1834474edaff98fd984e4ed523c9a115e SHA512 5ee06c65c516b3f9a72d81865efb05dab68552ce781b856eb936622b9afe0935f1423f92daddb5b17e3159d6574bb79fa6c4dcc15a8a124ee0c23fe212458632
DIST scx-1.0.14-crates.tar.xz 44676328 BLAKE2B 4e74857975734f81c6e1d6f9ff7d098dabace034407539cc9b7b13d1ce546d784d52a210b8ecf2fee1085c8f442a64ca4ae8d561da1f863991e53e206e2ff71b SHA512 b585cdc7fbef16818191936afa0448b50f8f505b8532580aa328869219d566c394ec17ea194b91b7243c4b82bc948b58d3f45988359793380bfd74c64aca6509
DIST scx-1.0.14.tar.gz 4775481 BLAKE2B 026e758f81455b5d5a2776f3cca8fd59d047ad792125603bb76c4d374ce8348982c3625159066ff8647988f98963d1975f9ddbdde4129b2fb4a598b4b447d2e2 SHA512 6b269cf0208f0f63e592f49d089084e78fbbeb10be74b9e800f5377c7b5f811e222c8b0dd2a3beb35b87a0d1f979b7b479f975662b6e035f26b211a37dcaa9e4
DIST scx-1.0.15-crates.tar.xz 57595716 BLAKE2B 64808bfe2ec3d47eb7032ddbf282c64b11fa24826dc3e48be79c133471c2144dd5ee07b84d7cbed55ff926acd3729e48190dfa6b9b7490338f06dd00bc5e9156 SHA512 03d80ade134473b11711a615ae04e99f6dad6900f7ba8617deeacf21e47562a6b40938504468774fc78bab8ac05f8772d0176185f7b5ee26112b079547cfbfaa
DIST scx-1.0.15.tar.gz 5421849 BLAKE2B f5313835910e13d1a738a245a958a64333d4e7887be37776b85029cfcc17eadf32223e7b3335160bd81056a00fbffe7fec960ef5d8e685e1f7a2102d9a0ae257 SHA512 5a6652a2983825f59be8156825b8b6f547d1ff9e00c7f139c28e8eb87f389346263eeb4cdf289b078ef54915cbc119d3e2330b32f245c06fc1239562446528d8
DIST scx-1.0.16-crates.tar.xz 50792600 BLAKE2B 3091319dbe1b1e36e30e098e092ed842c97ead64d3dfca0c057d8ec16081ded864c05bc070950856c272a07c2954c93642c1258b4a5d2b25e0ea4c95ef9d5c08 SHA512 407b6ab026f76e43cbf6d8431d1105c36a595d71076430d185ccc0178f13e66b654db49fc98ca459f13b519941bedd6b699e71864ce6165e977c6c4a374ecaa2

View File

@ -1,136 +0,0 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {16..20} )
CRATES="
"
RUST_MIN_VER="1.74.1"
inherit llvm-r2 linux-info cargo rust-toolchain toolchain-funcs 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}
https://github.com/sched-ext/scx/commit/d58dffa2d02557b11a3a0c3f780a48234e868065.patch
-> ${PN}-1.0.12-remove-unnecessary-rustc-requirement.patch
"
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="systemd"
DEPEND="
virtual/libelf:=
virtual/zlib:=
>=dev-libs/libbpf-1.5:=
"
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
"
PATCHES=(
"${FILESDIR}/${PN}-1.0.12-musl-ioctl.patch"
"${DISTDIR}/${PN}-1.0.12-remove-unnecessary-rustc-requirement.patch"
)
QA_PREBUILT="/usr/bin/scx_loader"
pkg_setup() {
linux-info_pkg_setup
llvm-r2_pkg_setup
rust_pkg_setup
}
src_prepare() {
default
if tc-is-cross-compiler; then
# 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
fi
# 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
-Dopenrc=disabled
$(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
newinitd services/openrc/scx.initrd scx
insinto /etc/default
doins services/scx
dosym ../default/scx /etc/conf.d/scx
}

View File

@ -1,136 +0,0 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {16..20} )
CRATES="
"
RUST_MIN_VER="1.74.1"
inherit llvm-r2 linux-info cargo rust-toolchain toolchain-funcs 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="systemd"
DEPEND="
virtual/libelf:=
sys-libs/libseccomp
virtual/zlib:=
>=dev-libs/libbpf-1.5:=
"
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(-)]
')
"
PATCHES=(
# backport
"${FILESDIR}/${P}-builtin-preserve-enum-value.patch"
)
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-r2_pkg_setup
rust_pkg_setup
}
src_prepare() {
default
if tc-is-cross-compiler; then
# 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
fi
# 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
-Dopenrc=disabled
$(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
newinitd services/openrc/scx.initrd scx
insinto /etc/default
doins services/scx
dosym ../default/scx /etc/conf.d/scx
}