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.adv_cmds: ps always reports failure exit code #374909

Open
3 tasks done
emilytrau opened this issue Jan 19, 2025 · 3 comments
Open
3 tasks done

darwin.adv_cmds: ps always reports failure exit code #374909

emilytrau opened this issue Jan 19, 2025 · 3 comments
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin

Comments

@emilytrau
Copy link
Member

Nixpkgs version

  • Unstable (25.05)

Describe the bug

ps always reports a failure exit code even in cases it should succeed due to hitting this ps: time: requires entitlement error.

Steps to reproduce

$ nix-build . -A darwin.adv_cmds
$ result/bin/ps
ps: time: requires entitlement

Expected behaviour

Expected to exit with success code.

Screenshots

No response

Relevant log output

Additional context

Looks to be caused by a missing compilation option? https://github.com/apple-oss-distributions/adv_cmds/blob/cdf02e0cae3e27f8dae7acab14d87daa962eda1f/ps/keyword.c#L391

Related to #374907

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 24.2.0, macOS 15.2
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.90.0-lixpre20240602-c55e93c
  • nixpkgs: /nix/store/mq2r64lsm5swkhad40wspwsb8z20lw4f-source

Are you using nix-darwin?

No, I am not using nix-darwin.

Notify maintainers

@reckenrode @emilazy

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@emilytrau emilytrau added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Jan 19, 2025
@emilazy
Copy link
Member

emilazy commented Jan 19, 2025

I think this is one of those things we package even though it’s useless because we can’t sign it with entitlements. We should probably just not package it.

@reckenrode
Copy link
Contributor

Isn’t ps required by CMake?

@emilytrau
Copy link
Member Author

It works but some columns will fail and cause the entitlement error. It's used by gradle as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

3 participants