[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, master, updated. debian/0.9.7-1-1-gb0bdb13

Guido Günther agx at sigxcpu.org
Sat Nov 12 06:49:13 UTC 2011


The following commit has been merged in the master branch:
commit b0bdb13e0b15df41e03c2d15d5cf8f6977801a2f
Author: Guido Günther <agx at sigxcpu.org>
Date:   Fri Nov 11 11:39:20 2011 +0100

    Enable numa support
    
    Thanks: Ralf Spenneberg for testing

diff --git a/debian/control b/debian/control
index eb6bc3c..d62cc73 100644
--- a/debian/control
+++ b/debian/control
@@ -30,6 +30,7 @@ Build-Depends: cdbs (>= 0.4.90~),
  libnl-dev [linux-any],
  libyajl-dev,
  libpcap0.8-dev,
+ libnuma-dev [amd64 i386 ia64 mips mipsel powerpc],
 # For "make check"
  libxml2-utils,
  dnsmasq-base,
diff --git a/debian/rules b/debian/rules
index 4c411d1..4b4f87e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,11 @@ ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
   WITH_NETWORK        = --with-network
   WITH_QEMU           = --with-qemu
   WITH_OPENVZ         = --with-openvz
+  ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 i386 ia64 mips mipsel powerpc))
+      WITH_NUMA       = --with-numactl
+  else
+      WITH_NUMA       = --without-numactl
+  endif
   ifneq (,$(findstring $(DEB_HOST_ARCH), ia64))
       WITH_LXC        = --without-lxc
   else
@@ -43,6 +48,7 @@ else
   WITH_NETWORK        = --without-network
   WITH_QEMU           = --without-qemu
   WITH_LXC            = --without-lxc
+  WITH_NUMA           = --without-numactl
 endif
 
 DEB_BUILDDIR := $(CURDIR)/debian/build
@@ -62,7 +68,7 @@ DEB_CONFIGURE_EXTRA_FLAGS :=     \
 	$(WITH_STORAGE_ISCSI)	 \
 	$(WITH_STORAGE_DISK)	 \
 	--with-init-script=none  \
-	--without-numactl	 \
+	$(WITH_NUMA)             \
 	--without-selinux        \
 	--without-esx		 \
 	--without-libssh2	 \

-- 
Libvirt Debian packaging



More information about the Pkg-libvirt-commits mailing list