| Summary: | base_get_metadata_svn_revision fails with IndexError | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Pablo Vasquez <pevasquez> |
| Component: | core | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, pevasquez |
| Version: | unspecified | ||
| Target Milestone: | 1.5.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Pablo Vasquez
2013-10-17 18:14:58 UTC
When using svn client version 1.8 to check out a working copy of poky, bitbake meta-toolchain-qte will fail with:
ERROR: Failure expanding variable METADATA_REVISION, expression was ${@base_detect_revision(d)} which triggered exception IndexError: list index out of range
Seems like base_get_metadata_svn_revision is expecting .svn/entries to be at least 3 lines long, which is not the case for svn v1.8 (and probably 1.6 and 1.7).
As a workaround, the working copy can be exported, or checked out with an older svn client version.
I don't know how we get the version correctly in modern subversion, nor am I particularly keen to figure it out. I've sent out a patch to stop the crashes though. The crash is resolved with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b62bdbd135d3c2cf02b62d68e46b76a5ccda3331 If you want the versioning to work with newer suversions, please send a patch for it. We're happy to improve it, equally I don't anyone using subversion for this so it makes it hard to find anyone to fix it. |