Hi developers! Consider using following patch for bash/bash.inc file to get bash-sh package available (i.e. /bin/sh -> /bin/bash linking executed) in case 2011.03 maintenance is still maintained. It uses update-alternatives call instead of direct ln -s statements by the original recipe Therefore, results can now be easily accessed with update-alternatives call. I don't know how much bash is needed as it seems that also dash shell gets installed/is available with conventional console image with quite satisfactory functionality. Somehow it's installed with lower priority than busybox sh. Anyhow please find my patch below. Take care, Matti
--- openembedded/recipes/bash/bash.inc 2011-07-26 11:45:18.226525143 +0300 +++ oe_sitecno/overlay/bash/bash_3.2/bash.inc 2012-12-01 10:33:08.915944456 +0200 @@ -37,12 +37,14 @@ PACKAGES += "bash-sh" RDEPENDS_bash-sh = "bash" +RPROVIDES_${PN} = "bash bash-sh" + ALLOW_EMPTY_bash-sh = "1" pkg_postinst_bash-sh() { - cd $D/bin && ln -sf bash sh + update-alternatives --install ${bindir}/sh sh ${bindir}/bash 100 } pkg_postrm_bash-sh() { - ln -sf /bin/busybox /bin/sh + update-alternatives --remove sh ${bindir}/bash } 2012/11/17 matti kaasinen <matti.kaasi...@gmail.com> > Hi developers, > It seems that bash-3.2-r12.bb does not make /bin/sh linking to /bin/bash. > Actually, I suppose, the problem is in bash.inc file. > It makes this link in pkg_postinst_bash-sh() function. > However, as there is no RPROVIDES statement in the recipe, there is no way > using bash-sh package that should provide this link (I think?). > > On the other hand, I don't think the way recipe tries to create those post > inst procedures is quite by the book. Would in not be better using > update-alternatives structures? > > That was my theory - I don't know if that is correct. However, the fact is > that there is /bin/bash in the filesystem, but not the link pointing from > /bin/sh to /bin/bash. > > cheers, > Matti > > _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel