Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darwin is missing pgrep and pkill #141157

Open
uri-canva opened this issue Oct 10, 2021 · 4 comments · May be fixed by #141159
Open

darwin is missing pgrep and pkill #141157

uri-canva opened this issue Oct 10, 2021 · 4 comments · May be fixed by #141159

Comments

@uri-canva
Copy link
Contributor

Describe the bug

There are no pgrep and pkill available on darwin.

| grep -v -e Desktop -e Embedded -e mklocale -e pkill -e pgrep -e colldef)

They were excluded in #103180, but they were probably broken by an SDK update before that.

Additional context

This is related to the Apple open source distribution being a bit broken.

Notify maintainers

@matthewbauer, also related to the issues @toonn is hitting with the SDK upgrade.

Metadata

  • system: "x86_64-darwin"
  • host os: Darwin 20.6.0, macOS 10.16
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.3.12
  • channels(root): "darwin, nixpkgs-21.11pre299952.7918dc5148d"
  • channels(uri): "darwin"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
@veprbl veprbl linked a pull request Oct 10, 2021 that will close this issue
12 tasks
@toonn
Copy link
Contributor

toonn commented Oct 11, 2021

Fwiw, I haven't run into any problems related to pgrep/pkill missing. The linked PR (#141159) seems to say pkill builds but hangs. That sounds like a bad thing to run into down the line, an error about the command being missing would be better than an obscure timeout due to something hanging.

@uri-canva, do you know more about this, do these commands actually provide some headers I am missing or something?

@uri-canva
Copy link
Contributor Author

I agree it is better for the commands to be entirely missing than to be present but behave incorrectly.

I did not hit any issues with them missing as dependencies of something else, I just needed to use pgrep on macOS, and found out it wasn't part of nixpkgs.procps as it is on Linux.

@risicle
Copy link
Contributor

risicle commented Mar 13, 2022

This is frustrating because macos' ps is missing useful features like selecting by parent pid, which could otherwise be worked around by using pgrep.

@reckenrode
Copy link
Contributor

After I finish the system_cmds update, I can take a look at adv_cmds next. The plan is to go through each of the *_cmds and update them, so it’s just a matter of prioritization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants