<?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>14763</bug_id>
          
          <creation_ts>2022-03-18 09:54:45 +0000</creation_ts>
          <short_desc>Toaster: handle changes to &quot;ImagePkgList&quot; event</short_desc>
          <delta_ts>2022-03-21 21:38:34 +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>3.4.3</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></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          
          
          <qa_contact name="Toaster default assignee">toaster</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>92812</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2022-03-18 09:54:45 +0000</bug_when>
    <thetext>There are several changes to the &quot;ImagePkgList&quot; content.

1) The key field for the package size (&apos;PKGSIZE&apos;) currently is an empty string.
2) The list of files changed from &apos;FILES_INFO&apos; to &apos;FILES&apos;.
3) The &apos;FILES&apos; is now a dictionary in string form
4) Not all fields are always present for all packages, for example &apos;LICENSE&apos; and &apos;SUMMARY&apos;

Here is an example event data where &apos;PKGSIZE&apos; is a blank string.

{&apos;PN&apos;: &apos;linux-yocto&apos;,
 &apos;PV&apos;: &apos;5.15.26+gitAUTOINC+ea948a0983_5bd4bda819&apos;,
 &apos;PR&apos;: &apos;r0&apos;,
 &apos;PKGV&apos;: &apos;5.15.26+git0+ea948a0983_5bd4bda819&apos;,
 &apos;PKGR&apos;: &apos;r0&apos;,
 &apos;LICENSE&apos;: &apos;GPL-2.0-only&apos;,
 &apos;DESCRIPTION&apos;: &apos;Linux kernel.&apos;,
 &apos;SUMMARY&apos;: &apos;Linux kernel&apos;,
 &apos;&apos;: &apos;9536128&apos;,
 &apos;SECTION&apos;: &apos;kernel&apos;,
 &apos;ALLOW&apos;: &apos;1&apos;,
 &apos;FILES&apos;: &apos;{&quot;/boot/bzImage-5.15.26-yocto-standard&quot;: 9536128}&apos;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92815</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2022-03-18 19:34:19 +0000</bug_when>
    <thetext>This patch also works around the now missing &apos;PKG&apos; key from the &quot;SinglePackageInfo&quot; event.

Toaster usually uses as the package&apos;s &apos;installed_name&apos;. Toaster does expect that &apos;OPKGN&apos; is an allowed override.

The key &apos;PN&apos; is still present, so the patch uses that value as an alternative.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92816</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2022-03-18 19:36:47 +0000</bug_when>
    <thetext>As per an email thread with Richard, this patch is specifically to work around the problems in the event data encountered. Fortunately these were the only events thus affected.

If and as the original data and formatting does get restored, you will observe that the patch is written to use that respective original schema.

After the core problems are fixed, then this patch (or parts) can be dropped.

As a result of these discoveries, I filed Bug 14764 directly against Bitbake since there was obvious missing formatting with &apos;PKGSIZE&apos;. As for the other problems, I could not tell if they were intentional changes or not.  I will update Bug 14764 so that it is one stop shopping for that team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92825</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2022-03-21 20:54:18 +0000</bug_when>
    <thetext>This is fixed by a patch to &quot;meta/classes/toaster.bbclass&quot;

https://git.yoctoproject.org/poky/commit/?h=master-next&amp;id=c94d49a769244e72df6631fdd4078cd1ad317e04</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>