php: fix systemdLibs dependency#433641
Conversation
|
Care to explain what this is fixing ? |
aanderse
left a comment
There was a problem hiding this comment.
@drupol - php doesn't use too much from systemd, just the sd-daemon stuff so we can just pull in the lighter systemdLibs instead of the full systemd closure
fun fact: there are even independent implementations of the basic sd-daemon stuff which can be substituted in place of systemd entirely
|
It would be nice, just for my own info, to compare the closure size, before and after this patch. |
yes! it would be great to see some real numbers on that! to be clear though... the improvements only help users who aren't running nixos... and only if no other dependencies are pulling in please do share your results if you don't mind @drupol ❤️ i miss the days when the PR template asked users to include that information... 😅 |
|
I have no access to a computer these days, just a smartphone... So I could do it, but it need to wait until the 25. |
|
before patch: after patch: @vog our friends running |
|
Amazing improvements, thanks ! |
|
Could you retarget this PR on staging please (PR causes a lot of rebuilds and doesn't seem urgent)? See CONTRIBUTING.md in the root of this repo for how to do that if this is your first time. |
4e5b5d4 to
0456b29
Compare
@r-vdp Done. |
|
Merging despite CI failures due to what was explained by @wolfgangwalther in #433749 |
|
Successfully created backport PR for |
|
@vog I tried to replace The gain in size is significant: How to make sure doing such a thing won't break anything? |
This is great! Given that util-linux independent from systemd, and on many systems compiled completely without systemd support at all, I don't see any risk here if it compiles without any errors. Also note that this is really mostly affecting people using nixpkgs as package manager, not users of NixOS - because NixOS, as OS, ships with a full systemd anyways. As a general note, I have the impression that practically all "normal" packages (i.e. not Nix modules or similar) that depend on the "systemd" derivation do so simply because they didn't notice the "systemdLibs" derivation that they are actually supposed to have depended on. |
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.