<?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>8205</bug_id>
          
          <creation_ts>2015-08-25 02:01:35 +0000</creation_ts>
          <short_desc>bbnote is not working</short_desc>
          <delta_ts>2015-09-15 13:39: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>BitBake</product>
          <component>bitbake</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Costin">costin.c.constantin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Lucian Musat">georgex.l.musat</qa_contact>
          <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>53370</commentid>
    <comment_count>0</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-08-25 02:01:35 +0000</bug_when>
    <thetext>Hello,

Tried to use bbnote for simple debugging purposes and it didn&apos;t work.

poky master hash: e5956a6b850f75e65a76180fc7a568553072d36d

How to test:
cat meta/classes/myclass.bbclass

do_test() {
  bbwarn ${D}/${bindir}
  bbwarn &quot;from inside test class ...&quot;
  bbnote &quot;from inside test class ...&quot;
  bbnote ${D}/${bindir}
}

addtask test

then add the following to conf/local.conf:
...
INHERIT = &quot;test&quot;
...

run the test task against a target:
bitbake m4 -c test

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53371</commentid>
    <comment_count>1</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-08-25 02:37:16 +0000</bug_when>
    <thetext>same happens to bb.note:

cat meta/classes/myclass.bbclass:
python do_test() {
  var = d.getVar(&quot;D&quot;,True)
  bb.note(var)
  bb.warn(var)
}

addtask test

result:

cosscat@cosscat:/media/cosscat/Touro/7poky/build$ bitbake m4 -c test
...
&quot;(detachedfrome5956a6):e5956a6b850f75e65a76180fc7a568553072d36d&quot;
...
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
WARNING: /media/cosscat/Touro/7poky/build/tmp/work/i586-poky-linux/m4/1.4.17-r0/image
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53402</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-08-26 07:20:23 +0000</bug_when>
    <thetext>Have a look at the log file for the task. By default note messages are not shown on the main console output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53464</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-08-27 08:06:04 +0000</bug_when>
    <thetext>thank you. Yes, they are present</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>