From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: openmoko-theme-standard2_svn.bb and openmoko_two_get_license() wrong SECTION
Date: Fri, 17 Sep 2010 10:25:44 +0930 [thread overview]
Message-ID: <4C92BC90.3090900@gmail.com> (raw)
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 unpack
ERROR: 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
next reply other threads:[~2010-09-17 0:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-17 0:55 Graham Gower [this message]
2010-09-17 16:01 ` openmoko-theme-standard2_svn.bb and openmoko_two_get_license() wrong SECTION Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C92BC90.3090900@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.