[oe-commits] Stefan Schmidt : bash: Add bash-sh package to switch /bin/sh to /bin/bash
git version control
git at git.openembedded.org
Fri Feb 18 21:44:15 UTC 2011
Module: openembedded.git
Branch: trini/simplify-target-flags
Commit: f94e88e8a49ecae723de61ac5d04b0c3f8139eca
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f94e88e8a49ecae723de61ac5d04b0c3f8139eca
Author: Stefan Schmidt <stefan at buglabs.net>
Date: Fri Feb 18 11:26:48 2011 +0100
bash: Add bash-sh package to switch /bin/sh to /bin/bash
An old change from hrw in the BugLabs repo I forgot to bring over earlier.
---
recipes/bash/bash.inc | 13 +++++++++++++
recipes/bash/bash_3.0.bb | 2 +-
recipes/bash/bash_3.2.bb | 2 +-
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/recipes/bash/bash.inc b/recipes/bash/bash.inc
index 239ddd1..99c6398 100644
--- a/recipes/bash/bash.inc
+++ b/recipes/bash/bash.inc
@@ -33,3 +33,16 @@ pkg_postinst () {
grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
}
+
+PACKAGES += "bash-sh"
+RDEPENDS_bash-sh = "bash"
+
+ALLOW_EMPTY_bash-sh = "1"
+
+pkg_postinst_bash-sh() {
+ cd $D/bin && ln -sf bash sh
+}
+
+pkg_postrm_bash-sh() {
+ ln -sf /bin/busybox /bin/sh
+}
diff --git a/recipes/bash/bash_3.0.bb b/recipes/bash/bash_3.0.bb
index 60e6707..ec0510e 100644
--- a/recipes/bash/bash_3.0.bb
+++ b/recipes/bash/bash_3.0.bb
@@ -1,5 +1,5 @@
require bash.inc
-PR = "r13"
+PR = "r14"
SRC_URI += "\
file://bash-3.0-fixes.patch \
diff --git a/recipes/bash/bash_3.2.bb b/recipes/bash/bash_3.2.bb
index 5a41882..4758a4f 100644
--- a/recipes/bash/bash_3.2.bb
+++ b/recipes/bash/bash_3.2.bb
@@ -1,6 +1,6 @@
require bash.inc
-PR = "r11"
+PR = "r12"
SRC_URI += "\
file://builtins.patch \
More information about the Openembedded-commits
mailing list