Bug 8205

Summary: bbnote is not working
Product: [Build System, Metadata & Runtime] BitBake Reporter: Costin <costin.c.constantin>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact: Lucian Musat <georgex.l.musat>
Severity: minor    
Priority: Undecided CC: bogdanx.a.voiculescu, poky.bs.watcher, poky.watcher
Version: 1.9   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Costin 2015-08-25 02:01:35 UTC
Hello,

Tried to use bbnote for simple debugging purposes and it didn't work.

poky master hash: e5956a6b850f75e65a76180fc7a568553072d36d

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

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

addtask test

then add the following to conf/local.conf:
...
INHERIT = "test"
...

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

Costin
Comment 1 Costin 2015-08-25 02:37:16 UTC
same happens to bb.note:

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

addtask test

result:

cosscat@cosscat:/media/cosscat/Touro/7poky/build$ bitbake m4 -c test
...
"(detachedfrome5956a6):e5956a6b850f75e65a76180fc7a568553072d36d"
...
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't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
Comment 2 Richard Purdie 2015-08-26 07:20:23 UTC
Have a look at the log file for the task. By default note messages are not shown on the main console output.
Comment 3 Costin 2015-08-27 08:06:04 UTC
thank you. Yes, they are present