package/bash-completion: new package
PATCH v3 1/1 package/bash-completion: new package
From: Jeremy Rosen <[email protected]>
Along with other files, bash_completion install bash_completion.sh script in /etc/profile.d to load bash_completion for interactive shell.
When interactive shells is used, /etc/profile is executed and source all *.sh script present in /etc/profile.d directoty.
If the system does not use the /etc/profile.d directory mechanism, the /etc/profile.d/bash_completion.sh script can be sourced in /etc/bashrc or ~/.bashrc.
bashrc file can be provided from a rootfs overlay when needed.
---
v3: remove post install hook
bump to version 2.8
use GPL-2.0 (not GPL-2.0+), there is no "or any later version" string
v2: use a install target hook (Baruch)
install to staging
--- package/Config.in | 1 + package/bash-completion/Config.in | 7 +++++++ package/bash-completion/bash-completion.hash | 3 +++ package/bash-completion/bash-completion.mk | 16 ++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 package/bash-completion/Config.in create mode 100644 package/bash-completion/bash-completion.hash create mode 100644 package/bash-completion/bash-completion.mk
package/Config.in +1 -0
@@ -1935,6 +1935,7 @@ comment "Shells" source "package/zsh/Config.in" comment "Utilities" source "package/at/Config.in" + source "package/bash-completion/Config.in" source "package/ccrypt/Config.in" source "package/crudini/Config.in" source "package/dialog/Config.in"
package/bash-completion/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_BASH_COMPLETION + bool "bash completion" + depends on BR2_PACKAGE_BASH + help + Add bash completion infrastructure. + + https://github.com/scop/bash-completion
package/bash-completion/bash-completion.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 c01f5570f5698a0dda8dc9cfb2a83744daa1ec54758373a6e349bd903375f54d bash-completion-2.8.tar.xz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/bash-completion/bash-completion.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# bash-completion +# +################################################################################ + +BASH_COMPLETION_VERSION = 2.8 +BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION) +BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz +BASH_COMPLETION_LICENSE = GPL-2.0 +BASH_COMPLETION_LICENSE_FILES = COPYING + +# Install bash-completion.pc file +BASH_COMPLETION_INSTALL_STAGING = YES + +$(eval $(autotools-package))
Signature · 1 line
2.7.4
PATCH v3 1/1 package/bash-completion: new package
Hello,
Quoted 5 lines · Romain Naour
From: Jeremy Rosen <[email protected]>
Along with other files,
bash_completioninstallbash_completion.shscript in/etc/profile.dto loadbash_completionfor interactive shell.
Quoted 8 lines
When interactive shells is used,
/etc/profileis executed and source all *.sh script present in/etc/profile.ddirectoty.If the system does not use the
/etc/profile.ddirectory mechanism, the/etc/profile.d/bash_completion.shscript can be sourced in/etc/bashrcor ~/.bashrc.bashrc file can be provided from a rootfs overlay when needed.
This whole explanation in the commit log didn't make much sense to me. Rather than explaining what the patch does, it explains how to integrate bash-completion into your system. So I've simplified this explanation and moved it to the Config.in help text.
Applied with this change!
Thanks for this contribution!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com