<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5363</bug_id>
          
          <creation_ts>2013-10-17 18:14:58 +0000</creation_ts>
          <short_desc>base_get_metadata_svn_revision fails with IndexError</short_desc>
          <delta_ts>2013-11-25 14:58:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pablo Vasquez">pevasquez</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>pevasquez</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38024</commentid>
    <comment_count>0</comment_count>
    <who name="Pablo Vasquez">pevasquez</who>
    <bug_when>2013-10-17 18:14:58 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38025</commentid>
    <comment_count>1</comment_count>
    <who name="Pablo Vasquez">pevasquez</who>
    <bug_when>2013-10-17 18:21:52 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39032</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-22 15:08:18 +0000</bug_when>
    <thetext>I don&apos;t know how we get the version correctly in modern subversion, nor am I particularly keen to figure it out. I&apos;ve sent out a patch to stop the crashes though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39069</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-25 14:58:33 +0000</bug_when>
    <thetext>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&apos;re happy to improve it, equally I don&apos;t anyone using subversion for this so it makes it hard to find anyone to fix it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>