From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- sys-kernel/scx/Manifest | 4 +- sys-kernel/scx/scx-1.0.5-r1.ebuild | 398 ------------------------------------ sys-kernel/scx/scx-1.0.5-r2.ebuild | 400 ++++++++++++++++++++++++++++++++++++ sys-kernel/scx/scx-1.0.6-r1.ebuild | 404 +++++++++++++++++++++++++++++++++++++ sys-kernel/scx/scx-1.0.6.ebuild | 402 ------------------------------------ 5 files changed, 806 insertions(+), 802 deletions(-) delete mode 100644 sys-kernel/scx/scx-1.0.5-r1.ebuild create mode 100644 sys-kernel/scx/scx-1.0.5-r2.ebuild create mode 100644 sys-kernel/scx/scx-1.0.6-r1.ebuild delete mode 100644 sys-kernel/scx/scx-1.0.6.ebuild (limited to 'sys-kernel/scx') diff --git a/sys-kernel/scx/Manifest b/sys-kernel/scx/Manifest index 99e9b78e2fd3..78fc4ab6e19d 100644 --- a/sys-kernel/scx/Manifest +++ b/sys-kernel/scx/Manifest @@ -287,6 +287,6 @@ DIST zerocopy-derive-0.7.35.crate 37829 BLAKE2B badeb7fa5e0bfe93a6788d93fd297604 DIST zvariant-4.2.0.crate 82180 BLAKE2B 6d8309a223c32eae3c1ba4291d69bab395a3ef0f65da1e380552d27ccc547a31cf32f9dcf2feecce34276c065d044d0c897c9468b6df4c16efa94a0668dd19eb SHA512 ae7329db133ff8c262443bfe6fc10698606501ecdde8295367f3876e9c590730778ad2d4977c27e26288c92737055897686e7a0d30210723279c33da7467af80 DIST zvariant_derive-4.2.0.crate 11057 BLAKE2B 891c141bfa0db95a5ac62ab2c31bef1215ef658a787d855c09c9b0e42485cd8aa52683c82a07394042615ec51b42ae5efcde81e7dbd2a35f7670888b28477df2 SHA512 8a50d143b38d57a757b3a6b6293c43d7db1a563ccf25002ad6b6a69b7c157765c604329659318a0cb64df1ecf78b3f0dbe88d6650740c016da9161719427f9c2 DIST zvariant_utils-2.1.0.crate 7043 BLAKE2B b891c5fc2b5afb5eba01b9068b454a965b4f07548c1a080fd5b598165994a5177a7df5f39cf7263ea8bcc5d054c7d87012ca1588737d630d96f24f0d00dee6cf SHA512 345b70d1106b37df41426efdb1ba49bf270e00898381c2a8021b5761c59efdea55def45cb2e2598b130b6cba8733503f3997a55578bca90867ab3e8f2346f80e -EBUILD scx-1.0.5-r1.ebuild 7641 BLAKE2B d0509e12e77581a78415b02b9d0355e6f99204cf1ea5bf71236aa3077a0876beec6c0cc7e11eb6e17ea59c9494ade984d08d253adf8db03e7c921c1029c4affc SHA512 338777253623e34aa85c5aa32dd326b1d1fd89514cf30388bc6205f2b1831f663688dfcf4f04598bcd6b5ca94f61b33276ba48dd65a689f11e0e0680dd160a65 -EBUILD scx-1.0.6.ebuild 7705 BLAKE2B 7239e479ad3f5d4e97e91cc975a89b12530e391538e01d417ade9af8b102aff66c9f9a9548c83be458237c9f2fe8a4392410c91a5ad42b02606ed2fbad4a09c6 SHA512 ecc1b714c63ba04bf347bf5c9f6bf904e34935598c6f60a697fde628f6361ea9f4d30e3bf77c9034eaeea92a4c348bade581b35a40c9858d774e049f39f0bc65 +EBUILD scx-1.0.5-r2.ebuild 7659 BLAKE2B 7651dd94c1b7744f58144df372d965d3961163efc32595a5a3dd6f68f9fa07d0a7dc02b94b4aa6dfa2a87bab0cb3196e672f9b1afd7c0c6f5b731d21551bd83a SHA512 754a21cecff00f6168771140b9436431a75feb21a304b96ef1daff0eb4a013e0511861d60caf4282308da1554f1ea81322aaf90fb6c5bea2dfca36491ac926a7 +EBUILD scx-1.0.6-r1.ebuild 7723 BLAKE2B cf138e42811752331af3674a2c2ecf7d796922a2772375e21e00fef50110721107a4a3552fdf2449f590924aa0333b22d0eb4ddb55aaa8f4083a9ef1ca933790 SHA512 ee14dc8c5171a67d8675272d3f1993659eba3091344ece79868f293b68ff6cbc8b858db43b081e243a9b8360b0a6ceec88847de96592e2ff73c2ab0fd34fe648 MISC metadata.xml 786 BLAKE2B 5cd78c254f6c4247a76fc3b65aef3046f4419fe2e5b2f6a52f61d8a01c17a8b17a5a0d2459c037aafff5c2fe98a8c1c5949bf72e6ef6542d53e371db38526b36 SHA512 f79a9746f9dee0f3f992aaa36a02616ad04223bc04b0d9ab4858d7d33d2360b32a721f8565df4cc84e616f0e7674585c31c6968795691d741a46983586986348 diff --git a/sys-kernel/scx/scx-1.0.5-r1.ebuild b/sys-kernel/scx/scx-1.0.5-r1.ebuild deleted file mode 100644 index 6956284d3b74..000000000000 --- a/sys-kernel/scx/scx-1.0.5-r1.ebuild +++ /dev/null @@ -1,398 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {16..18} ) - -# List of crates for pycargoebuild: -# rust/scx_{loader,rustland_core,stats,utils} -# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty} -CRATES=" - addr2line@0.24.1 - adler2@2.0.0 - ahash@0.8.11 - aho-corasick@1.1.3 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - anstream@0.6.15 - anstyle-parse@0.2.5 - anstyle-query@1.1.1 - anstyle-wincon@3.0.4 - anstyle@1.0.8 - anyhow@1.0.87 - async-broadcast@0.7.1 - async-channel@2.3.1 - async-io@2.3.4 - async-lock@3.4.0 - async-process@2.2.4 - async-recursion@1.1.1 - async-signal@0.2.10 - async-task@4.7.1 - async-trait@0.1.82 - atomic-waker@1.1.2 - autocfg@1.3.0 - backtrace@0.3.74 - bindgen@0.69.4 - bitflags@1.3.2 - bitflags@2.6.0 - bitvec@1.0.1 - block-buffer@0.10.4 - blocking@1.6.1 - bumpalo@3.16.0 - byteorder@1.5.0 - bytes@1.7.1 - camino@1.1.9 - cargo-platform@0.1.8 - cargo_metadata@0.15.4 - cargo_metadata@0.18.1 - cc@1.1.18 - cexpr@0.6.0 - cfg-if@1.0.0 - cfg_aliases@0.2.1 - chrono@0.4.38 - clang-sys@1.8.1 - clap@4.5.17 - clap_builder@4.5.17 - clap_derive@4.5.13 - clap_lex@0.7.2 - colorchoice@1.0.2 - colored@2.1.0 - concurrent-queue@2.5.0 - const_format@0.2.31 - const_format_proc_macros@0.2.31 - convert_case@0.6.0 - core-foundation-sys@0.8.7 - cpufeatures@0.2.14 - crossbeam-channel@0.5.13 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-queue@0.3.11 - crossbeam-utils@0.8.20 - crossbeam@0.8.4 - crypto-common@0.1.6 - ctrlc@3.4.5 - darling@0.20.10 - darling_core@0.20.10 - darling_macro@0.20.10 - deranged@0.3.11 - digest@0.10.7 - either@1.13.0 - endi@1.1.0 - endian-type@0.1.2 - enumflags2@0.7.10 - enumflags2_derive@0.7.10 - equivalent@1.0.1 - errno@0.3.9 - event-listener-strategy@0.5.2 - event-listener@5.3.1 - fastrand@2.1.1 - fb_procfs@0.7.1 - filetime@0.2.25 - fnv@1.0.7 - funty@2.0.0 - futures-core@0.3.30 - futures-io@0.3.30 - futures-lite@2.3.0 - futures-sink@0.3.30 - futures-task@0.3.30 - futures-util@0.3.30 - generic-array@0.14.7 - getrandom@0.2.15 - gimli@0.31.0 - glob@0.3.1 - gpoint@0.2.1 - hashbrown@0.14.5 - heck@0.5.0 - hermit-abi@0.3.9 - hermit-abi@0.4.0 - hex@0.4.3 - home@0.5.9 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.60 - ident_case@1.0.1 - indexmap@2.5.0 - is_terminal_polyfill@1.70.1 - itertools@0.12.1 - itertools@0.13.0 - itoa@1.0.11 - js-sys@0.3.70 - lazy_static@1.5.0 - lazycell@1.3.0 - libbpf-cargo@0.24.4 - libbpf-rs@0.24.4 - libbpf-sys@1.4.5+v1.4.5 - libc@0.2.158 - libloading@0.8.5 - libredox@0.1.3 - linux-raw-sys@0.4.14 - log@0.4.22 - memchr@2.7.4 - memmap2@0.5.10 - memoffset@0.6.5 - memoffset@0.9.1 - metrics-util@0.17.0 - metrics@0.23.0 - minimal-lexical@0.2.1 - miniz_oxide@0.8.0 - mio@1.0.2 - nibble_vec@0.1.0 - nix@0.25.1 - nix@0.29.0 - nom@7.1.3 - ntapi@0.4.1 - num-conv@0.1.0 - num-traits@0.2.19 - num_cpus@1.16.0 - num_threads@0.1.7 - nvml-wrapper-sys@0.8.0 - nvml-wrapper@0.10.0 - object@0.36.4 - once_cell@1.19.0 - openat@0.1.21 - ordered-float@3.9.2 - ordered-float@4.2.2 - ordered-stream@0.2.0 - parking@2.2.1 - paste@1.0.15 - pin-project-lite@0.2.14 - pin-utils@0.1.0 - piper@0.2.4 - pkg-config@0.3.30 - plain@0.2.3 - polling@3.7.3 - portable-atomic@1.7.0 - powerfmt@0.2.0 - ppv-lite86@0.2.20 - prettyplease@0.2.22 - proc-macro-crate@3.2.0 - proc-macro2@1.0.86 - quanta@0.12.3 - quote@1.0.37 - radium@0.7.0 - radix_trie@0.2.1 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - raw-cpuid@11.1.0 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.5.3 - regex-automata@0.4.7 - regex-syntax@0.6.29 - regex-syntax@0.8.4 - regex@1.10.6 - rustc-demangle@0.1.24 - rustc-hash@1.1.0 - rustix@0.38.36 - rustversion@1.0.17 - ryu@1.0.18 - same-file@1.0.6 - semver@1.0.23 - serde@1.0.210 - serde_derive@1.0.210 - serde_json@1.0.128 - serde_repr@0.1.19 - sha1@0.10.6 - shlex@1.3.0 - signal-hook-registry@1.4.2 - simple_logger@5.0.0 - simplelog@0.12.2 - sketches-ddsketch@0.2.2 - slab@0.4.9 - smallvec@1.13.2 - socket2@0.5.7 - sorted-vec@0.8.3 - sscanf@0.4.2 - sscanf_macro@0.4.2 - static_assertions@1.1.0 - strsim@0.10.0 - strsim@0.11.1 - syn@2.0.77 - sysinfo@0.31.4 - tap@1.0.1 - tar@0.4.41 - tempfile@3.12.0 - termcolor@1.4.1 - terminal_size@0.3.0 - thiserror-impl@1.0.63 - thiserror@1.0.63 - threadpool@1.8.1 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tokio-macros@2.4.0 - tokio@1.40.0 - toml_datetime@0.6.8 - toml_edit@0.22.20 - tracing-attributes@0.1.27 - tracing-core@0.1.32 - tracing@0.1.40 - typenum@1.17.0 - uds_windows@1.1.0 - unicase@2.7.0 - unicode-ident@1.0.12 - unicode-segmentation@1.11.0 - unicode-width@0.1.12 - unicode-xid@0.2.5 - utf8parse@0.2.2 - vergen@8.3.2 - version-compare@0.1.1 - version_check@0.9.5 - vsprintf@2.0.0 - walkdir@2.5.0 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.93 - wasm-bindgen-macro-support@0.2.93 - wasm-bindgen-macro@0.2.93 - wasm-bindgen-shared@0.2.93 - wasm-bindgen@0.2.93 - web-sys@0.3.70 - which@4.4.2 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.9 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-core@0.52.0 - windows-core@0.57.0 - windows-implement@0.57.0 - windows-interface@0.57.0 - windows-result@0.1.2 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-sys@0.59.0 - windows-targets@0.48.5 - windows-targets@0.52.6 - windows@0.57.0 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.6 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.6 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.6 - windows_i686_gnullvm@0.52.6 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.6 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.6 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.6 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.6 - winnow@0.6.18 - wrapcenum-derive@0.4.1 - wyz@0.5.1 - xattr@1.3.1 - xdg-home@1.3.0 - zbus@4.4.0 - zbus_macros@4.4.0 - zbus_names@3.0.0 - zerocopy-derive@0.7.35 - zerocopy@0.7.35 - zvariant@4.2.0 - zvariant_derive@4.2.0 - zvariant_utils@2.1.0 -" - -inherit linux-info cargo rust-toolchain llvm-r1 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} -" - -LICENSE="GPL-2" -# Dependent crate licenses -LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB" - -SLOT="0" -KEYWORDS="~amd64" -IUSE="openrc systemd" - -DEPEND=" - virtual/libelf:= - sys-libs/zlib:= - >=dev-libs/libbpf-1.3:= - openrc? ( || ( - sys-apps/openrc - sys-apps/openrc-navi - ) ) -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - app-misc/jq - dev-util/bpftool - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)] - ') - >=virtual/rust-1.72 -" - -CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~FTRACE - ~SCHED_CLASS_EXT -" - -pkg_setup() { - linux-info_pkg_setup - llvm-r1_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 -} - -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 -} diff --git a/sys-kernel/scx/scx-1.0.5-r2.ebuild b/sys-kernel/scx/scx-1.0.5-r2.ebuild new file mode 100644 index 000000000000..b2528d6fa81e --- /dev/null +++ b/sys-kernel/scx/scx-1.0.5-r2.ebuild @@ -0,0 +1,400 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {16..18} ) + +# List of crates for pycargoebuild: +# rust/scx_{loader,rustland_core,stats,utils} +# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty} +CRATES=" + addr2line@0.24.1 + adler2@2.0.0 + ahash@0.8.11 + aho-corasick@1.1.3 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anstream@0.6.15 + anstyle-parse@0.2.5 + anstyle-query@1.1.1 + anstyle-wincon@3.0.4 + anstyle@1.0.8 + anyhow@1.0.87 + async-broadcast@0.7.1 + async-channel@2.3.1 + async-io@2.3.4 + async-lock@3.4.0 + async-process@2.2.4 + async-recursion@1.1.1 + async-signal@0.2.10 + async-task@4.7.1 + async-trait@0.1.82 + atomic-waker@1.1.2 + autocfg@1.3.0 + backtrace@0.3.74 + bindgen@0.69.4 + bitflags@1.3.2 + bitflags@2.6.0 + bitvec@1.0.1 + block-buffer@0.10.4 + blocking@1.6.1 + bumpalo@3.16.0 + byteorder@1.5.0 + bytes@1.7.1 + camino@1.1.9 + cargo-platform@0.1.8 + cargo_metadata@0.15.4 + cargo_metadata@0.18.1 + cc@1.1.18 + cexpr@0.6.0 + cfg-if@1.0.0 + cfg_aliases@0.2.1 + chrono@0.4.38 + clang-sys@1.8.1 + clap@4.5.17 + clap_builder@4.5.17 + clap_derive@4.5.13 + clap_lex@0.7.2 + colorchoice@1.0.2 + colored@2.1.0 + concurrent-queue@2.5.0 + const_format@0.2.31 + const_format_proc_macros@0.2.31 + convert_case@0.6.0 + core-foundation-sys@0.8.7 + cpufeatures@0.2.14 + crossbeam-channel@0.5.13 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.20 + crossbeam@0.8.4 + crypto-common@0.1.6 + ctrlc@3.4.5 + darling@0.20.10 + darling_core@0.20.10 + darling_macro@0.20.10 + deranged@0.3.11 + digest@0.10.7 + either@1.13.0 + endi@1.1.0 + endian-type@0.1.2 + enumflags2@0.7.10 + enumflags2_derive@0.7.10 + equivalent@1.0.1 + errno@0.3.9 + event-listener-strategy@0.5.2 + event-listener@5.3.1 + fastrand@2.1.1 + fb_procfs@0.7.1 + filetime@0.2.25 + fnv@1.0.7 + funty@2.0.0 + futures-core@0.3.30 + futures-io@0.3.30 + futures-lite@2.3.0 + futures-sink@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + generic-array@0.14.7 + getrandom@0.2.15 + gimli@0.31.0 + glob@0.3.1 + gpoint@0.2.1 + hashbrown@0.14.5 + heck@0.5.0 + hermit-abi@0.3.9 + hermit-abi@0.4.0 + hex@0.4.3 + home@0.5.9 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + ident_case@1.0.1 + indexmap@2.5.0 + is_terminal_polyfill@1.70.1 + itertools@0.12.1 + itertools@0.13.0 + itoa@1.0.11 + js-sys@0.3.70 + lazy_static@1.5.0 + lazycell@1.3.0 + libbpf-cargo@0.24.4 + libbpf-rs@0.24.4 + libbpf-sys@1.4.5+v1.4.5 + libc@0.2.158 + libloading@0.8.5 + libredox@0.1.3 + linux-raw-sys@0.4.14 + log@0.4.22 + memchr@2.7.4 + memmap2@0.5.10 + memoffset@0.6.5 + memoffset@0.9.1 + metrics-util@0.17.0 + metrics@0.23.0 + minimal-lexical@0.2.1 + miniz_oxide@0.8.0 + mio@1.0.2 + nibble_vec@0.1.0 + nix@0.25.1 + nix@0.29.0 + nom@7.1.3 + ntapi@0.4.1 + num-conv@0.1.0 + num-traits@0.2.19 + num_cpus@1.16.0 + num_threads@0.1.7 + nvml-wrapper-sys@0.8.0 + nvml-wrapper@0.10.0 + object@0.36.4 + once_cell@1.19.0 + openat@0.1.21 + ordered-float@3.9.2 + ordered-float@4.2.2 + ordered-stream@0.2.0 + parking@2.2.1 + paste@1.0.15 + pin-project-lite@0.2.14 + pin-utils@0.1.0 + piper@0.2.4 + pkg-config@0.3.30 + plain@0.2.3 + polling@3.7.3 + portable-atomic@1.7.0 + powerfmt@0.2.0 + ppv-lite86@0.2.20 + prettyplease@0.2.22 + proc-macro-crate@3.2.0 + proc-macro2@1.0.86 + quanta@0.12.3 + quote@1.0.37 + radium@0.7.0 + radix_trie@0.2.1 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + raw-cpuid@11.1.0 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.5.3 + regex-automata@0.4.7 + regex-syntax@0.6.29 + regex-syntax@0.8.4 + regex@1.10.6 + rustc-demangle@0.1.24 + rustc-hash@1.1.0 + rustix@0.38.36 + rustversion@1.0.17 + ryu@1.0.18 + same-file@1.0.6 + semver@1.0.23 + serde@1.0.210 + serde_derive@1.0.210 + serde_json@1.0.128 + serde_repr@0.1.19 + sha1@0.10.6 + shlex@1.3.0 + signal-hook-registry@1.4.2 + simple_logger@5.0.0 + simplelog@0.12.2 + sketches-ddsketch@0.2.2 + slab@0.4.9 + smallvec@1.13.2 + socket2@0.5.7 + sorted-vec@0.8.3 + sscanf@0.4.2 + sscanf_macro@0.4.2 + static_assertions@1.1.0 + strsim@0.10.0 + strsim@0.11.1 + syn@2.0.77 + sysinfo@0.31.4 + tap@1.0.1 + tar@0.4.41 + tempfile@3.12.0 + termcolor@1.4.1 + terminal_size@0.3.0 + thiserror-impl@1.0.63 + thiserror@1.0.63 + threadpool@1.8.1 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tokio-macros@2.4.0 + tokio@1.40.0 + toml_datetime@0.6.8 + toml_edit@0.22.20 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing@0.1.40 + typenum@1.17.0 + uds_windows@1.1.0 + unicase@2.7.0 + unicode-ident@1.0.12 + unicode-segmentation@1.11.0 + unicode-width@0.1.12 + unicode-xid@0.2.5 + utf8parse@0.2.2 + vergen@8.3.2 + version-compare@0.1.1 + version_check@0.9.5 + vsprintf@2.0.0 + walkdir@2.5.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.93 + wasm-bindgen-macro-support@0.2.93 + wasm-bindgen-macro@0.2.93 + wasm-bindgen-shared@0.2.93 + wasm-bindgen@0.2.93 + web-sys@0.3.70 + which@4.4.2 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.9 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-core@0.52.0 + windows-core@0.57.0 + windows-implement@0.57.0 + windows-interface@0.57.0 + windows-result@0.1.2 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-sys@0.59.0 + windows-targets@0.48.5 + windows-targets@0.52.6 + windows@0.57.0 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.6 + winnow@0.6.18 + wrapcenum-derive@0.4.1 + wyz@0.5.1 + xattr@1.3.1 + xdg-home@1.3.0 + zbus@4.4.0 + zbus_macros@4.4.0 + zbus_names@3.0.0 + zerocopy-derive@0.7.35 + zerocopy@0.7.35 + zvariant@4.2.0 + zvariant_derive@4.2.0 + zvariant_utils@2.1.0 +" + +RUST_MIN_VER="1.74.1" + +inherit llvm-r1 cargo linux-info meson rust-toolchain + +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} +" + +LICENSE="GPL-2" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="openrc systemd" + +DEPEND=" + virtual/libelf:= + sys-libs/zlib:= + >=dev-libs/libbpf-1.3:= + openrc? ( || ( + sys-apps/openrc + sys-apps/openrc-navi + ) ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + app-misc/jq + dev-util/bpftool + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)] + ') +" + +CONFIG_CHECK=" + ~BPF + ~BPF_EVENTS + ~BPF_JIT + ~BPF_SYSCALL + ~DEBUG_INFO_BTF + ~FTRACE + ~SCHED_CLASS_EXT +" + +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 +} + +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 +} diff --git a/sys-kernel/scx/scx-1.0.6-r1.ebuild b/sys-kernel/scx/scx-1.0.6-r1.ebuild new file mode 100644 index 000000000000..4b40f8f109f9 --- /dev/null +++ b/sys-kernel/scx/scx-1.0.6-r1.ebuild @@ -0,0 +1,404 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {16..18} ) + +# List of crates for pycargoebuild: +# rust/scx_{loader,rustland_core,stats,utils} +# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty} +CRATES=" + addr2line@0.24.1 + adler2@2.0.0 + ahash@0.8.11 + aho-corasick@1.1.3 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anstream@0.6.15 + anstyle-parse@0.2.5 + anstyle-query@1.1.1 + anstyle-wincon@3.0.4 + anstyle@1.0.8 + anyhow@1.0.87 + async-broadcast@0.7.1 + async-channel@2.3.1 + async-io@2.3.4 + async-lock@3.4.0 + async-process@2.2.4 + async-recursion@1.1.1 + async-signal@0.2.10 + async-task@4.7.1 + async-trait@0.1.82 + atomic-waker@1.1.2 + autocfg@1.3.0 + backtrace@0.3.74 + bindgen@0.69.4 + bitflags@1.3.2 + bitflags@2.6.0 + bitvec@1.0.1 + block-buffer@0.10.4 + blocking@1.6.1 + bumpalo@3.16.0 + byteorder@1.5.0 + bytes@1.7.1 + camino@1.1.9 + cargo-platform@0.1.8 + cargo_metadata@0.15.4 + cargo_metadata@0.18.1 + cc@1.1.18 + cexpr@0.6.0 + cfg-if@1.0.0 + cfg_aliases@0.2.1 + cgroupfs@0.7.1 + chrono@0.4.38 + clang-sys@1.8.1 + clap@4.5.17 + clap_builder@4.5.17 + clap_derive@4.5.13 + clap_lex@0.7.2 + colorchoice@1.0.2 + colored@2.1.0 + concurrent-queue@2.5.0 + const_format@0.2.31 + const_format_proc_macros@0.2.31 + convert_case@0.6.0 + core-foundation-sys@0.8.7 + cpufeatures@0.2.14 + crossbeam-channel@0.5.13 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.20 + crossbeam@0.8.4 + crypto-common@0.1.6 + ctrlc@3.4.5 + darling@0.20.10 + darling_core@0.20.10 + darling_macro@0.20.10 + deranged@0.3.11 + digest@0.10.7 + either@1.13.0 + endi@1.1.0 + endian-type@0.1.2 + enumflags2@0.7.10 + enumflags2_derive@0.7.10 + equivalent@1.0.1 + errno@0.3.9 + event-listener-strategy@0.5.2 + event-listener@5.3.1 + fastrand@2.1.1 + fb_procfs@0.7.1 + filetime@0.2.25 + fnv@1.0.7 + funty@2.0.0 + futures-core@0.3.30 + futures-io@0.3.30 + futures-lite@2.3.0 + futures-sink@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + generic-array@0.14.7 + getrandom@0.2.15 + gimli@0.31.0 + glob@0.3.1 + gpoint@0.2.1 + hashbrown@0.14.5 + heck@0.5.0 + hermit-abi@0.3.9 + hermit-abi@0.4.0 + hex@0.4.3 + home@0.5.9 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + ident_case@1.0.1 + indexmap@2.5.0 + is_terminal_polyfill@1.70.1 + itertools@0.12.1 + itertools@0.13.0 + itoa@1.0.11 + js-sys@0.3.70 + lazy_static@1.5.0 + lazycell@1.3.0 + libbpf-cargo@0.24.4 + libbpf-rs@0.24.4 + libbpf-sys@1.4.5+v1.4.5 + libc@0.2.158 + libloading@0.8.5 + libredox@0.1.3 + linux-raw-sys@0.4.14 + log@0.4.22 + maplit@1.0.2 + memchr@2.7.4 + memmap2@0.5.10 + memoffset@0.6.5 + memoffset@0.9.1 + metrics-util@0.17.0 + metrics@0.23.0 + minimal-lexical@0.2.1 + miniz_oxide@0.8.0 + mio@1.0.2 + nibble_vec@0.1.0 + nix@0.25.1 + nix@0.29.0 + nom@7.1.3 + ntapi@0.4.1 + num-conv@0.1.0 + num-traits@0.2.19 + num_cpus@1.16.0 + num_threads@0.1.7 + nvml-wrapper-sys@0.8.0 + nvml-wrapper@0.10.0 + object@0.36.4 + once_cell@1.19.0 + openat@0.1.21 + ordered-float@3.9.2 + ordered-float@4.2.2 + ordered-stream@0.2.0 + parking@2.2.1 + paste@1.0.15 + pin-project-lite@0.2.14 + pin-utils@0.1.0 + piper@0.2.4 + pkg-config@0.3.30 + plain@0.2.3 + polling@3.7.3 + portable-atomic@1.7.0 + powerfmt@0.2.0 + ppv-lite86@0.2.20 + prettyplease@0.2.22 + proc-macro-crate@3.2.0 + proc-macro2@1.0.86 + quanta@0.12.3 + quote@1.0.37 + radium@0.7.0 + radix_trie@0.2.1 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + raw-cpuid@11.1.0 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.5.3 + regex-automata@0.4.7 + regex-syntax@0.6.29 + regex-syntax@0.8.4 + regex@1.10.6 + rustc-demangle@0.1.24 + rustc-hash@1.1.0 + rustix@0.38.36 + rustversion@1.0.17 + ryu@1.0.18 + same-file@1.0.6 + semver@1.0.23 + serde@1.0.210 + serde_derive@1.0.210 + serde_json@1.0.128 + serde_repr@0.1.19 + serde_spanned@0.6.8 + sha1@0.10.6 + shlex@1.3.0 + signal-hook-registry@1.4.2 + simple_logger@5.0.0 + simplelog@0.12.2 + sketches-ddsketch@0.2.2 + slab@0.4.9 + smallvec@1.13.2 + socket2@0.5.7 + sorted-vec@0.8.3 + sscanf@0.4.2 + sscanf_macro@0.4.2 + static_assertions@1.1.0 + strsim@0.10.0 + strsim@0.11.1 + syn@2.0.77 + sysinfo@0.31.4 + tap@1.0.1 + tar@0.4.41 + tempfile@3.12.0 + termcolor@1.4.1 + terminal_size@0.3.0 + thiserror-impl@1.0.63 + thiserror@1.0.63 + threadpool@1.8.1 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tokio-macros@2.4.0 + tokio@1.40.0 + toml@0.8.19 + toml_datetime@0.6.8 + toml_edit@0.22.20 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing@0.1.40 + typenum@1.17.0 + uds_windows@1.1.0 + unicase@2.7.0 + unicode-ident@1.0.12 + unicode-segmentation@1.11.0 + unicode-width@0.1.12 + unicode-xid@0.2.5 + utf8parse@0.2.2 + vergen@8.3.2 + version-compare@0.1.1 + version_check@0.9.5 + vsprintf@2.0.0 + walkdir@2.5.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.93 + wasm-bindgen-macro-support@0.2.93 + wasm-bindgen-macro@0.2.93 + wasm-bindgen-shared@0.2.93 + wasm-bindgen@0.2.93 + web-sys@0.3.70 + which@4.4.2 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.9 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-core@0.52.0 + windows-core@0.57.0 + windows-implement@0.57.0 + windows-interface@0.57.0 + windows-result@0.1.2 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-sys@0.59.0 + windows-targets@0.48.5 + windows-targets@0.52.6 + windows@0.57.0 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.6 + winnow@0.6.18 + wrapcenum-derive@0.4.1 + wyz@0.5.1 + xattr@1.3.1 + xdg-home@1.3.0 + zbus@4.4.0 + zbus_macros@4.4.0 + zbus_names@3.0.0 + zerocopy-derive@0.7.35 + zerocopy@0.7.35 + zvariant@4.2.0 + zvariant_derive@4.2.0 + zvariant_utils@2.1.0 +" + +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} +" + +LICENSE="GPL-2" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="openrc systemd" + +DEPEND=" + virtual/libelf:= + sys-libs/zlib:= + >=dev-libs/libbpf-1.3:= + openrc? ( || ( + sys-apps/openrc + sys-apps/openrc-navi + ) ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + app-misc/jq + dev-util/bpftool + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)] + ') +" + +CONFIG_CHECK=" + ~BPF + ~BPF_EVENTS + ~BPF_JIT + ~BPF_SYSCALL + ~DEBUG_INFO_BTF + ~FTRACE + ~SCHED_CLASS_EXT +" + +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 +} + +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 +} diff --git a/sys-kernel/scx/scx-1.0.6.ebuild b/sys-kernel/scx/scx-1.0.6.ebuild deleted file mode 100644 index 9d15161ace1f..000000000000 --- a/sys-kernel/scx/scx-1.0.6.ebuild +++ /dev/null @@ -1,402 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {16..18} ) - -# List of crates for pycargoebuild: -# rust/scx_{loader,rustland_core,stats,utils} -# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty} -CRATES=" - addr2line@0.24.1 - adler2@2.0.0 - ahash@0.8.11 - aho-corasick@1.1.3 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - anstream@0.6.15 - anstyle-parse@0.2.5 - anstyle-query@1.1.1 - anstyle-wincon@3.0.4 - anstyle@1.0.8 - anyhow@1.0.87 - async-broadcast@0.7.1 - async-channel@2.3.1 - async-io@2.3.4 - async-lock@3.4.0 - async-process@2.2.4 - async-recursion@1.1.1 - async-signal@0.2.10 - async-task@4.7.1 - async-trait@0.1.82 - atomic-waker@1.1.2 - autocfg@1.3.0 - backtrace@0.3.74 - bindgen@0.69.4 - bitflags@1.3.2 - bitflags@2.6.0 - bitvec@1.0.1 - block-buffer@0.10.4 - blocking@1.6.1 - bumpalo@3.16.0 - byteorder@1.5.0 - bytes@1.7.1 - camino@1.1.9 - cargo-platform@0.1.8 - cargo_metadata@0.15.4 - cargo_metadata@0.18.1 - cc@1.1.18 - cexpr@0.6.0 - cfg-if@1.0.0 - cfg_aliases@0.2.1 - cgroupfs@0.7.1 - chrono@0.4.38 - clang-sys@1.8.1 - clap@4.5.17 - clap_builder@4.5.17 - clap_derive@4.5.13 - clap_lex@0.7.2 - colorchoice@1.0.2 - colored@2.1.0 - concurrent-queue@2.5.0 - const_format@0.2.31 - const_format_proc_macros@0.2.31 - convert_case@0.6.0 - core-foundation-sys@0.8.7 - cpufeatures@0.2.14 - crossbeam-channel@0.5.13 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-queue@0.3.11 - crossbeam-utils@0.8.20 - crossbeam@0.8.4 - crypto-common@0.1.6 - ctrlc@3.4.5 - darling@0.20.10 - darling_core@0.20.10 - darling_macro@0.20.10 - deranged@0.3.11 - digest@0.10.7 - either@1.13.0 - endi@1.1.0 - endian-type@0.1.2 - enumflags2@0.7.10 - enumflags2_derive@0.7.10 - equivalent@1.0.1 - errno@0.3.9 - event-listener-strategy@0.5.2 - event-listener@5.3.1 - fastrand@2.1.1 - fb_procfs@0.7.1 - filetime@0.2.25 - fnv@1.0.7 - funty@2.0.0 - futures-core@0.3.30 - futures-io@0.3.30 - futures-lite@2.3.0 - futures-sink@0.3.30 - futures-task@0.3.30 - futures-util@0.3.30 - generic-array@0.14.7 - getrandom@0.2.15 - gimli@0.31.0 - glob@0.3.1 - gpoint@0.2.1 - hashbrown@0.14.5 - heck@0.5.0 - hermit-abi@0.3.9 - hermit-abi@0.4.0 - hex@0.4.3 - home@0.5.9 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.60 - ident_case@1.0.1 - indexmap@2.5.0 - is_terminal_polyfill@1.70.1 - itertools@0.12.1 - itertools@0.13.0 - itoa@1.0.11 - js-sys@0.3.70 - lazy_static@1.5.0 - lazycell@1.3.0 - libbpf-cargo@0.24.4 - libbpf-rs@0.24.4 - libbpf-sys@1.4.5+v1.4.5 - libc@0.2.158 - libloading@0.8.5 - libredox@0.1.3 - linux-raw-sys@0.4.14 - log@0.4.22 - maplit@1.0.2 - memchr@2.7.4 - memmap2@0.5.10 - memoffset@0.6.5 - memoffset@0.9.1 - metrics-util@0.17.0 - metrics@0.23.0 - minimal-lexical@0.2.1 - miniz_oxide@0.8.0 - mio@1.0.2 - nibble_vec@0.1.0 - nix@0.25.1 - nix@0.29.0 - nom@7.1.3 - ntapi@0.4.1 - num-conv@0.1.0 - num-traits@0.2.19 - num_cpus@1.16.0 - num_threads@0.1.7 - nvml-wrapper-sys@0.8.0 - nvml-wrapper@0.10.0 - object@0.36.4 - once_cell@1.19.0 - openat@0.1.21 - ordered-float@3.9.2 - ordered-float@4.2.2 - ordered-stream@0.2.0 - parking@2.2.1 - paste@1.0.15 - pin-project-lite@0.2.14 - pin-utils@0.1.0 - piper@0.2.4 - pkg-config@0.3.30 - plain@0.2.3 - polling@3.7.3 - portable-atomic@1.7.0 - powerfmt@0.2.0 - ppv-lite86@0.2.20 - prettyplease@0.2.22 - proc-macro-crate@3.2.0 - proc-macro2@1.0.86 - quanta@0.12.3 - quote@1.0.37 - radium@0.7.0 - radix_trie@0.2.1 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - raw-cpuid@11.1.0 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.5.3 - regex-automata@0.4.7 - regex-syntax@0.6.29 - regex-syntax@0.8.4 - regex@1.10.6 - rustc-demangle@0.1.24 - rustc-hash@1.1.0 - rustix@0.38.36 - rustversion@1.0.17 - ryu@1.0.18 - same-file@1.0.6 - semver@1.0.23 - serde@1.0.210 - serde_derive@1.0.210 - serde_json@1.0.128 - serde_repr@0.1.19 - serde_spanned@0.6.8 - sha1@0.10.6 - shlex@1.3.0 - signal-hook-registry@1.4.2 - simple_logger@5.0.0 - simplelog@0.12.2 - sketches-ddsketch@0.2.2 - slab@0.4.9 - smallvec@1.13.2 - socket2@0.5.7 - sorted-vec@0.8.3 - sscanf@0.4.2 - sscanf_macro@0.4.2 - static_assertions@1.1.0 - strsim@0.10.0 - strsim@0.11.1 - syn@2.0.77 - sysinfo@0.31.4 - tap@1.0.1 - tar@0.4.41 - tempfile@3.12.0 - termcolor@1.4.1 - terminal_size@0.3.0 - thiserror-impl@1.0.63 - thiserror@1.0.63 - threadpool@1.8.1 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tokio-macros@2.4.0 - tokio@1.40.0 - toml@0.8.19 - toml_datetime@0.6.8 - toml_edit@0.22.20 - tracing-attributes@0.1.27 - tracing-core@0.1.32 - tracing@0.1.40 - typenum@1.17.0 - uds_windows@1.1.0 - unicase@2.7.0 - unicode-ident@1.0.12 - unicode-segmentation@1.11.0 - unicode-width@0.1.12 - unicode-xid@0.2.5 - utf8parse@0.2.2 - vergen@8.3.2 - version-compare@0.1.1 - version_check@0.9.5 - vsprintf@2.0.0 - walkdir@2.5.0 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.93 - wasm-bindgen-macro-support@0.2.93 - wasm-bindgen-macro@0.2.93 - wasm-bindgen-shared@0.2.93 - wasm-bindgen@0.2.93 - web-sys@0.3.70 - which@4.4.2 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.9 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-core@0.52.0 - windows-core@0.57.0 - windows-implement@0.57.0 - windows-interface@0.57.0 - windows-result@0.1.2 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-sys@0.59.0 - windows-targets@0.48.5 - windows-targets@0.52.6 - windows@0.57.0 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.6 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.6 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.6 - windows_i686_gnullvm@0.52.6 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.6 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.6 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.6 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.6 - winnow@0.6.18 - wrapcenum-derive@0.4.1 - wyz@0.5.1 - xattr@1.3.1 - xdg-home@1.3.0 - zbus@4.4.0 - zbus_macros@4.4.0 - zbus_names@3.0.0 - zerocopy-derive@0.7.35 - zerocopy@0.7.35 - zvariant@4.2.0 - zvariant_derive@4.2.0 - zvariant_utils@2.1.0 -" - -inherit linux-info cargo rust-toolchain llvm-r1 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} -" - -LICENSE="GPL-2" -# Dependent crate licenses -LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB" - -SLOT="0" -KEYWORDS="~amd64" -IUSE="openrc systemd" - -DEPEND=" - virtual/libelf:= - sys-libs/zlib:= - >=dev-libs/libbpf-1.3:= - openrc? ( || ( - sys-apps/openrc - sys-apps/openrc-navi - ) ) -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - app-misc/jq - dev-util/bpftool - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)] - ') - >=virtual/rust-1.72 -" - -CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~FTRACE - ~SCHED_CLASS_EXT -" - -pkg_setup() { - linux-info_pkg_setup - llvm-r1_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 -} - -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 -} -- cgit v1.2.3