Merge branch 'uuwatch' into 'master'

Port watch from uutils

See merge request redox-os/redox!2098
This commit is contained in:
Jeremy Soller 2026-05-01 06:24:58 -06:00
commit 6963cebcfc
2 changed files with 19 additions and 2 deletions

View File

@ -210,6 +210,7 @@ tokei = {}
ttf-hack = {}
userutils = {}
uutils = {}
uutils-procps = {}
vim = {}
vttest = {}
wayland-rs = {}

View File

@ -1,6 +1,22 @@
#TODO not compiled or tested
#TODO: common libc functions such as getsid
#TODO: only watch is working
[source]
git = "https://github.com/uutils/procps"
shallow_clone = true
[build]
template = "cargo"
template = "custom"
script = """
DYNAMIC_INIT
# TODO: more features support?
CARGO_PROFILE_RELEASE_LTO=thin cookbook_cargo --no-default-features --features pmap,slabtop,sysctl,tload,vmstat,watch
BINS=(
watch
)
for bin in "${BINS[@]}"
do
ln -sv procps "${COOKBOOK_STAGE}/usr/bin/$bin"
done
"""