From 22654c17402c4e3032bbb771c402ac0595fd6e68 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 27 Oct 2014 17:37:28 +0100 Subject: [PATCH] libvirt: fix !x86_64 builds. --- srcpkgs/libvirt/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template index 3c7819c0a44..c85f194ce59 100644 --- a/srcpkgs/libvirt/template +++ b/srcpkgs/libvirt/template @@ -23,9 +23,12 @@ makedepends="readline-devel>=6.3 libcap-ng-devel libnl3-devel attr-devel libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel python-devel libssh2-devel libcap-ng-devel fuse-devel" -if [ "$XBPS_MACHINE" = "i686" -o "$XBPS_MACHINE" = "x86_64" ]; then +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then configure_args+=" --with-xen" makedepends+=" libnuma-devel xen-devel" +elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + configure_args+=" --without-xen" + makedepends+=" libnuma-devel" else configure_args+=" --without-xen" fi