[PATCH] disable xenlight for non-Xen platforms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

when building libvirt in Fedora/s390x I've found that xenlight needs to
be explicitly disabled in the spec file. Configure properly sets the
library as non-existent, but the %files section still wants to package
the 3 /var/*/libvirt/libxl directories. See also
https://bugzilla.redhat.com/show_bug.cgi?id=745020


With regards,

Dan

>From daf8e124ca727b7f4de7f3ab5f04f5336d2c992f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@xxxxxxxx>
Date: Tue, 11 Oct 2011 10:28:38 +0200
Subject: [PATCH] xenlight available only on Xen arches (#745020)

---
 libvirt.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libvirt.spec b/libvirt.spec
index 8ddfbde..d6afdbc 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -89,6 +89,7 @@
 # Xen is available only on i386 x86_64 ia64
 %ifnarch i386 i586 i686 x86_64 ia64
 %define with_xen 0
+%define with_libxl 0
 %endif
 
 # Numactl is not available on s390[x] and ARM
@@ -234,7 +235,7 @@
 Summary: Library providing a simple virtualization API
 Name: libvirt
 Version: 0.9.6
-Release: 2%{?dist}%{?extra_release}
+Release: 3%{?dist}%{?extra_release}
 License: LGPLv2+
 Group: Development/Libraries
 Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
@@ -1160,6 +1161,9 @@ fi
 %endif
 
 %changelog
+* Tue Oct 11 2011 Dan Horák <dan[at]danny.cz> - 0.9.6-3
+- xenlight available only on Xen arches (#745020)
+
 * Mon Oct  3 2011 Laine Stump <laine@xxxxxxxxxx> - 0.9.6-2
 - Make PCI multifunction support more manual - Bug 742836
 - F15 build still uses cgconfig - Bug 738725
-- 
1.7.4.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]