-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reintroduce lib output for systemd #99382
Conversation
sd_path_lookup_* returns $rootprefix, which was making a cyclic dependency to $out and $lib We also patch systemd in ./0014-add-rootprefix-to-lookup-dir-paths.patch to look for all config files (except unit files; they have their own lookup path logic) in rootprefix. This will keep working
Now that $lib doesn't refer to rootprefixdir anymore, the cyclic dependnecy should be gone
@edolstra PTAL. I don't have time to make a backport PR to 20.09. Would love if somebody else could do this. We should also probably make the base-branch staging instead of master I didn't test yet if this works. |
cc @NixOS/systemd |
Nevermind this doesn't work. As systemd tries to install files in |
The "problematic" patch that causes these issues is systemd/systemd@9c5bb20 The systemd folks are refactoring the path-related code and AFAIK As it adds a reference to It also directly pulls in Three ideas:
I honestly don't see upstream accommodating us here. As they don't think it's problematic to have references between |
Based on
let's close this :-) |
Motivation for this change
#94354 removed $lib output but this causes significant closure bloat
See #98094
This reintroduces $lib, by getting rid of the problematic cyclic dependency
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)