| Summary: | can't use bbverbnote in rootfs postprocess | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | kweihmann |
| Component: | bitbake | Assignee: | Yoann Congal <yoann.congal> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | mark.asselstine, poky.bs.watcher, poky.watcher, randy.macleod, yoann.congal |
| Version: | unspecified | ||
| Target Milestone: | 5.2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | NEWCOMER | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
Reason might be that https://git.yoctoproject.org/poky/tree/meta/classes-global/logging.bbclass is missing an implementation for that Konrad, Can you send a patch to the related list please? -- YP bug review Confirming that you can work on the bug... Konrad, I guess you aren't able to work on this issue. I've CCed Yoann who might take a look when he has time. Randy, is this a bug? The function will be run as shell, as the error message is reporting. If you want to use verbnote one would need to do something such as (I have not validated the syntax)
ROOTFS_POSTPROCESS_COMMAND += '${@bb.verbnote("Hello world!!!")}'
(In reply to Mark from comment #5) > Randy, is this a bug? The function will be run as shell, as the error > message is reporting. If you want to use verbnote one would need to do > something such as (I have not validated the syntax) > > ROOTFS_POSTPROCESS_COMMAND += '${@bb.verbnote("Hello world!!!")}' Hello, this is not the same thing (sorry). - `${@bb.verbnote("Hello world!!!")}` is evaluated at parse-time - a bbverbnote "..." in ROOTFS_POSTPROCESS_COMMAND is intended to be printed at build time (IIRC in the do_rootfs task) and can contain build time info (error code, computed values etc...) I agree with the original report: this is a real bug (but an easy one to fix) (In reply to Yoann Congal from comment #6) > (In reply to Mark from comment #5) > > Randy, is this a bug? The function will be run as shell, as the error > > message is reporting. If you want to use verbnote one would need to do > > something such as (I have not validated the syntax) > > > > ROOTFS_POSTPROCESS_COMMAND += '${@bb.verbnote("Hello world!!!")}' > > Hello, this is not the same thing (sorry). > - `${@bb.verbnote("Hello world!!!")}` is evaluated at parse-time > - a bbverbnote "..." in ROOTFS_POSTPROCESS_COMMAND is intended to be > printed at build time (IIRC in the do_rootfs task) and can contain build > time info (error code, computed values etc...) > > I agree with the original report: this is a real bug (but an easy one to fix) No need to apologize. You are correct about the timing of the evaluation, I had overlooked that. |
foo() { bbverbnote "Hello world!!!" } ROOTFS_POSTPROCESS_COMMAND:append = " foo;" in an image recipe gives DEBUG: Executing shell function foo | /mnt/path/to/image/workspace/1.0/temp/run.foo.1115655: 154: bbverbnote: not found Using bbnote or bbwarn or bberror doesn't show this issue