Browse Source

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 <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 6 years ago
parent
commit
61a425590a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/lxc/lxc.mk

+ 4 - 0
package/lxc/lxc.mk

@@ -17,6 +17,10 @@ LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
 	--disable-werror \
 	--disable-werror \
 	$(if $(BR2_PACKAGE_BASH),,--disable-bash)
 	$(if $(BR2_PACKAGE_BASH),,--disable-bash)
 
 
+ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
+LXC_DEPENDENCIES += bash-completion
+endif
+
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 LXC_CONF_OPTS += --enable-gnutls
 LXC_CONF_OPTS += --enable-gnutls
 LXC_DEPENDENCIES += gnutls
 LXC_DEPENDENCIES += gnutls