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:

ba7592f6c1

See also:

390997925a
wip/yesman
Jan Tojnar 4 years ago
parent 564dec2f71
commit 1837136c7b
  1. 2
      pkgs/development/libraries/libvirt/default.nix

@ -65,6 +65,7 @@ in stdenv.mkDerivation rec {
dontAddDisableDepTrack = true;
configureFlags = [
"--with-runstatedir=/run" # TODO: remove when autoconf 1.70 is released
"--localstatedir=/var"
"--sysconfdir=/var/lib"
"--with-libpcap"
@ -97,6 +98,7 @@ in stdenv.mkDerivation rec {
];
installFlags = [
"runstatedir=${placeholder "out"}/run"
"localstatedir=$(TMPDIR)/var"
"sysconfdir=$(out)/var/lib"
];

Loading…
Cancel
Save