Skip to content

lib/systems: uname.processor is "uname -m", not "uname -p"#189958

Merged
matthewbauer merged 1 commit intomasterfrom
unknown repository
Sep 6, 2022
Merged

lib/systems: uname.processor is "uname -m", not "uname -p"#189958
matthewbauer merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 6, 2022

Description of changes

The comment in lib/systems/default.nix for uname.processor indicates that it should match uname -p. I tried that command and found that it reports unknown on all of these machines:

  • x86_64-linux
  • aarch64-linux
  • mips64el-linux
  • powerpc64le-linux

The command uname -m reports the expected value on all of the above.

Things done

I think the comment is wrong. So I fixed it.

The comment in lib/systems/default.nix for uname.processor indicates that it
should match `uname -p`.  I tried that command and found that it reports
`unknown` on all of these machines:

- `x86_64-linux`
- `aarch64-linux`
- `mips64el-linux`
- `powerpc64le-linux`

The command `uname -m` reports the expected value on all of the above.

I think the comment is wrong.  So I fixed it.
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Sep 6, 2022
@matthewbauer matthewbauer merged commit ba3c562 into NixOS:master Sep 6, 2022
@matthewbauer
Copy link
Copy Markdown
Member

thanks

@ghost ghost deleted the pr/lib/systems/uname branch September 6, 2022 20:00
RaitoBezarius pushed a commit to RaitoBezarius/nixpkgs that referenced this pull request Sep 17, 2022
)

The comment in lib/systems/default.nix for uname.processor indicates that it
should match `uname -p`.  I tried that command and found that it reports
`unknown` on all of these machines:

- `x86_64-linux`
- `aarch64-linux`
- `mips64el-linux`
- `powerpc64le-linux`

The command `uname -m` reports the expected value on all of the above.

I think the comment is wrong.  So I fixed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant