git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit145cf67bbbe7afc10b9db8e6454828b64a975da5 authorEuan Kemp <euank@euank.com> dateSat 16 Jan 2021, 13:44 (6 years ago) parentbb3e088
1 file changed+2−2
pkgs/development/libraries/libvirt/default.nix+2−2
pkgs/development/libraries/libvirt/default.nix+2−2
@@ -88,8 +88,8 @@ in stdenv.mkDerivation rec {
8888 in [
8989 "--sysconfdir=/var/lib"
9090 "-Dinstall_prefix=${placeholder "out"}"
91− "-Dlocalstatedir=/var/lib"
92− "-Drunstatedir=/var/run"
91+ "-Dlocalstatedir=/var"
92+ "-Drunstatedir=/run"
9393 "-Dlibpcap=enabled"
9494 "-Ddriver_qemu=enabled"
9595 "-Ddriver_vmware=enabled"