<?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>5136</bug_id>
          
          <creation_ts>2013-09-08 02:32:06 +0000</creation_ts>
          <short_desc>buildhistory.bbclass: doesn&apos;t work when PV changed</short_desc>
          <delta_ts>2013-09-24 01:46:36 +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>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36398</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-08 02:32:06 +0000</bug_when>
    <thetext>buildhistory.bbclass can&apos;t find the PV changed, steps to reproduce:

$ echo INHERIT += \&quot;buildhistory\&quot; &gt;&gt; conf/local.conf
$ echo BUILDHISTORY_COMMIT = \&quot;1\&quot; &gt;&gt; conf/local.conf
$ bitbake make # make 3.82 is built
$ echo echo PREFERRED_VERSION_make = \&quot;3.81\&quot; &gt;&gt; conf/local.conf
$ bitbake make

We can see the &quot;No Changes&quot; in the git log, and the file doesn&apos;t changed:

/buildarea/lyang1/wd$ cat buildhistory/packages/armv5te-poky-linux-gnueabi/make/latest
PV = 3.82
PR = r3

The should be 3.81 and r1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36729</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-09-15 05:05:02 +0000</bug_when>
    <thetext>I tested this on poky/master:  6b4f7e4b26c51f0c1517c0a697031e7bc488b76f.
And it worked out well.

chenqi@pek-hostel-vm07:~/poky/build-sato$ grep -i preferred_version conf/local.conf
PREFERRED_VERSION_make = &quot;3.81&quot;
chenqi@pek-hostel-vm07:~/poky/build-sato$ cat buildhistory/packages/i586-poky-linux/make/latest 
PV = 3.81
PR = r1

Mark it as RESOLVED/WONTFIX.

//Chen Qi</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>