From: Fabrice Fontaine Date: Sat, 12 Jan 2019 21:08:43 +0000 (+0100) Subject: package/lxc: add optional dependency to bash-completion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61a425590a71d232480181431eb0073ad0c420a9;p=buildroot.git 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 --- 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