[oe] gitver problems

Cliff Brake cliff.brake at gmail.com
Mon May 31 21:12:16 UTC 2010


Hello,

I'm trying to put together some examples of using srctree/gitver, and
running into a few issues.

My example is in a bitbake overlay:

git://git.bec-systems.com/openembedded.custom
http://cgit.bec-systems.com/cgit.cgi/openembedded.custom/

This overlay includes a submodule for:

git://git.bec-systems.com/openembedded.custom
http://cgit.bec-systems.com/cgit.cgi/autotools-demo/

and a recipe to build the above submodule:

http://cgit.bec-systems.com/cgit.cgi/openembedded.custom/tree/recipes/autotools-demo/autotools-demo.bb

===================
# recipe to build the ics-test-app in the working tree

inherit srctree gitver autotools

PV = "${GITVER}"
S = "${OEDIR}/openembedded.custom/work/autotools-demo"
==================


When I try 'bitbake autotools-demo', I get the following:

cbrake at happy:/scratch/oe/oe-build/oe$ bitbake autotools-demo
NOTE: Handling BitBake files: / (4602/8385) [54 %]ERROR: 'NoneType'
object has no attribute 'startswith' while parsing
/scratch/oe/oe-build/oe/openembedded.custom/recipes/autotools-demo/autotools-demo.bb
NOTE: <type 'exceptions.AttributeError'>:'NoneType' object has no
attribute 'startswith' while evaluating:
${@get_git_pv('/scratch/oe/oe-build/oe/openembedded.custom/work/autotools-demo',
d)}
NOTE: <type 'exceptions.AttributeError'>:'NoneType' object has no
attribute 'startswith' while evaluating:
${GITVER}
NOTE: <type 'exceptions.AttributeError'>:'NoneType' object has no
attribute 'startswith' while evaluating:
${PN}-${EXTENDPE}${PV}-${PR}
NOTE: <type 'exceptions.AttributeError'>:'NoneType' object has no
attribute 'startswith' while evaluating:
${FILE_DIRNAME}/${PF}/${MACHINE}
ERROR: 'NoneType' object has no attribute 'startswith' while parsing
/scratch/oe/oe-build/oe/openembedded.custom/recipes/autotools-demo/autotools-demo.bb
NOTE: Handling BitBake files: \ (8384/8385) [99 %]Command execution
failed: Traceback (most recent call last):
  File "/scratch/oe/oe-build/oe/bitbake/lib/bb/command.py", line 85,
in runAsyncCommand
    self.cooker.updateCache()
  File "/scratch/oe/oe-build/oe/bitbake/lib/bb/cooker.py", line 802,
in updateCache
    if not self.parser.parse_next():
  File "/scratch/oe/oe-build/oe/bitbake/lib/bb/cooker.py", line 995,
in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound

Any suggestions as to what might be going wrong with gitver?

Thanks,
Cliff




More information about the Openembedded-devel mailing list