Permalink
Browse files

oebb: work with bitbake master

Bitbake master doesn't enable fetch2 by default resulting in:

Parsing recipes...ERROR: Error evaluating '${@bb.fetch2.get_srcrev(d)}'
Traceback (most recent call last):
  File "/work/openembedded-core/sources/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/work/openembedded-core/sources/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/work/openembedded-core/sources/bitbake/lib/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
AttributeError: 'module' object has no attribute 'fetch2'

This fixes that

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent 1240b98 commit 03810d5813044a17731c2da6bbc627c7292033a8 @koenkooi koenkooi committed Feb 23, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 oebb.sh
View
@@ -38,6 +38,9 @@ OE_BASE=${PWD}
function set_environment()
{
+# Workaround for differences between yocto bitbake and vanilla bitbake
+export BBFETCH2=True
+
#--------------------------------------------------------------------------
# If an env already exists, use it, otherwise generate it
#--------------------------------------------------------------------------
@@ -53,7 +56,9 @@ else
DISTRO="angstrom-2010.x"
DISTRO_DIRNAME=`echo $DISTRO | sed s#[.-]#_#g`
- echo "export DISTRO=\"${DISTRO}\"" > ~/.oe/environment-oecore
+ echo "export BBFETCH2=True" > ~/.oe/environment-oecore
+
+ echo "export DISTRO=\"${DISTRO}\"" >> ~/.oe/environment-oecore
echo "export DISTRO_DIRNAME=\"${DISTRO_DIRNAME}\"" >> ~/.oe/environment-oecore
#--------------------------------------------------------------------------

0 comments on commit 03810d5

Please sign in to comment.