Skip to contentSkip to conversation

bash: use /bin/bash as default shell when bash is included

PATCH Saul Wold 1 participant 1 message Jan 28, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Saul Wold

author
#1 lore raw
Quoted 46 lines · On 01/27/2011 03:39 AM, [email protected] wrote:

From: Kevin Tian<[email protected]>

though bash is included in LSB profile, it doesn't use update-alternative to take effect and thus it's still busybox behaving as /bin/sh.

---
  meta/recipes-extended/bash/bash.inc       |    5 +++++
  meta/recipes-extended/bash/bash_3.2.48.bb |    2 +-
  meta/recipes-extended/bash/bash_4.1.bb    |    2 +-
  3 files changed, 7 insertions(+), 2 deletions(-)
meta/recipes-extended/bash/bash.inc +5 -0
index aa8cac8..a87b87f 100644
@@ -17,6 +17,11 @@ sbindir = "/sbin"
  EXTRA_OECONF = "--enable-job-control"
  export CC_FOR_BUILD = "${BUILD_CC}"
 
+ALTERNATIVE_NAME = "sh"
+ALTERNATIVE_PATH = "${base_bindir}/bash"
+ALTERNATIVE_LINK = "${base_bindir}/sh"
+ALTERNATIVE_PRIORITY = "100"
+
  do_configure () {
  	gnu-configize
  	oe_runconf
meta/recipes-extended/bash/bash_3.2.48.bb +1 -1
index ee563d6..e5a3e36 100644
@@ -6,7 +6,7 @@ LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM = "file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"
  DEPENDS = "ncurses"
 
-PR = "r6"
+PR = "r7"
 
  SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
             http://ftp.gnu.org/gnu/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0 \
meta/recipes-extended/bash/bash_4.1.bb +0 -0
index 6a558ed..cea4042 100644

meta/recipes-extended/bash/bash_4.1.bb line 6

Quoted 7 lines
meta/recipes-extended/bash/bash_4.1.bb +1 -1
@@ -1,6 +1,6 @@
  require bash.inc
 
-PR = "r0"
+PR = "r1"
 
  SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \
             http://ftp.gnu.org/gnu/bash/bash-4.1-patches/bash41-001;apply=yes;striplevel=0;name=patch001 \

Pulled into Master

Thanks
Sau!