Skip to content

linux: mark <6.12 with Rust as broken, assert on <6.7 with Rust#346648

Merged
Ma27 merged 1 commit intoNixOS:masterfrom
Ma27:kernel-rust-assert
Oct 12, 2024
Merged

linux: mark <6.12 with Rust as broken, assert on <6.7 with Rust#346648
Ma27 merged 1 commit intoNixOS:masterfrom
Ma27:kernel-rust-assert

Conversation

@Ma27
Copy link
Member

@Ma27 Ma27 commented Oct 5, 2024

Things done

Note: I think it's more appropriate to fail with a custom message for kernels <6.7 with Rust enabled, so I didn't use meta.broken here.

Linux 6.7 is the oldest kernel with Rust support, so the config part should fail hard if 6.6 or older requests the Rust feature. Until now this was silently ignored[1].

It turned out that Rust for Linux 6.11 or older fails for unknown reasons[2]. We decided to not bother since it's not a longterm kernel and 6.12 seems fine again. As a result, marking this as broken.

[1] #345534 (comment)
[2] #345534 (comment)

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

Linux 6.7 is the oldest kernel with Rust support, so the config part
should fail hard if 6.6 or older requests the Rust feature. Until now
this was silently ignored[1].

It turned out that Rust for Linux 6.11 or older fails for unknown
reasons[2]. We decided to not bother since it's not a longterm kernel
and 6.12 seems fine again. As a result, marking this as broken.

[1] NixOS#345534 (comment)
[2] NixOS#345534 (comment)
@Ma27 Ma27 requested review from K900 and alyssais October 5, 2024 11:35
@github-actions github-actions bot added the 6.topic: kernel The Linux kernel label Oct 5, 2024
@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 Oct 5, 2024
@Ma27
Copy link
Member Author

Ma27 commented Oct 12, 2024

@K900 @alyssais what's your opinion on this?

@K900
Copy link
Contributor

K900 commented Oct 12, 2024

Seems fine

@Ma27 Ma27 merged commit db56cec into NixOS:master Oct 12, 2024
@Ma27 Ma27 deleted the kernel-rust-assert branch October 12, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: kernel The Linux kernel 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.

3 participants