package: Remove shell completion at finalize stage

Instead of doing a removal of the completion file package per package,
do it all at the finalize stage so it's done once and for all.

Note: This fixes an issue with systemd where passing a --bashcompletiondir
or --zshcompletiondir would be evaluated to '.' by the autotools macro.
This would create a 'target./' directory.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Maxime Hadjinlian
2015-07-12 17:25:57 +02:00
committed by Thomas Petazzoni
parent 470cd0dcad
commit 76d1c729f0
4 changed files with 6 additions and 18 deletions

View File

@@ -26,12 +26,6 @@ UTIL_LINUX_CONF_OPTS += \
--disable-makeinstall-chown \
--without-python
ifeq ($(BR2_PACKAGE_BASH),)
UTIL_LINUX_CONF_OPTS += \
--disable-bash-completion \
--with-bashcompletiondir=
endif
# We don't want the host-busybox dependency to be added automatically
HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf