From 61a425590a71d232480181431eb0073ad0c420a9 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 12 Jan 2019 22:08:43 +0100 Subject: [PATCH] package/lxc: add optional dependency to bash-completion lxc uses the completionsdir variable from bash-completions.pc to decide where to install things. Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/lxc/lxc.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk index c9838fb229..c758a15b9d 100644 --- a/package/lxc/lxc.mk +++ b/package/lxc/lxc.mk @@ -17,6 +17,10 @@ LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \ --disable-werror \ $(if $(BR2_PACKAGE_BASH),,--disable-bash) +ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y) +LXC_DEPENDENCIES += bash-completion +endif + ifeq ($(BR2_PACKAGE_GNUTLS),y) LXC_CONF_OPTS += --enable-gnutls LXC_DEPENDENCIES += gnutls -- 2.30.2