<?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>7306</bug_id>
          
          <creation_ts>2015-02-11 10:33:01 +0000</creation_ts>
          <short_desc>Using SRCREV = &quot;${AUTOREV}&quot; doesn&apos;t always fetch latest revision</short_desc>
          <delta_ts>2015-02-19 22:35:12 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>19 February 2015: Docs updated and okay&apos;ed</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48703</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-02-11 10:33:01 +0000</bug_when>
    <thetext>I&apos;m using SRCREV = &quot;${AUTOREV}&quot; in a kernel recipe (inheriting kernel, so ${SRCPV} is in PV).

The latest version of my kernel is only fetched if I change my defconfig.

Using bitbake virtual/kernel twice doesn&apos;t even go through srcrev_internal_helper().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48737</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-02-11 20:33:28 +0000</bug_when>
    <thetext>Actually, the kernel class is not putting ${SRCPV} in PV. Doing that solved the issue. It may be good to update the documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48824</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-02-13 16:26:29 +0000</bug_when>
    <thetext>Hi, 

I was alerted to the fact that we need some documentation changes here for this issue.  I have updated two variables in the glossary to try to explain this issue.  You can see them at:

  http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-AUTOREV
  http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-SRCREV

Please look the changes over and let me know if they are okay.

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48825</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-02-13 16:30:44 +0000</bug_when>
    <thetext>Hi,

I&apos;m not sure you should actually mention the kernel class at all, the comment about having PV containing SRCPV is valid for all recipes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48826</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-02-13 16:38:17 +0000</bug_when>
    <thetext>Hi, 

Based on feedback, see the links now.

  http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-AUTOREV
  http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-SRCREV

thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48833</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-02-13 17:55:18 +0000</bug_when>
    <thetext>For AUTOREV, what about:

If you use the previous statement to retrieve the latest version of software, you need to be sure PV contains ${SRCPV}. For example, suppose you have a kernel recipe that inherits the kernel class and you use the previous statement. In this example, ${SRCPV} does not automatically get into PV. Consequently, you need to change PV in your recipe so that it does contain ${SRCPV}.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48834</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-02-13 18:04:31 +0000</bug_when>
    <thetext>Alexandre, 

I like your wording.  I have taken it verbatim.  You can re-check the link and see the update. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48835</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2015-02-13 18:09:50 +0000</bug_when>
    <thetext>I&apos;m fine with that change (obviously !)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48947</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-02-19 22:35:12 +0000</bug_when>
    <thetext>Hi, 

Unsure as to how to indicate the docs have been completed for this issue.  The actual state has been set to RESOLVED/INVALID and I have the documentation flag set to &quot;done.&quot;  I guess this comment here basically acknowledges that the change was looked at and approved by Alexandre.  I am done with it.

Thanks,
Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>