openmoko-theme-standard2_svn.bb and openmoko_two_get_license() wrong SECTION
I saw a strange failure in bitbake- k world logs for mipsel/qemumipsel, so I added a print statement to openmoko_two_get_license().
def openmoko_two_get_license(d):
print "~~~~~~~~~~~"
print "SECTION=%s" % bb.data.getVar('SECTION', d, 1)
print "~~~~~~~~~~~"
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
return "LGPL GPL".split()[section != "libs"]grg@eye7:~/oe2$ bitbake -b openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb
NOTE: oestats: error starting build, disabling stats
NOTE: Preparing runqueue
NOTE: Executing runqueue
~~~~~~
SECTION=devel
~~~~~~~~~~~
ERROR: Task 17 (/home/grg/oe2/openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb, do_package_write_ipk) failed with exit code '1'
NOTE: Running task 11 of 19 (ID: 17, /home/grg/oe2/openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb, do_package_write_ipk)
NOTE: package openmoko-theme-standard2-0.1.1+svnr4338-r6: task do_package_write_ipk: Started
ERROR: Error evaluating '${@openmoko_two_get_license(d)}'
Traceback (most recent call last):
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 84, in expand
s = __expand_python_regexp__.sub(python_sub, s)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 71, in python_sub
value = utils.better_eval(codeobj, {"d": self})
File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 357, in better_eval
return eval(source, _context, locals)
File "LICENSE", line 1, in <module>
File "openmoko2.bbclass", line 5, in openmoko_two_get_license
ValueError: need more than 1 value to unpackERROR: Error executing python function in 'do_package_ipk' Traceback (most recent call last):
File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 334, in better_exec
exec(code, _context, context)
File "do_package_ipk", line 175, in <module>
File "do_package_ipk", line 103, in do_package_ipk
File "do_package_ipk", line 93, in pullData
File "/home/grg/oe2/bitbake/lib/bb/data.py", line 87, in getVar
return d.getVar(var, exp)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 226, in getVar
return self.expand(value, var)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 84, in expand
s = __expand_python_regexp__.sub(python_sub, s)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 71, in python_sub
value = utils.better_eval(codeobj, {"d": self})
File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 357, in better_eval
return eval(source, _context, locals)
File "LICENSE", line 1, in <module>
File "openmoko2.bbclass", line 5, in openmoko_two_get_license
ValueError: need more than 1 value to unpack
ERROR: Printing the environment of the function
ERROR: 0001:def do_package_ipk(d):
ERROR: 0002: import re, copy
ERROR: 0003:
ERROR: 0004: workdir = bb.data.getVar('WORKDIR', d, 1)
ERROR: 0005: if not workdir:
ERROR: 0006: bb.error("WORKDIR not defined, unable to package")
ERROR: 0007: return
ERROR: 0008:
ERROR: 0009:
ERROR: Logfile of failure stored in: /mnt/oe/tmp/work/all-oe-linux/openmoko-theme-standard2-0.1.1+svnr4338-r6/temp/log.do_package_ipk.13541
Log data follows:
| ~~~~~~~~~~~
| SECTION=devel
| ~~~~~~~~~~~NOTE: package openmoko-theme-standard2-0.1.1+svnr4338-r6: task do_package_ipk: Failed
ERROR: Function 'do_package_ipk' failed (see /mnt/oe/tmp/work/all-oe-linux/openmoko-theme-standard2-0.1.1+svnr4338-r6/temp/log.do_package_ipk.13541 for further information)
Clearly, openmoko-theme-standard2_svn.bb has SECTION="openmoko/base". Where does "devel" come from?
-Graham
Quoted 10 lines · Graham Gower
I saw a strange failure in bitbake- k world logs for mipsel/qemumipsel, so I added a print statement to
openmoko_two_get_license().def
openmoko_two_get_license(d):
print "~~~~~~~~~~~"
print "SECTION=%s" %bb.data.getVar('SECTION', d, 1)print "~~~~~~~~~~~"
openmoko, section =bb.data.getVar('SECTION', d, 1).split("/") return "LGPL GPL".split()[section != "libs"]
I have fixed it already. update to latest master.
Quoted 74 lines
grg@eye7:~/oe2$ bitbake -b openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb NOTE: oestats: error starting build, disabling stats NOTE: Preparing runqueue NOTE: Executing runqueue ~~~~~~ SECTION=devel ~~~~~~~~~~~ ERROR: Task 17 (/home/grg/oe2/openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb, do_package_write_ipk) failed with exit code '1' NOTE: Running task 11 of 19 (ID: 17, /home/grg/oe2/openembedded/recipes/openmoko2/openmoko-theme-standard2_svn.bb, do_package_write_ipk) NOTE: package openmoko-theme-standard2-0.1.1+svnr4338-r6: task do_package_write_ipk: Started ERROR: Error evaluating '${@openmoko_two_get_license(d)}' Traceback (most recent call last): File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 84, in expand s = __expand_python_regexp__.sub(python_sub, s) File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 71, in python_sub value = utils.better_eval(codeobj, {"d": self}) File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 357, in better_eval return eval(source, _context, locals) File "LICENSE", line 1, in <module> File "openmoko2.bbclass", line 5, in openmoko_two_get_license ValueError: need more than 1 value to unpackERROR: Error executing python function in '
do_package_ipk' Traceback (most recent call last):
File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 334, inbetter_execexec(code, _context, context)
File "do_package_ipk", line 175, in <module>
File "do_package_ipk", line 103, indo_package_ipk
File "do_package_ipk", line 93, in pullData
File "/home/grg/oe2/bitbake/lib/bb/data.py", line 87, in getVar returnd.getVar(var, exp)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 226, in getVar returnself.expand(value, var)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 84, in expand s =__expand_python_regexp__.sub(python_sub, s)
File "/home/grg/oe2/bitbake/lib/bb/data_smart.py", line 71, inpython_subvalue =utils.better_eval(codeobj, {"d": self})
File "/home/grg/oe2/bitbake/lib/bb/utils.py", line 357, inbetter_evalreturneval(source, _context, locals)
File "LICENSE", line 1, in <module>
File "openmoko2.bbclass", line 5, inopenmoko_two_get_license
ValueError: need more than 1 value to unpackERROR: Printing the environment of the function
ERROR: 0001:defdo_package_ipk(d):
ERROR: 0002: import re, copy
ERROR: 0003:
ERROR: 0004: workdir =bb.data.getVar('WORKDIR', d, 1)
ERROR: 0005: if not workdir:
ERROR: 0006:bb.error("WORKDIR not defined, unable to package")
ERROR: 0007: return
ERROR: 0008:
ERROR: 0009:
ERROR: Logfile of failure stored in:/mnt/oe/tmp/work/all-oe-linux/openmoko-theme-standard2-0.1.1+svnr4338-r6/temp/log.do_package_ipk.13541Log data follows:| ~~~~~~~~~~~ | SECTION=devel | ~~~~~~~~~~~NOTE: package openmoko-theme-standard2-0.1.1+svnr4338-r6: task
do_package_ipk: Failed
ERROR: Function 'do_package_ipk' failed (see/mnt/oe/tmp/work/all-oe-linux/openmoko-theme-standard2-0.1.1+svnr4338-r6/temp/log.do_package_ipk.13541for further information)Clearly, openmoko-theme-standard2_svn.bb has SECTION="openmoko/base". Where does "devel" come from?
-Graham
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem