From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tim.rpsys.net (93-97-173-237.zone5.bethere.co.uk [93.97.173.237]) by mx1.pokylinux.org (Postfix) with ESMTP id 92BA14C8007E for ; Fri, 18 Feb 2011 05:10:52 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p1IBAmcr008906; Fri, 18 Feb 2011 11:10:48 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08604-05; Fri, 18 Feb 2011 11:10:44 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p1IBAe8F008900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2011 11:10:40 GMT From: Richard Purdie To: Koen Kooi In-Reply-To: References: Date: Fri, 18 Feb 2011 11:10:32 +0000 Message-ID: <1298027433.11289.2682.camel@rex> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Virus-Scanned: amavisd-new at rpsys.net Cc: poky@lists.yoctoproject.org Subject: Re: Problem with METADATA_* vars X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2011 11:10:53 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 > 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