Repository navigation
linuxPackages.btf: init - #484057
linuxPackages.btf: init#484057artemist wants to merge 1 commit into
Conversation
The systemd case has been extensively discussed (both in #404864 and on Matrix) and it sounds like a solution is possible that does not require packaging vmlinux.h files for particular kernel versions that may not be portable to other kernel versions at runtime. Hopefully the upstream systemd contribution mentioned in the linked thread materialises soon. |
|
Seems I neglected to search before writing this, I'll look over the discussion |
|
I suppose the question is whether we want to merge that PR before we find a better solution by modifying systemd. I am working on allocating users for nix builds with nsresourced, and not having nsresourced working in nixpkgs would make the change substantially less useful. |
|
I am hoping as long as we are not polluting existing packages / everything is opt-in, it will be OK for now. Ideally more Nix community usage of this feature will help get more people interested in making the upstream change (discussed in the other thread) happen. |
|
Experience suggests it's more likely it'd remove any incentive to ever make that change happen… Would be good to get more insight into its status though.
|
|
Well, if it kinda mostly work, that would remove the incentive, if it was a popular feature but one that that required tons of rebuilding, that would increase the incentive. |
Things done
Add a new
linuxPackages.btfpackage that includes the given kernel's btf-generatedvmlinux.h. Some packages, such as systemd, require a kernel's data structures and functions generated from btf for full functionality.passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.