diff options
author | Martin Ertsaas <mertsas@cisco.com> | 2012-09-19 09:16:55 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-24 11:30:30 +0100 |
commit | 22a4046ab36498f7c7ea3f7518acd2c89f8163c3 (patch) | |
tree | 3f7762e7fdd7f8191a35aae5f4040411f8252827 | |
parent | b294e904b61d58320b65e0bf44c3d8f2115b6d16 (diff) | |
download | poky-22a4046ab36498f7c7ea3f7518acd2c89f8163c3.tar.gz |
bash: Make it possible to run bash 3.2.48 instead of 4.2.
bash-3.2.48 did not provide the linking from sh to bash, making it unusable.
Moving the license part out of the bash.inc file, and into bash_4.2.bb file makes
us able to use that file also for bash_3.2.48.bb, which makes maintaining both
at the same time a lot easier.
(From OE-Core rev: e7b82cb4d107bfbfa5c939d406dd6ce6615b24e1)
Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 3 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash_3.2.48.bb | 31 | ||||
-rw-r--r-- | meta/recipes-extended/bash/bash_4.2.bb | 6 |
3 files changed, 7 insertions, 33 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index 3684191d03..ae4b681000 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language interpreter." | |||
2 | HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" | 2 | HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" |
3 | SECTION = "base/shell" | 3 | SECTION = "base/shell" |
4 | 4 | ||
5 | # GPLv2+ (< 4.0), GPLv3+ (>= 4.0) | ||
6 | LICENSE = "GPLv3+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
8 | DEPENDS = "ncurses bison-native" | 5 | DEPENDS = "ncurses bison-native" |
9 | 6 | ||
10 | inherit autotools gettext update-alternatives | 7 | inherit autotools gettext update-alternatives |
diff --git a/meta/recipes-extended/bash/bash_3.2.48.bb b/meta/recipes-extended/bash/bash_3.2.48.bb index 509d7a092e..828d629469 100644 --- a/meta/recipes-extended/bash/bash_3.2.48.bb +++ b/meta/recipes-extended/bash/bash_3.2.48.bb | |||
@@ -1,12 +1,9 @@ | |||
1 | DESCRIPTION = "An sh-compatible command language interpreter." | 1 | require bash.inc |
2 | HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" | ||
3 | SECTION = "base/shell" | ||
4 | 2 | ||
5 | LICENSE = "GPLv2+" | 3 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a" |
7 | DEPENDS = "ncurses" | ||
8 | 5 | ||
9 | PR = "r10" | 6 | PR = "r11" |
10 | 7 | ||
11 | SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \ | 8 | SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \ |
12 | ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \ | 9 | ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \ |
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] = "354886097cd95b4def77028f32ee01e2e088d58a98184fede | |||
24 | 21 | ||
25 | SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8" | 22 | SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8" |
26 | SRC_URI[sha256sum] = "128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348" | 23 | SRC_URI[sha256sum] = "128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348" |
27 | |||
28 | inherit autotools gettext | ||
29 | |||
30 | PARALLEL_MAKE = "" | ||
31 | |||
32 | bindir = "/bin" | ||
33 | sbindir = "/sbin" | ||
34 | |||
35 | EXTRA_OECONF = "--with-ncurses" | ||
36 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
37 | |||
38 | export AUTOHEADER = "true" | ||
39 | |||
40 | do_configure_prepend () { | ||
41 | if [ ! -e acinclude.m4 ]; then | ||
42 | cat aclocal.m4 > acinclude.m4 | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | pkg_postinst_${PN} () { | ||
47 | touch $D${sysconfdir}/shells | ||
48 | grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells | ||
49 | grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells | ||
50 | } | ||
diff --git a/meta/recipes-extended/bash/bash_4.2.bb b/meta/recipes-extended/bash/bash_4.2.bb index 384eb6265d..5a0f015c79 100644 --- a/meta/recipes-extended/bash/bash_4.2.bb +++ b/meta/recipes-extended/bash/bash_4.2.bb | |||
@@ -1,6 +1,10 @@ | |||
1 | require bash.inc | 1 | require bash.inc |
2 | 2 | ||
3 | PR = "r4" | 3 | # GPLv2+ (< 4.0), GPLv3+ (>= 4.0) |
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
6 | |||
7 | PR = "r5" | ||
4 | 8 | ||
5 | SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \ | 9 | SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \ |
6 | ${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \ | 10 | ${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \ |