Skip to contentSkip to conversation

Makefile: add /etc/bash_completion.d to non-bash purge

PATCH New Danomi Manchego 3 participants 3 messages Jul 14, 2020 – Jul 21, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: add /etc/bash_completion.d to non-bash purge

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:

/etc/bash_completion.d/jo.bash

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index 04c29b1..d6540ac 100644
@@ -756,6 +756,7 @@ ifneq ($(BR2_PACKAGE_GDB),y)
 endif
 ifneq ($(BR2_PACKAGE_BASH),y)
 	rm -rf $(TARGET_DIR)/usr/share/bash-completion
+	rm -rf $(TARGET_DIR)/etc/bash_completion.d
 endif
 ifneq ($(BR2_PACKAGE_ZSH),y)
 	rm -rf $(TARGET_DIR)/usr/share/zsh
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 Makefile: add /etc/bash_completion.d to non-bash purge

Quoted 10 lines · On Mon, 13 Jul 2020 22:24:59 -0400 Danomi Manchego…

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:

/etc/bash_completion.d/jo.bash

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 Makefile: add /etc/bash_completion.d to non-bash purge

In reply to Danomi Manchego
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Danomi" == Danomi Manchego <[email protected]> writes:

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:

/etc/bash_completion.d/jo.bash

Committed to 2020.02.x and 2020.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard