diff --git a/f7e9b448-libxl-build.patch b/f7e9b448-libxl-build.patch new file mode 100644 index 0000000..7ccb401 --- /dev/null +++ b/f7e9b448-libxl-build.patch @@ -0,0 +1,28 @@ +commit f7e9b44812b3d3d8b16952d344eda187cb174c82 +Author: Jim Fehlig +Date: Thu Apr 7 16:01:58 2011 -0600 + + build: Install libxenlight log dir + + Add $localstatedir/log/libvirt/libxl when building libxenlight driver + +diff --git a/src/Makefile.am b/src/Makefile.am +index 9b54679..3649106 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1275,6 +1275,7 @@ endif + if WITH_LIBXL + $(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/libxl" + $(MKDIR_P) "$(DESTDIR)$(localstatedir)/run/libvirt/libxl" ++ $(MKDIR_P) "$(DESTDIR)$(localstatedir)/log/libvirt/libxl" + endif + if WITH_UML + $(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/uml" +@@ -1316,6 +1317,7 @@ endif + if WITH_LIBXL + rmdir "$(DESTDIR)$(localstatedir)/lib/libvirt/libxl" ||: + rmdir "$(DESTDIR)$(localstatedir)/run/libvirt/libxl" ||: ++ rmdir "$(DESTDIR)$(localstatedir)/log/libvirt/libxl" ||: + endif + if WITH_UML + rmdir "$(DESTDIR)$(localstatedir)/lib/libvirt/uml" ||: diff --git a/libvirt.changes b/libvirt.changes index 4f18814..3a81a6f 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 11 16:48:48 MDT 2011 - jfehlig@suse.de + +- Install log dir for libxl + f7e9b448-libxl-build.patch + ------------------------------------------------------------------- Mon Apr 4 16:02:23 MDT 2011 - jfehlig@novell.com diff --git a/libvirt.spec b/libvirt.spec index c5ca547..a642098 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -330,6 +330,7 @@ Recommends: device-mapper Source0: %{name}-%{version}.tar.bz2 Source1: libvirtd.init # Upstream patches +Patch0: f7e9b448-libxl-build.patch # Need to go upstream Patch100: xen-name-for-devid.patch Patch101: clone.patch @@ -445,6 +446,7 @@ Authors: %prep %setup -q +%patch0 -p1 %patch100 -p1 %patch101 %patch102 -p1 @@ -751,7 +753,7 @@ fi %endif %if %{with_libxl} %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/ -#%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/ +%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/ %endif %if %{with_storage_disk} %{_libdir}/%{name}/libvirt_parthelper