Skip to content

linux/kernel/generic.nix: assert if constraints would be ignored#230036

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

linux/kernel/generic.nix: assert if constraints would be ignored#230036
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented May 5, 2023

Description of changes

There appears to be a real mess with the naming of the attribute which contains structured extra configuration:

  • Nixpkgs' linux kernel expression uses structuredExtraConfig.
  • NixOS uses extraStructuredConfig.
  • Nixpkgs' kernelPatches use extraStructuredConfig.

At the moment, if the user uses the wrong convention the configuration constraints are silently dropped. Let's assert instead so they at least know that their request isn't being respected.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • mips64el-linux
    • powerpc64le-linux
  • Fits CONTRIBUTING.md.

There appears to be a real mess with the naming of the attribute
which contains structured extra configuration:

- Nixpkgs' linux kernel expression uses structuredExtraConfig.
- NixOS uses extraStructuredConfig.
- Nixpkgs' kernelPatches use extraStructuredConfig.

At the moment, if the user uses the wrong convention the
configuration constraints are silently dropped.  Let's `assert`
instead so they at least know that their request isn't being
respected.
@github-actions github-actions bot added the 6.topic: kernel The Linux kernel label May 5, 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 May 5, 2023
@ghost
Copy link
Copy Markdown
Author

ghost commented May 5, 2023

Sorry, duplicate of #227999 . I'm cleaning up my tree.

@ghost ghost closed this May 5, 2023
@ghost ghost deleted the pr/kernel/warn-about-silently-ignored branch May 5, 2023 05:30
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: 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.

0 participants