Patchwork [1/2] bash: Make bash_3.2.48 a nativesdk package.

login
register
mail settings
Submitter Martin Ertsaas
Date Sept. 11, 2012, 8:29 a.m.
Message ID <1347352189-30965-1-git-send-email-mertsas@cisco.com>
Download mbox | patch
Permalink /patch/36259/
State New
Headers show

Comments

Martin Ertsaas - Sept. 11, 2012, 8:29 a.m.
3.2.48 is the bash package in oe-core which is not GPLv3. Making that a nativesdk
package makes sure we have the same bash version in our toolchain as in our image.

Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
---
 meta/recipes-extended/bash/bash_3.2.48.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Martin Ertsaas - Sept. 11, 2012, 10:24 a.m.
On 09/11/12 10:29, Martin Ertsaas wrote:
> 3.2.48 is the bash package in oe-core which is not GPLv3. Making that a nativesdk
> package makes sure we have the same bash version in our toolchain as in our image.
>
> Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
> ---
>  meta/recipes-extended/bash/bash_3.2.48.bb |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-extended/bash/bash_3.2.48.bb b/meta/recipes-extended/bash/bash_3.2.48.bb
> index 509d7a0..c317a02 100644
> --- a/meta/recipes-extended/bash/bash_3.2.48.bb
> +++ b/meta/recipes-extended/bash/bash_3.2.48.bb
> @@ -48,3 +48,5 @@ pkg_postinst_${PN} () {
>  	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
>  }
> +
> +BBCLASSEXTEND = "nativesdk"
This can be ignored. Just found out that this bash does not like to be a
nativesdk package. It fails with
./mkbuiltins: error while loading shared libraries: __vdso_gettimeofday:
invalid mode for dlopen(): Invalid argument

Any idea what this might be, so I can fix the patch.

Sorry for sending this before it was actually ready.

- Martin

Patch

diff --git a/meta/recipes-extended/bash/bash_3.2.48.bb b/meta/recipes-extended/bash/bash_3.2.48.bb
index 509d7a0..c317a02 100644
--- a/meta/recipes-extended/bash/bash_3.2.48.bb
+++ b/meta/recipes-extended/bash/bash_3.2.48.bb
@@ -48,3 +48,5 @@  pkg_postinst_${PN} () {
 	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
 }
+
+BBCLASSEXTEND = "nativesdk"