{k3s,nixos/kubernetes}: use util-linux.withPatches#409332
{k3s,nixos/kubernetes}: use util-linux.withPatches#409332numinit merged 3 commits intoNixOS:masterfrom
Conversation
|
Adapted from @DerRockWolf's #405952 and should work without the world rebuild. |
There was a problem hiding this comment.
Note that this lib.unique is written in a way where, after the staging merge, withPatches and normal util-linux will eval to the same outpath.
2f1b60e to
ff18672
Compare
|
Simply corrected the issue number referenced in comments, no functional differences. kubernetes tests still pass. |
ff18672 to
cf33e5b
Compare
There was a problem hiding this comment.
Wasn't sure whether to switch this to minimal (there is gitMinimal, above). I guess it could make sense, but I'm also afraid of breaking kubernetes somehow by doing that, and we can now build a patched util-linux (not minimal) without rebuilding the world anyway.
|
One more cc to @NixOS/k3s, and thank you for your patience with this annoying regression. |
There was a problem hiding this comment.
This seems pretty overcomplicated for me for something that I don't remember having come up very much before…
There was a problem hiding this comment.
Do you think we should just do overrides in two places then? I was split between both approaches but could see merits to either because it's a oneoff.
There was a problem hiding this comment.
I think having the passthru is fine but I'd remove it again once we don't need it any more.
There was a problem hiding this comment.
OK, yeah, completely fair. People should not rely on this. I'll update the tracking issue and fix the comment to indicate that this is a temporary hack.
There was a problem hiding this comment.
Should be good now.
TODO (NixOS#409339): Remove this hack. We had to add it to avoid a mass rebuild for the 25.05 release to fix Kubernetes. Once the staging cycle referenced in the above PR completes, this passthru and all consumers of it should go away.
cf33e5b to
e14de85
Compare
|
Successfully created backport PR for |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/downgrade-dependency-to-util-linux-in-a-remote-flake/65132/2 |
Applies the same fix from NixOS/nixpkgs#409332
Applies the same fix from NixOS/nixpkgs#409332
Applies the same fix from NixOS/nixpkgs#409332
As documented:
TODO (#409339): Remove this hack. We had to add it to avoid a mass rebuild for the 25.05 release to fix Kubernetes. Once the staging cycle referenced in the above PR completes, this passthru and all consumers of it should go away.
Should fix #408044 which affected both k3s and kubernetes, without a mass rebuild.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.