Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] bash: use update-alternatives for the bash binary
@ 2016-11-30 18:50 Andreas Oberritter
  2016-11-30 18:50 ` [PATCH 2/2] util-linux: create own package for lsblk Andreas Oberritter
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andreas Oberritter @ 2016-11-30 18:50 UTC (permalink / raw)
  To: openembedded-core

Busybox may offer a bash applet. If enabled, the alternatives mechanism
avoids breaking logins if bash gets deinstalled while /bin/bash is configured
as a login shell.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-extended/bash/bash.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 1d08526..a05b987 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -14,9 +14,11 @@ EXTRA_OECONF = "--enable-job-control --without-bash-malloc"
 # This is what other major distros do. And this is what we wanted. See bug#5359 and bug#7137.
 CFLAGS += "-DNON_INTERACTIVE_LOGIN_SHELLS"
 
-ALTERNATIVE_${PN} = "sh"
+ALTERNATIVE_${PN} = "bash sh"
+ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash"
+ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash"
 ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
-ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash"
+ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}"
 ALTERNATIVE_PRIORITY = "100"
 
 RDEPENDS_${PN} += "base-files"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-30 22:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 18:50 [PATCH 1/2] bash: use update-alternatives for the bash binary Andreas Oberritter
2016-11-30 18:50 ` [PATCH 2/2] util-linux: create own package for lsblk Andreas Oberritter
2017-01-30 22:22   ` Andreas Oberritter
2016-12-01 17:41 ` [PATCH 1/2] bash: use update-alternatives for the bash binary Burton, Ross
2016-12-01 19:42   ` Andreas Oberritter
2017-01-30 22:21 ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox