Skip to content

Commit

Permalink
libvirt: correct localstatedir (#109415)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
euank committed Jan 16, 2021
1 parent bb3e088 commit 145cf67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libvirt/default.nix
Expand Up @@ -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"
Expand Down

0 comments on commit 145cf67

Please sign in to comment.