<?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>5227</bug_id>
          
          <creation_ts>2013-09-18 10:13:12 +0000</creation_ts>
          <short_desc>[webhob-poky/master] in &apos;variables&apos; API, the &apos;file&apos; field returns no data</short_desc>
          <delta_ts>2013-11-18 17:56:24 +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>Toaster</product>
          <component>toaster</component>
          <version>1.5</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>bitbake, toasterui</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>richard.purdie</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>36853</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-09-18 10:13:12 +0000</bug_when>
    <thetext>We should aim to provide this information on the first release. We agreed it would be the path to the last file touching the variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37249</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-09-26 14:15:53 +0000</bug_when>
    <thetext>Bitbake does not record locations where the variables are changed.

Fixing this would require an important change in Bitbake, which could severely impact the performance; setVar needs to record the backtrace of where it is called and save it in a var flag.

Propose delay for 1.5.X</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37491</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-10-02 15:09:47 +0000</bug_when>
    <thetext>moved to 1.5.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37809</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-10-10 14:07:38 +0000</bug_when>
    <thetext>I would propose modifying bitbake to keep track in a variable flag the current file:line of code where a variable is modified. 

Opinions ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37811</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-10 14:28:35 +0000</bug_when>
    <thetext>When history tracking is turned on it definitely does record this information. You can see it in the bitbake -e output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37816</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-10-10 14:58:38 +0000</bug_when>
    <thetext>I got this info on bitbake -e. 

#
# $B_pn-xcb-util-image
#   [no history recorded]
#
#   &quot;${SEPB}&quot;
B_pn-xcb-util-image=&quot;/home/ddalex/ssd/yocto/build/tmp/work/x86_64-poky-linux/bblayers/1.0-r0/build&quot;
#
# $localstatedir
#   [no history recorded]
#
#   &quot;${base_prefix}/var&quot;
export localstatedir=&quot;/var&quot;


Am I doing something wrong ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37820</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-10 15:11:49 +0000</bug_when>
    <thetext>Something is going wrong there because my equivalent here is:

#
# $B_pn-xcb-util-image
#   set /home/paul/poky/poky/meta/conf/distro/include/seperatebuilddir.inc:706
#     &quot;${SEPB}&quot;
B_pn-xcb-util-image=&quot;/home/paul/poky/poky/build/tmp/work/i586-poky-linux/bblayers/1.0-r0/build&quot;
#
# $localstatedir [2 operations]
#   exported conf/bitbake.conf:31
#     [export] &quot;1&quot;
#   set conf/bitbake.conf:31
#     &quot;${base_prefix}/var&quot;
# computed:
#   &quot;${base_prefix}/var&quot;
export localstatedir=&quot;/var&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38850</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-11-18 11:53:59 +0000</bug_when>
    <thetext>Fix merged in origin/master and origin/dora-toaster. 

The file field is deleted.

There is a new table, orm_variablehistory, that tracks all changes for a variable. The REST API page have been modified to document the API change, but the patchset for the API change was not merged yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38882</commentid>
    <comment_count>8</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-11-18 17:56:24 +0000</bug_when>
    <thetext>Verified in

master:b0281b3a190dec6502b4abc6a5b14ae46243f913 

dora-toaster:1182665de0da9a6e5fc77107f32a7fc1515029d0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>