Repository navigation
base: ps, w, uptime, top, pgrep, killall, pstree and which in every box (procps-ng, psmisc, which) (#1841) - #1850
Open
bryan-minimal wants to merge 1 commit into
Open
bryan-minimal wants to merge 1 commit into
bryan-minimal wants to merge 1 commit into
Conversation
…ery box (#1841) procps-ng, psmisc and which join base's runtime_deps and build on base-bootstrap (as ncurses and pkgconf do) to avoid a cycle. procps-ng and psmisc gain tests that run the tools against /proc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reached
This review includes 4 billable files and costs up to $1.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 13 minutes for your next included review. View limit details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1841.
A fresh box has no
ps,w,uptime,top,free,pgrep,killall,pstreeorwhich, andmin add pscan't help, because no package is namedps. This puts them in every box, the way #804 addedtzdataand #1661 addedos-release.Changes
base:procps-ng,psmiscandwhichjoinruntime_deps. Between them they provideps,w,uptime,top,free,vmstat,pgrep/pkill/pidof,watch,pmap,sysctl,killall,pstree,fuserandwhich.killis bash's builtin.procps-ng,psmisc,which: build onbase-bootstrapinstead ofbase. They usedbase, which now carries them, so that would be a cycle.ncursesandpkgconfalready do the same, and none of their other deps (ncurses, pkgconf, make, toolchain, glibc) reachesbase.--version:procps-ng/box_tools:ps -p $$names bash;ps aux;uptimeandwprint a load average;freeprintsMem:;pgrep -x sleepfinds a background sleep;top -b -n1.psmisc/box_tools:pstree -p $$shows the calling bash;killall -llists TERM.whichkeeps its existing test (which shresolves).Costs
base's inputs change for nearly every package, as fix(base): ship the IANA timezone database in every box #804 and os-release (new): ship /etc/os-release in every box via base #1661 did. Best queued alone.whichorpscould change what it builds. Watch the world build for changed outputs, not only failures.Verified so far
ps,w,uptime,free,vmstat,pgrep,pmap,top(batch and on a pty),watch,pstreeandkillallwork in a min box, with these packages added to a session (details in 8000 Ship ps, w, uptime, top, pgrep, killall and which in every box (procps-ng, psmisc, which in base) #1841).nickel formatis clean.Not fixed here (minimal's side, tracked in #1841)
wlists no users (no utmp).pstreewithout-p $$missesmin box execprocesses (PPID 0).🤖 Generated with Claude Code