<?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>15381</bug_id>
          
          <creation_ts>2024-02-02 15:37:31 +0000</creation_ts>
          <short_desc>Different number of packages when multiple PACKAGE_CLASSES are enabled</short_desc>
          <delta_ts>2024-02-02 19:05:50 +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>OE-Core</product>
          <component>core</component>
          <version>5.0</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>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>98119</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2024-02-02 15:37:31 +0000</bug_when>
    <thetext>I&apos;m surprised by this behavior, which I didn&apos;t expect... I&apos;m running &quot;bitbake core-image-cmdline-full; bitbake generate-index&quot; from Poky master.

with PACKAGE_CLASSES = &quot;package_ipk package_rpm package_deb&quot;...

find tmp/deploy/deb -name *.deb | wc; find tmp/deploy/rpm -name *.rpm | wc; find tmp/deploy/ipk -name *.ipk | wc
   1918    1918  129927
   1918    1918  135794
   5404    5404  393252

with PACKAGE_CLASSES = &quot;package_rpm package_deb package_ipk&quot;...

find tmp/deploy/deb -name *.deb | wc; find tmp/deploy/rpm -name *.rpm | wc; find tmp/deploy/ipk -name *.ipk | wc
   1918    1918  129927
   5404    5404  393606
   1918    1918  135584

with PACKAGE_CLASSES = &quot;package_deb package_ipk package_rpm&quot;...

find tmp/deploy/deb -name *.deb | wc; find tmp/deploy/rpm -name *.rpm | wc; find tmp/deploy/ipk -name *.ipk | wc
   5404    5404  376187
   1918    1918  135794
   1918    1918  135584

So, more packages are generated to the first item in PACKAGE_CLASSES.

It&apos;s expected to have the first item in PACKAGE_CLASSES that is used to generate the image, but I expected all packages to be generated for all package types anyway. Isn&apos;t this the expected behavior? Otherwise, how would you generate 3 types of feeds (rpm, deb and ipk) at the same time?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98120</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2024-02-02 19:05:50 +0000</bug_when>
    <thetext>According to Richard Purdie (thanks!), this is actually expected behavior.
Using &quot;bitbake --runall build &lt;image&gt;&quot; allows to get the same number of packages.

See https://lore.kernel.org/openembedded-core/c0b1cf77-830b-4838-a92c-cd0d70c1bb05@bootlin.com/T/#t

Closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>