polkit: fix building with useSystemd = false#393045
Conversation
bec0a61 to
dfba869
Compare
pkgs/by-name/po/polkit/package.nix
Outdated
There was a problem hiding this comment.
With people merging stuff from r-ryantm without proper review of upstream changes, I am a bit paranoid. I think I would prefer more explicit
| mv "$DESTDIR/usr/lib"/* "$out/lib" | |
| mkdir "$out/lib" | |
| mv "$DESTDIR/usr/lib/"{sysusers,tmpfiles}".d" "$out/lib" |
to reduce the chance of new hardcoded artifact slipping through our fingers. The third one can be set by -Dsystemdsystemunitdir.
Or maybe we could convince upstream to add options for the .d as well.
There was a problem hiding this comment.
How's that?
Or maybe we could convince upstream to add options for the
.das well.
It was hard enough to stop there being a hard dependency on systemd.pc. Given that we need to have this moving mechanism for other stuff anyway, I don't think it's worth it.
The PKG_CONFIG_* environment variables are only read from when systemd.pc is found. This meant that the ! test -e "$DESTDIR" check would fail when built without systemd. Avoid that by handling the systemd files unconditionally installed in lib the same way we do for etc.
dfba869 to
f55c3ee
Compare
|
Bisect says 12f68bf |
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.