[poky] Problem with METADATA_* vars
Koen Kooi
koen at dominion.thruhere.net
Fri Feb 18 01:34:56 PST 2011
Hi,
I have a simple recipe that does:
export METADATA_REVISION
export METADATA_BRANCH
export TARGET_SYS
do_install() {
install -d ${D}${sysconfdir}
echo "Angstrom ${DISTRO_VERSION}" > ${D}${sysconfdir}/angstrom-version
echo "Built from branch: ${METADATA_BRANCH}" >>
${D}${sysconfdir}/angstrom-version
echo "Revision: ${METADATA_REVISION}" >>
${D}${sysconfdir}/angstrom-version
echo "Target system: ${TARGET_SYS}" >>
${D}${sysconfdir}/angstrom-version
[..]
}
It builds fine when doing 'bitbake angstrom-version', but when doing
'bitbake console-image', which includes angstrom-version I get:
tr: write error: Broken pipe
ERROR: Error evaluating '${@base_detect_branch(d)}'
Traceback (most recent call last):
File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 117, in
expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 76, in
python_sub
value = utils.better_eval(codeobj, DataContext(self.d))
File "/OE/tentacle/sources/bitbake/lib/bb/utils.py", line 387, in
better_eval
return eval(source, _context, locals)
File "METADATA_BRANCH", line 1, in <module>
File "metadata_scm.bbclass", line 7, in base_detect_branch
File "metadata_scm.bbclass", line 2, in base_get_metadata_git_branch
IOError: [Errno 4] Interrupted system call
NOTE: Error expanding variable METADATA_BRANCH
Traceback (most recent call last):
File "/OE/tentacle/sources/bitbake/lib/bb/server/none.py", line 128, in
idle_commands
retval = function(self, data, False)
File "/OE/tentacle/sources/bitbake/lib/bb/cooker.py", line 700, in
buildTargetsIdle
retval = rq.execute_runqueue()
File "/OE/tentacle/sources/bitbake/lib/bb/runqueue.py", line 952, in
execute_runqueue
retval = self.rqexe.execute()
File "/OE/tentacle/sources/bitbake/lib/bb/runqueue.py", line 1304, in
execute
pid, pipein, pipeout = self.fork_off_task(fn, task, taskname)
File "/OE/tentacle/sources/bitbake/lib/bb/runqueue.py", line 1063, in
fork_off_task
the_data = bb.cache.Cache.loadDataFull(fn,
self.cooker.get_file_appends(fn), self.cooker.configuration.data)
File "/OE/tentacle/sources/bitbake/lib/bb/cache.py", line 285, in
loadDataFull
bb_data = cls.load_bbfile(fn, appends, cfgData)
File "/OE/tentacle/sources/bitbake/lib/bb/cache.py", line 515, in
load_bbfile
bb_data = parse.handle(bbfile, bb_data)
File "/OE/tentacle/sources/bitbake/lib/bb/parse/__init__.py", line 80, in
handle
return h['handle'](fn, data, include)
File "/OE/tentacle/sources/bitbake/lib/bb/parse/parse_py/BBHandler.py",
line 159, in handle
return ast.multi_finalize(fn, d)
File "/OE/tentacle/sources/bitbake/lib/bb/parse/ast.py", line 383, in
multi_finalize
finalize(fn, d)
File "/OE/tentacle/sources/bitbake/lib/bb/parse/ast.py", line 335, in
finalize
bb.parse.siggen.finalise(fn, d, variant)
File "/OE/tentacle/sources/bitbake/lib/bb/siggen.py", line 118, in
finalise
taskdeps = self._build_data(fn, d)
File "/OE/tentacle/sources/bitbake/lib/bb/siggen.py", line 70, in
_build_data
tasklist, gendeps = bb.data.generate_dependencies(d)
File "/OE/tentacle/sources/bitbake/lib/bb/data.py", line 328, in
generate_dependencies
deps[dep] = build_dependencies(dep, keys, shelldeps, d)
File "/OE/tentacle/sources/bitbake/lib/bb/data.py", line 298, in
build_dependencies
parser = d.expandWithRefs(d.getVar(key, False), key)
File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 117, in
expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 76, in
python_sub
value = utils.better_eval(codeobj, DataContext(self.d))
File "/OE/tentacle/sources/bitbake/lib/bb/utils.py", line 387, in
better_eval
return eval(source, _context, locals)
File "METADATA_BRANCH", line 1, in <module>
File "metadata_scm.bbclass", line 7, in base_detect_branch
File "metadata_scm.bbclass", line 2, in base_get_metadata_git_branch
IOError: [Errno 4] Interrupted system call
This started happening after
http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-angstrom/commit/?id=d14b9341ccae0bbd01700d1ef54a1c0a0fb98628but
I'm not sure if that's the cause.
regards,
Koen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110218/cab51eba/attachment.html>
More information about the poky
mailing list