[Pkg-libvirt-maintainers] [PATCH] enable libxl for armhf and arm64

Serge Hallyn serge.hallyn at ubuntu.com
Thu Apr 28 18:11:17 UTC 2016


This is done in the Ubuntu packages.  There may be a good reason
why it is not done in the Debian packages, but I'm not sure what it
is, so sending this as a query :)

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Cc: Stefan Bader <stefan.bader at canonical.com>
---
 debian/control |  4 ++--
 debian/rules   | 13 ++++++++-----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 8b9cd9b..e252e49 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Build-Depends:
  libgnutls28-dev,
  libavahi-client-dev,
  libsasl2-dev,
- libxen-dev (>= 4.3) [i386 amd64],
+ libxen-dev (>= 4.3) [i386 amd64 armhf arm64],
  lvm2 [linux-any],
  open-iscsi [linux-any],
  libparted0-dev (>= 2.2),
@@ -198,7 +198,7 @@ Description: documentation for the libvirt library
 Package: libvirt-dev
 Architecture: any
 Section: libdevel
-Depends: ${misc:Depends}, libvirt0 (= ${binary:Version}), libxen-dev [i386 amd64]
+Depends: ${misc:Depends}, libvirt0 (= ${binary:Version}), libxen-dev [i386 amd64 armhf arm64]
 Replaces: libvirt-bin (<< 1.2.0~)
 Recommends: pkg-config
 Description: development files for the libvirt library
diff --git a/debian/rules b/debian/rules
index 6812719..4d72098 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,14 +7,17 @@ DEB_BUILDUSER=${USER}
 
 ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
   ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
-    WITH_XEN = --with-xen
-    WITH_LIBXL = --with-libxl
     WITH_VBOX = --with-vbox
     MAKE_CHECK = 1
   else
-    WITH_XEN            = --without-xen
-    WITH_LIBXL          = --without-libxl
-    WITH_VBOX           = --without-vbox
+    WITH_VBOX         = --without-vbox
+  endif
+  ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64 armhf arm64))
+    WITH_XEN = --with-xen
+    WITH_LIBXL = --with-libxl
+  else
+    WITH_XEN          = --without-xen
+    WITH_LIBXL        = --without-libxl
   endif
   WITH_STORAGE_LVM    = --with-storage-lvm
   WITH_STORAGE_ISCSI  = --with-storage-iscsi
-- 
2.7.4




More information about the Pkg-libvirt-maintainers mailing list