<?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>15688</bug_id>
          
          <creation_ts>2024-12-12 06:56:51 +0000</creation_ts>
          <short_desc>can&apos;t use bbverbnote in rootfs postprocess</short_desc>
          <delta_ts>2025-01-20 14:36:46 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kweihmann</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>mark.asselstine</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100407</commentid>
    <comment_count>0</comment_count>
    <who name="">kweihmann</who>
    <bug_when>2024-12-12 06:56:51 +0000</bug_when>
    <thetext>foo() {
    bbverbnote &quot;Hello world!!!&quot;
}

ROOTFS_POSTPROCESS_COMMAND:append = &quot; foo;&quot;

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&apos;t show this issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100408</commentid>
    <comment_count>1</comment_count>
    <who name="">kweihmann</who>
    <bug_when>2024-12-12 07:05:43 +0000</bug_when>
    <thetext>Reason might be that https://git.yoctoproject.org/poky/tree/meta/classes-global/logging.bbclass is missing an implementation for that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100426</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-12 15:46:17 +0000</bug_when>
    <thetext>Konrad, 
Can you send a patch to the related list please?
-- YP bug review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100427</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-12 15:46:49 +0000</bug_when>
    <thetext>Confirming that you can work on the bug...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100449</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-17 00:28:59 +0000</bug_when>
    <thetext>Konrad,
I guess you aren&apos;t able to work on this issue.
I&apos;ve CCed Yoann who might take a look when he has time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100513</commentid>
    <comment_count>5</comment_count>
    <who name="Mark">mark.asselstine</who>
    <bug_when>2024-12-28 01:46:44 +0000</bug_when>
    <thetext>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 += &apos;${@bb.verbnote(&quot;Hello world!!!&quot;)}&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100597</commentid>
    <comment_count>6</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-01-09 21:39:12 +0000</bug_when>
    <thetext>(In reply to Mark from comment #5)
&gt; Randy, is this a bug? The function will be run as shell, as the error
&gt; message is reporting. If you want to use verbnote one would need to do
&gt; something such as (I have not validated the syntax)
&gt; 
&gt; ROOTFS_POSTPROCESS_COMMAND += &apos;${@bb.verbnote(&quot;Hello world!!!&quot;)}&apos;

Hello, this is not the same thing (sorry).
- `${@bb.verbnote(&quot;Hello world!!!&quot;)}` is evaluated at parse-time
-  a bbverbnote &quot;...&quot; 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100606</commentid>
    <comment_count>7</comment_count>
    <who name="Mark">mark.asselstine</who>
    <bug_when>2025-01-10 19:39:56 +0000</bug_when>
    <thetext>(In reply to Yoann Congal from comment #6)
&gt; (In reply to Mark from comment #5)
&gt; &gt; Randy, is this a bug? The function will be run as shell, as the error
&gt; &gt; message is reporting. If you want to use verbnote one would need to do
&gt; &gt; something such as (I have not validated the syntax)
&gt; &gt; 
&gt; &gt; ROOTFS_POSTPROCESS_COMMAND += &apos;${@bb.verbnote(&quot;Hello world!!!&quot;)}&apos;
&gt; 
&gt; Hello, this is not the same thing (sorry).
&gt; - `${@bb.verbnote(&quot;Hello world!!!&quot;)}` is evaluated at parse-time
&gt; -  a bbverbnote &quot;...&quot; in ROOTFS_POSTPROCESS_COMMAND is intended to be
&gt; printed at build time (IIRC in the do_rootfs task) and can contain build
&gt; time info (error code, computed values etc...)
&gt; 
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100698</commentid>
    <comment_count>8</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-01-20 14:36:46 +0000</bug_when>
    <thetext>Fix merged https://git.openembedded.org/openembedded-core/commit/?id=48e4b8c06e503868404b99bf45a46a52794baa5a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>