]> xenbits.xensource.com Git - libvirt.git/commit
Load CPU map from builddir when run uninstalled
authorJiri Denemark <jdenemar@redhat.com>
Mon, 10 Mar 2014 15:00:49 +0000 (16:00 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 12 Mar 2014 15:31:57 +0000 (16:31 +0100)
commite562e82f76614beff132ab48d3f0dabf64b20c5b
tree429201e751f71450006f43c4a6446e4a9c52255c
parent7b91dc3ecd97d8efca6d049d8a85db1a828124ae
Load CPU map from builddir when run uninstalled

When libvirtd is run from a build directory without being installed, it
should not depend on files from a libvirt package installed in the
system. Not only because there may not be any libvirt installed at all.
We already do a good job for plugins but cpu_map.xml was still loaded
from the system.

The Makefile.am change is necessary to make this all work from VPATH
builds since libvirtd has no idea where to find libvirt sources. It only
knows the path from which it was started, i.e, a builddir.

https://bugzilla.redhat.com/show_bug.cgi?id=1074327
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
daemon/libvirtd.c
src/Makefile.am
src/cpu/cpu_map.c