All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Koen Kooi <koen@dominion.thruhere.net>
Cc: poky@lists.yoctoproject.org
Subject: Re: Problem with METADATA_* vars
Date: Fri, 18 Feb 2011 11:10:32 +0000	[thread overview]
Message-ID: <1298027433.11289.2682.camel@rex> (raw)
In-Reply-To: <AANLkTi==59FW4R15YrsSSR8EHWRgn2Gh9BJ2rUVPMWS+@mail.gmail.com>

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



  parent reply	other threads:[~2011-02-18 11:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18  9:34 Problem with METADATA_* vars Koen Kooi
2011-02-18 10:01 ` Stefan Schmidt
2011-02-18 11:11   ` Koen Kooi
2011-02-18 11:10 ` Richard Purdie [this message]
2011-02-18 12:10   ` Richard Purdie
2011-02-22 22:06 ` Chris Larson

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=1298027433.11289.2682.camel@rex \
    --to=richard.purdie@linuxfoundation.org \
    --cc=koen@dominion.thruhere.net \
    --cc=poky@lists.yoctoproject.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.