Skip to contentSkip to conversation

bash: Make it possible to run bash 3.2.48 instead of 4.2.

PATCH Applied Martin Ertsaas 3 participants 7 messages Sep 19, 2012 – Sep 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 meta/recipes-extended/bash/bash.inc       |    3 --
 meta/recipes-extended/bash/bash_3.2.48.bb |   31 +---------------------------
 meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
 3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -3
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language interpreter."
 HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
 SECTION = "base/shell"
 
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 DEPENDS = "ncurses bison-native"
 
 inherit autotools gettext update-alternatives
meta/recipes-extended/bash/bash_3.2.48.bb +2 -29
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
 SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \
            ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] = "354886097cd95b4def77028f32ee01e2e088d58a98184fede
 
 SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8"
 SRC_URI[sha256sum] = "128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-	if [ ! -e acinclude.m4 ]; then
-		cat aclocal.m4 > acinclude.m4
-	fi
-}
-
-pkg_postinst_${PN} () {
-	touch $D${sysconfdir}/shells
-	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
-}
meta/recipes-extended/bash/bash_4.2.bb +5 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
 require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+PR = "r5"
 
 SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \
            ${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \
Signature · 1 line
1.7.8.6
#1 lore raw
Quoted 5 lines · Martin Ertsaas

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.

This is good, but I forgot to ask you to include the size change in here, it's helpful for tracking, I am still considering this change, but we have constantly adding little change like this adds up to bigger change.

Is there any other way to do the equivalent of what you are attempting to do in the other patch without adding size to busy box?

Thanks

Sau!

Quoted 85 lines
---
  meta/recipes-extended/bash/bash.inc       |    3 --
  meta/recipes-extended/bash/bash_3.2.48.bb |   31 +---------------------------
  meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
  3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -3
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language interpreter."
  HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
  SECTION = "base/shell"
 
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
  DEPENDS = "ncurses bison-native"
 
  inherit autotools gettext update-alternatives
meta/recipes-extended/bash/bash_3.2.48.bb +2 -29
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
  LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM = "file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
  SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \
             ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] = "354886097cd95b4def77028f32ee01e2e088d58a98184fede
 
  SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8"
  SRC_URI[sha256sum] = "128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-	if [ ! -e acinclude.m4 ]; then
-		cat aclocal.m4 > acinclude.m4
-	fi
-}
-
-pkg_postinst_${PN} () {
-	touch $D${sysconfdir}/shells
-	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
-}
meta/recipes-extended/bash/bash_4.2.bb +5 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
  require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+PR = "r5"
 
  SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \
             ${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \
#2 lore raw
Quoted 14 lines · Saul Wold
Quoted 8 lines · Martin Ertsaas

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.

This is good, but I forgot to ask you to include the size change in here, it's helpful for tracking, I am still considering this change, but we have constantly adding little change like this adds up to bigger change.

Quoted 6 lines

Is there any other way to do the equivalent of what you are attempting to do in the other patch without adding size to busy box?

Thanks

Sau!

What size change is that? I'm not sure what you are referring to here, sorry. As far as I see I'm not adding any size to busybox either, but I might be wrong as I don't know the internals of busybox. If you could elaborate a bit more, I can see what I can do about your concerns.

- Martin

Quoted 102 lines
Quoted 102 lines
---
  meta/recipes-extended/bash/bash.inc       |    3 --
  meta/recipes-extended/bash/bash_3.2.48.bb |   31
+---------------------------
  meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
  3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -0
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language

interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SECTION = "base/shell"

meta/recipes-extended/bash/bash.inc +0 -3
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "ncurses bison-native"

inherit autotools gettext update-alternatives

meta/recipes-extended/bash/bash_3.2.48.bb +1 -3
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
  LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM =

"file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"

meta/recipes-extended/bash/bash_3.2.48.bb +1 -2
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
  SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \

meta/recipes-extended/bash/bash_3.2.48.bb +0 -0
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] =

"354886097cd95b4def77028f32ee01e2e088d58a98184fede

SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8" SRC_URI[sha256sum] =
"128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"

meta/recipes-extended/bash/bash_3.2.48.bb +0 -22
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-    if [ ! -e acinclude.m4 ]; then
-        cat aclocal.m4 > acinclude.m4
-    fi
-}
-
-pkg_postinst_${PN} () {
-    touch $D${sysconfdir}/shells
-    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

meta/recipes-extended/bash/bash_3.2.48.bb +0 -1
-}
meta/recipes-extended/bash/bash_4.2.bb +3 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
  require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

meta/recipes-extended/bash/bash_4.2.bb +2 -0
+
+PR = "r5"
 
  SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \

#3 lore raw
Quoted 18 lines · Martin Ertsås
Quoted 17 lines · Saul Wold
Quoted 8 lines · Martin Ertsaas

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.

This is good, but I forgot to ask you to include the size change in here, it's helpful for tracking, I am still considering this change, but we have constantly adding little change like this adds up to bigger change.

Is there any other way to do the equivalent of what you are attempting to do in the other patch without adding size to busy box?

Quoted 8 lines
Quoted 3 lines

Thanks

Sau!

What size change is that? I'm not sure what you are referring to here, sorry. As far as I see I'm not adding any size to busybox either, but I might be wrong as I don't know the internals of busybox. If you could elaborate a bit more, I can see what I can do about your concerns.

Sorry, today's been a bit crazy! I confused a change to busybox with your change to bash! My bad, ignore me.

I will revisit this tomorrow.

Sau!

Quoted 106 lines

- Martin

Quoted 102 lines
Quoted 102 lines
---
   meta/recipes-extended/bash/bash.inc       |    3 --
   meta/recipes-extended/bash/bash_3.2.48.bb |   31
+---------------------------
   meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
   3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -0
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language

interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SECTION = "base/shell"

meta/recipes-extended/bash/bash.inc +0 -3
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "ncurses bison-native"

inherit autotools gettext update-alternatives

meta/recipes-extended/bash/bash_3.2.48.bb +1 -3
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
   LICENSE = "GPLv2+"
   LIC_FILES_CHKSUM =

"file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"

meta/recipes-extended/bash/bash_3.2.48.bb +1 -2
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
   SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \

meta/recipes-extended/bash/bash_3.2.48.bb +0 -0
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] =

"354886097cd95b4def77028f32ee01e2e088d58a98184fede

   SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8"
   SRC_URI[sha256sum] =

"128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"

meta/recipes-extended/bash/bash_3.2.48.bb +0 -22
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-    if [ ! -e acinclude.m4 ]; then
-        cat aclocal.m4 > acinclude.m4
-    fi
-}
-
-pkg_postinst_${PN} () {
-    touch $D${sysconfdir}/shells
-    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

meta/recipes-extended/bash/bash_3.2.48.bb +0 -1
-}
meta/recipes-extended/bash/bash_4.2.bb +3 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
   require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

meta/recipes-extended/bash/bash_4.2.bb +2 -0
+
+PR = "r5"
 
   SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \

#4 lore raw
Quoted 27 lines · Saul Wold
Quoted 18 lines · Martin Ertsås
Quoted 17 lines · Saul Wold
Quoted 8 lines · Martin Ertsaas

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.

This is good, but I forgot to ask you to include the size change in here, it's helpful for tracking, I am still considering this change, but we have constantly adding little change like this adds up to bigger change.

Is there any other way to do the equivalent of what you are attempting to do in the other patch without adding size to busy box?

Quoted 8 lines
Quoted 3 lines

Thanks

Sau!

What size change is that? I'm not sure what you are referring to here, sorry. As far as I see I'm not adding any size to busybox either, but I might be wrong as I don't know the internals of busybox. If you could elaborate a bit more, I can see what I can do about your concerns.

Quoted 6 lines

Sorry, today's been a bit crazy! I confused a change to busybox with your change to bash! My bad, ignore me.

I will revisit this tomorrow.

Sau!

Ok. No wonder I was a bit confused then.

- Martin

Quoted 112 lines
Quoted 112 lines

- Martin

Quoted 104 lines
Quoted 104 lines
---
   meta/recipes-extended/bash/bash.inc       |    3 --
   meta/recipes-extended/bash/bash_3.2.48.bb |   31
+---------------------------
   meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
   3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -0
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language

interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SECTION = "base/shell"

meta/recipes-extended/bash/bash.inc +0 -3
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "ncurses bison-native"

inherit autotools gettext update-alternatives

meta/recipes-extended/bash/bash_3.2.48.bb +1 -3
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
   LICENSE = "GPLv2+"
   LIC_FILES_CHKSUM =

"file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"

meta/recipes-extended/bash/bash_3.2.48.bb +1 -2
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
   SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001

\

meta/recipes-extended/bash/bash_3.2.48.bb +0 -0
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] =

"354886097cd95b4def77028f32ee01e2e088d58a98184fede

   SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8"
   SRC_URI[sha256sum] =

"128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"

meta/recipes-extended/bash/bash_3.2.48.bb +0 -22
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-    if [ ! -e acinclude.m4 ]; then
-        cat aclocal.m4 > acinclude.m4
-    fi
-}
-
-pkg_postinst_${PN} () {
-    touch $D${sysconfdir}/shells
-    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

meta/recipes-extended/bash/bash_3.2.48.bb +0 -1
-}
meta/recipes-extended/bash/bash_4.2.bb +3 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
   require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

meta/recipes-extended/bash/bash_4.2.bb +2 -0
+
+PR = "r5"
 
   SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001

\

#5 lore raw
In reply to Saul Wold

What is the status of this patch? Are there more changes needed for this to make it in master, or are we just waiting until after 1.3?

- Martin

Quoted 145 lines · Saul Wold
Quoted 18 lines · Martin Ertsås
Quoted 17 lines · Saul Wold
Quoted 8 lines · Martin Ertsaas

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.

This is good, but I forgot to ask you to include the size change in here, it's helpful for tracking, I am still considering this change, but we have constantly adding little change like this adds up to bigger change.

Is there any other way to do the equivalent of what you are attempting to do in the other patch without adding size to busy box?

Quoted 8 lines
Quoted 3 lines

Thanks

Sau!

What size change is that? I'm not sure what you are referring to here, sorry. As far as I see I'm not adding any size to busybox either, but I might be wrong as I don't know the internals of busybox. If you could elaborate a bit more, I can see what I can do about your concerns.

Sorry, today's been a bit crazy! I confused a change to busybox with your change to bash! My bad, ignore me.

I will revisit this tomorrow.

Sau!

Quoted 108 lines

- Martin

Quoted 104 lines
Quoted 104 lines
---
   meta/recipes-extended/bash/bash.inc       |    3 --
   meta/recipes-extended/bash/bash_3.2.48.bb |   31
+---------------------------
   meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
   3 files changed, 7 insertions(+), 33 deletions(-)
meta/recipes-extended/bash/bash.inc +0 -0
index 3684191..ae4b681 100644
@@ -2,9 +2,6 @@ DESCRIPTION = "An sh-compatible command language

interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SECTION = "base/shell"

meta/recipes-extended/bash/bash.inc +0 -3
-# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "ncurses bison-native"

inherit autotools gettext update-alternatives

meta/recipes-extended/bash/bash_3.2.48.bb +1 -3
index 509d7a0..828d629 100644
@@ -1,12 +1,9 @@
-DESCRIPTION = "An sh-compatible command language interpreter."
-HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
-SECTION = "base/shell"
+require bash.inc
 
   LICENSE = "GPLv2+"
   LIC_FILES_CHKSUM =

"file://COPYING;md5=fd5d9bcabd8ed5a54a01ce8d183d592a"

meta/recipes-extended/bash/bash_3.2.48.bb +1 -2
-DEPENDS = "ncurses"
 
-PR = "r10"
+PR = "r11"
 
   SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001

\

meta/recipes-extended/bash/bash_3.2.48.bb +0 -0
@@ -24,27 +21,3 @@ SRC_URI[patch003.sha256sum] =

"354886097cd95b4def77028f32ee01e2e088d58a98184fede

   SRC_URI[md5sum] = "338dcf975a93640bb3eaa843ca42e3f8"
   SRC_URI[sha256sum] =

"128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348"

meta/recipes-extended/bash/bash_3.2.48.bb +0 -22
-
-inherit autotools gettext
-
-PARALLEL_MAKE = ""
-
-bindir = "/bin"
-sbindir = "/sbin"
-
-EXTRA_OECONF = "--with-ncurses"
-export CC_FOR_BUILD = "${BUILD_CC}"
-
-export AUTOHEADER = "true"
-
-do_configure_prepend () {
-    if [ ! -e acinclude.m4 ]; then
-        cat aclocal.m4 > acinclude.m4
-    fi
-}
-
-pkg_postinst_${PN} () {
-    touch $D${sysconfdir}/shells
-    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

meta/recipes-extended/bash/bash_3.2.48.bb +0 -1
-}
meta/recipes-extended/bash/bash_4.2.bb +3 -1
index 384eb62..5a0f015 100644
@@ -1,6 +1,10 @@
   require bash.inc
 
-PR = "r4"
+# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

meta/recipes-extended/bash/bash_4.2.bb +2 -0
+
+PR = "r5"
 
   SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \

${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001

\

#6 lore raw
In reply to Martin Ertsaas
Quoted 11 lines · Martin Ertsaas

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.

---
 meta/recipes-extended/bash/bash.inc       |    3 --
 meta/recipes-extended/bash/bash_3.2.48.bb |   31 +---------------------------
 meta/recipes-extended/bash/bash_4.2.bb    |    6 ++++-
 3 files changed, 7 insertions(+), 33 deletions(-)

Merged to master, thanks.

Richard