bitbake: data: Handle BASH_FUNC shellshock implication
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2014 16:37:26 +0000 (16:37 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:52:22 +0000 (08:52 -0800)
commit8dafbae3817c2d595bab8d3fd6355e5ab6ec99d5
tree1f0b901e52ab6f4774c76dcb470e4adafa2854b5
parent5a48480d5f7b723c01d2cd3697479a7890199f30
bitbake: data: Handle BASH_FUNC shellshock implication

The shellshock patches changed the way bash functions are exported.
Unfortunately different distros used slightly different formats,
Fedora went with BASH_FUNC_XXX()=() { echo foo; } and Ubuntu went with
BASH_FUNC_foo%%=() {  echo foo; }.

The former causes errors in dealing with out output from emit_env,
the functions are not exported in either case any more.

This patch handles things so the functions work as expected in either
case.

[YOCTO #6880]

(Bitbake rev: 4d4baf20487271aa83bd9f1a778e4ea9af6f6681)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
bitbake/lib/bb/data.py