[poky] Problem with METADATA_* vars
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Feb 18 03:10:32 PST 2011
On Fri, 2011-02-18 at 10:34 +0100, Koen Kooi wrote:
> 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
I'm going to guess its:
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=03d40a4a7bd60dcbc21f5a06c0f4f53cb47de0f3
at fault. I'm going to rework that so the handler is only activated at
idle sleep time.
Cheers,
Richard
More information about the poky
mailing list