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

rust: add isMips64n32 to badPlatforms #245304

Merged
2 commits merged into from Oct 23, 2023
Merged

rust: add isMips64n32 to badPlatforms #245304

2 commits merged into from Oct 23, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jul 25, 2023

Description of changes

Rust is not yet able to target the n32 ABI on mips64.

Let's add isMips64n32 to the meta.badPlatforms of all derivations created by buildRustCrate and buildRustPackage.

I use this to automatically detect which packages on my system can be built for n32 (almost all of them) and build those using n32, and the few packages (mainly those that depend on boost or rust) that can't for n64.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Rust is not yet able to target the n32 ABI on mips64.

Let's add `isMips64n32` to the `meta.badPlatforms` of all
derivations created by buildRustCrate.

I use this to automatically detect which packages on my system can
be built for n32 (almost all of them) and build those using n32, and
the few packages (mainly those that depend on boost or rust) that
can't for n64.
@ghost ghost requested review from zowoq, winterqt and figsoda as code owners July 25, 2023 04:44
Rust is not yet able to target the n32 ABI on mips64.

Let's add `isMips64n32` to the `meta.badPlatforms` of all
derivations created by buildRustPackage.

I use this to automatically detect which packages on my system can
be built for n32 (almost all of them) and build those using n32, and
the few packages (mainly those that depend on boost or rust) that
can't for n64.
@ghost ghost changed the title buildRustCrate: add isMips64n32 to badPlatforms rust: add isMips64n32 to badPlatforms Jul 25, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jul 25, 2023
@ghost ghost mentioned this pull request Jul 25, 2023
12 tasks
@ghost
Copy link
Author

ghost commented Oct 22, 2023

If there are no objections I intend to merge this.

@ghost ghost merged commit 4fc0e33 into NixOS:master Oct 23, 2023
@ghost ghost deleted the pr/build-rust-crate/add-mips64n32-to-badPlatforms branch October 23, 2023 09:42
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: rust 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants