commit: 652d83794e35eb13dca121276c40d004f73da156
Author: Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Sun Mar 9 16:14:42 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=652d8379
sys-kernel/scx: manually install openrc init.d script
Upstream's build system checks for openrc as a dependency before
installing the init.d script. This is not actually necessary, since
installing it on a non-openrc system is perfectly fine. Previously, scx
had an openrc use flag that toggled the openrc feature in meson. This
was not ideal since this is not a standardized use flag and openrc users
would have to manually enable it. Instead, disable the openrc meson
feature and install the init.d script manually in src_install.
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-kernel/scx/scx-1.0.10.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sys-kernel/scx/scx-1.0.10.ebuild b/sys-kernel/scx/scx-1.0.10.ebuild
index 060fd1551ffb..90ec0e6d00f8 100644
--- a/sys-kernel/scx/scx-1.0.10.ebuild
+++ b/sys-kernel/scx/scx-1.0.10.ebuild
@@ -34,13 +34,12 @@ LICENSE+="
"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="openrc systemd"
+IUSE="systemd"
DEPEND="
virtual/libelf:=
sys-libs/zlib:=
>=dev-libs/libbpf-1.5:=
- openrc? ( sys-apps/openrc )
"
RDEPEND="
${DEPEND}
@@ -95,7 +94,7 @@ src_configure() {
-Doffline=true
-Denable_rust=true
-Dlibalpm=disabled
- $(meson_feature openrc)
+ -Dopenrc=disabled
$(meson_feature systemd)
)
@@ -123,4 +122,9 @@ src_install() {
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
}