[Buildroot] [PATCH 1/2] lxc: add optional dependency to bash-completion
Fabrice Fontaine
fontaine.fabrice at gmail.com
Sat Jan 12 21:08:43 UTC 2019
lxc uses the completionsdir variable from bash-completions.pc to decide
where to install things.
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
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.14.1
More information about the buildroot
mailing list