From f80993040ef7e709bb1dcefccea4b39432865e14 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Aug 2014 22:10:50 +0200 Subject: [PATCH] lxc: lxc-void: try to fix empty XBPS_ARCH. --- srcpkgs/lxc/files/lxc-void | 4 ++-- srcpkgs/lxc/template | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/lxc/files/lxc-void b/srcpkgs/lxc/files/lxc-void index 32f0b78c677..0f3db7a24bd 100755 --- a/srcpkgs/lxc/files/lxc-void +++ b/srcpkgs/lxc/files/lxc-void @@ -104,9 +104,9 @@ install_void() { hostname=$3 arch=$4 - [ "${arch}" != "$(uname -m)" ] && different_arch=true + [ "${arch}" != "$(uname -m)" ] && different_arch=1 - if [ "${different_arch}" = "true" ]; then + if [ -n "${different_arch}" ]; then export XBPS_ARCH=${arch} fi diff --git a/srcpkgs/lxc/template b/srcpkgs/lxc/template index c851537691b..fb6b1a258b2 100644 --- a/srcpkgs/lxc/template +++ b/srcpkgs/lxc/template @@ -3,7 +3,7 @@ _desc="Linux Containers" pkgname=lxc version=1.0.5 -revision=5 +revision=6 build_style=gnu-configure configure_args="--enable-doc --enable-seccomp --disable-apparmor --with-distro=none --with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log"