libvirt: use /run for runstatedir
systemd complains:
Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd-admin.socket:11: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-admin-sock → /run/libvirt/libvirt-admin-sock; please update the unit file accordingly.
Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd-ro.socket:11: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-sock-ro → /run/libvirt/libvirt-sock-ro; please update the unit file accordingly.
Jul 08 12:43:59 kaiser systemd[1]: /nix/store/bvfikb8v9m646m23fqm0rfnnsj6plc2k-libvirt-6.2.0/lib/systemd/system/libvirtd.socket:9: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/libvirt-sock → /run/libvirt/libvirt-sock; please update the unit file accordingly.
Let's just set it correctly manually, that is what Red Hat does:
https://gitlab.com/libvirt/libvirt/-/commit/ba7592f6c17d50435582e597727fbfc51322d606
See also:
https://gitlab.com/libvirt/libvirt/-/commit/390997925a3aca1b57969526c3e083761fafe7c3
commit1837136c7b5243b8f6677fe159f9ec2854036176
authorJan Tojnar <jtojnar@gmail.com>
dateWed 8 Jul 2020, 13:00 (6 years ago)
parent564dec2
pkgs/development/libraries/libvirt/default.nix+2
@@ -65,6 +65,7 @@ in stdenv.mkDerivation rec {
6565 dontAddDisableDepTrack = true;
6666
6767 configureFlags = [
68+ "--with-runstatedir=/run" # TODO: remove when autoconf 1.70 is released
6869 "--localstatedir=/var"
6970 "--sysconfdir=/var/lib"
7071 "--with-libpcap"
@@ -97,6 +98,7 @@ in stdenv.mkDerivation rec {
9798 ];
9899
99100 installFlags = [
101+ "runstatedir=${placeholder "out"}/run"
100102 "localstatedir=$(TMPDIR)/var"
101103 "sysconfdir=$(out)/var/lib"
102104 ];