mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
linux: mark <6.12 with Rust as broken, assert on <6.7 with Rust
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] https://github.com/NixOS/nixpkgs/pull/345534#discussion_r1781392312 [2] https://github.com/NixOS/nixpkgs/pull/345534#issuecomment-2391238381
This commit is contained in:
parent
8536e7c5a4
commit
19b9676383
@ -34,7 +34,11 @@ let
|
|||||||
|
|
||||||
# Currently not enabling Rust by default, as upstream requires rustc 1.81
|
# Currently not enabling Rust by default, as upstream requires rustc 1.81
|
||||||
defaultRust = false;
|
defaultRust = false;
|
||||||
withRust = (forceRust || defaultRust) && kernelSupportsRust;
|
withRust =
|
||||||
|
assert lib.assertMsg (!(forceRust && !kernelSupportsRust)) ''
|
||||||
|
Kernels below 6.7 (the kernel being built is ${version}) don't support Rust.
|
||||||
|
'';
|
||||||
|
(forceRust || defaultRust) && kernelSupportsRust;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
|
@ -396,6 +396,9 @@ let
|
|||||||
requiredSystemFeatures = [ "big-parallel" ];
|
requiredSystemFeatures = [ "big-parallel" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/345534#issuecomment-2391238381
|
||||||
|
broken = withRust && lib.versionOlder version "6.12";
|
||||||
|
|
||||||
description =
|
description =
|
||||||
"The Linux kernel" +
|
"The Linux kernel" +
|
||||||
(if kernelPatches == [] then "" else
|
(if kernelPatches == [] then "" else
|
||||||
|
Loading…
Reference in New Issue
Block a user