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
This commit is contained in:
Jan Tojnar 2020-07-08 13:00:16 +02:00
parent 564dec2f71
commit 1837136c7b

View File

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