libvirt: correct localstatedir (#109415)

It was supposed to be '/var' rather than '/var/lib'. This fixes an issue
where some tools don't connect to the right socket (because they were
connecting to '$localstatedir/run/libvirt...' instead of
'$runstatedir/libvirt...').

Also change runstatedir to just be '/run' since it avoids a log line
complaining about that.
This commit is contained in:
Euan Kemp 2021-01-16 13:44:42 -08:00 committed by GitHub
parent bb3e0885d9
commit 145cf67bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,8 +88,8 @@ in stdenv.mkDerivation rec {
in [
"--sysconfdir=/var/lib"
"-Dinstall_prefix=${placeholder "out"}"
"-Dlocalstatedir=/var/lib"
"-Drunstatedir=/var/run"
"-Dlocalstatedir=/var"
"-Drunstatedir=/run"
"-Dlibpcap=enabled"
"-Ddriver_qemu=enabled"
"-Ddriver_vmware=enabled"