[Buildroot] [git commit branch/2020.05.x] Makefile: add /etc/bash_completion.d to non-bash purge

Peter Korsgaard peter at korsgaard.com
Tue Jul 21 20:51:17 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=9704c56af1c7b5b5c2f7e547478309a9850f803d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.05.x

Currently, we delete /usr/share/bash-completion when bash is not enabled.
We need to delete /etc/bash_completion.d too. For example, the jo package
installs files there:


Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 18072ecc24b8f288cf131e0d3dcceb0bb6c955c8)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index c6e0529498..413e565dae 100644
--- a/Makefile
+++ b/Makefile
@@ -757,6 +757,7 @@ ifneq ($(BR2_PACKAGE_GDB),y)
 ifneq ($(BR2_PACKAGE_BASH),y)
 	rm -rf $(TARGET_DIR)/usr/share/bash-completion
+	rm -rf $(TARGET_DIR)/etc/bash_completion.d
 ifneq ($(BR2_PACKAGE_ZSH),y)
 	rm -rf $(TARGET_DIR)/usr/share/zsh

More information about the buildroot mailing list