Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package scx for openSUSE:Factory checked in 
at 2025-09-22 16:41:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/scx (Old)
 and      /work/SRC/openSUSE:Factory/.scx.new.27445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "scx"

Mon Sep 22 16:41:12 2025 rev:14 rq:1306517 version:1.0.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/scx/scx.changes  2025-09-15 19:57:01.685486103 
+0200
+++ /work/SRC/openSUSE:Factory/.scx.new.27445/scx.changes       2025-09-22 
16:42:02.903382622 +0200
@@ -1,0 +2,7 @@
+Wed Sep 17 11:28:49 UTC 2025 - Fredrik Lönnegren <[email protected]>
+
+- Migrate from meson to cargo build system
+  * upstream is deprecating meson in favor of cargo and make:
+    https://github.com/sched-ext/scx/discussions/2731
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ scx.spec ++++++
--- /var/tmp/diff_new_pack.yY0yrv/_old  2025-09-22 16:42:03.647413883 +0200
+++ /var/tmp/diff_new_pack.yY0yrv/_new  2025-09-22 16:42:03.651414051 +0200
@@ -28,13 +28,13 @@
 Source0:        %{name}-%{version}.tar
 Source1:        vendor.tar.zst
 BuildRequires:  bpftool >= 7.5.0
+BuildRequires:  cargo-packaging
 BuildRequires:  clang >= %{llvm_min_ver}
+BuildRequires:  git
 BuildRequires:  jq
 BuildRequires:  libbpf-devel >= %{libbpf_min_ver}
 BuildRequires:  lld
 BuildRequires:  llvm >= %{llvm_min_ver}
-BuildRequires:  meson >= 1.2.0
-BuildRequires:  ninja
 BuildRequires:  pkgconfig
 BuildRequires:  rust+cargo >= 1.82
 BuildRequires:  zstd
@@ -58,17 +58,42 @@
 %autosetup -p1 -a1
 
 %build
-%meson \
-  -Doffline=true \
-  -Dbpftool=%{_sbindir}/bpftool \
-  -Dlibbpf_a=disabled \
-  -Dopenrc=disabled \
-  -Denable_stress=false \
-  %{?nil}
-%meson_build
+%cargo_build
 
 %install
-%meson_install
+export CARGO_HOME=$PWD/.cargo
+
+for path in ./tools/scx_loader \
+       ./tools/scxctl \
+       ./tools/scxtop \
+       ./tools/scxcash \
+       ./scheds/rust/scx_p2dq \
+       ./scheds/rust/scx_tickless \
+       ./scheds/rust/scx_chaos \
+       ./scheds/rust/scx_rusty \
+       ./scheds/rust/scx_flash \
+       ./scheds/rust/scx_rustland \
+       ./scheds/rust/scx_mitosis \
+       ./scheds/rust/scx_rlfifo \
+       ./scheds/rust/scx_wd40 \
+       ./scheds/rust/scx_lavd \
+       ./scheds/rust/scx_cosmos \
+       ./scheds/rust/scx_layered \
+       ./scheds/rust/scx_bpfland; do
+pushd "${path}"
+%{cargo_install}
+popd
+done
+
+install -Dm644 services/systemd/scx.service \
+    %{buildroot}%{_unitdir}/scx.service
+
+install -Dm644 services/scx \
+    %{buildroot}%{_sysconfdir}/default/scx
+
+mkdir -p %{buildroot}%{_includedir}/%{name}
+install -Dm644 scheds/include/scx/*.h \
+    %{buildroot}%{_includedir}/%{name}
 
 %pre
 %service_add_pre scx.service
@@ -86,7 +111,6 @@
 %license LICENSE
 %doc README.md OVERVIEW.md
 %{_bindir}/scx{cash,ctl,top,_*}
-%{_bindir}/vmlinux_docify
 %{_unitdir}/scx.service
 %config(noreplace) %{_sysconfdir}/default/%{name}
 

Reply via email to